Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A material for CanvasItems.
CanvasItemMaterials provide a means of modifying the textures associated with a CanvasItem. They specialize in describing blend and lighting behaviors for textures. Use a ShaderMaterial to more fully customize a material's interactions with a CanvasItem.
BlendMode BLEND_MODE_MIX =
Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value.
BlendMode BLEND_MODE_ADD =
Additive blending mode.
BlendMode BLEND_MODE_SUB =
Subtractive blending mode.
BlendMode BLEND_MODE_MUL =
Multiplicative blending mode.
BlendMode BLEND_MODE_PREMULT_ALPHA =
Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
LightMode LIGHT_MODE_NORMAL =
Render the material using both light and non-light sensitive material properties.
LightMode LIGHT_MODE_UNSHADED =
Render the material as if there were no light.
LightMode LIGHT_MODE_LIGHT_ONLY =
Render the material as if there were only light.
BlendMode blend_mode =