Enum BaseMaterial3D.BlendModeEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum BaseMaterial3D.BlendModeEnum : long
Fields
Add = 1The color of the object is added to the background.
Mix = 0Default blend mode. The color of the object is blended over the background based on the object's alpha value.
Mul = 3The color of the object is multiplied by the background.
PremultAlpha = 4The 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_FACTORbuilt-in so that lighting can be modulated as well.Sub = 2The color of the object is subtracted from the background.