Enum BaseMaterial3D.BlendModeEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum BaseMaterial3D.BlendModeEnum : long
Fields
Add = 1
The color of the object is added to the background.
Mix = 0
Default blend mode. The color of the object is blended over the background based on the object's alpha value.
Mul = 3
The color of the object is multiplied by the background.
PremultAlpha = 4
The color of the object is added to the background and the alpha channel is used to mask out the background. This is effectively a hybrid of the blend mix and add modes, useful for effects like fire where you want the flame to add but the smoke to mix. By default, this works with unshaded materials using premultiplied textures. For shaded materials, use the
PREMUL_ALPHA_FACTOR
built-in so that lighting can be modulated as well.Sub = 2
The color of the object is subtracted from the background.