Inherits: Material < Resource < RefCounted < Object
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.
| ||
| ||
|
0
Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value.
1
Additive blending mode.
2
Subtractive blending mode.
3
Multiplicative blending mode.
4
Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
0
Render the material using both light and non-light sensitive material properties.
1
Render the material as if there were no light.
2
Render the material as if there were only light.
0
The manner in which a material's rendering is applied to underlying textures.
0
The manner in which material reacts to lighting.
The number of columns in the spritesheet assigned as Texture2D for a GPUParticles2D or CPUParticles2D.
Note: This property is only used and visible in the editor if particles_animation is true.
If true, the particles animation will loop.
Note: This property is only used and visible in the editor if particles_animation is true.
The number of rows in the spritesheet assigned as Texture2D for a GPUParticles2D or CPUParticles2D.
Note: This property is only used and visible in the editor if particles_animation is true.
false
If true, enable spritesheet-based animation features when assigned to GPUParticles2D and CPUParticles2D nodes. The ParticleProcessMaterial.anim_speed_max or CPUParticles2D.anim_speed_max should also be set to a positive value for the animation to play.
This property (and other particles_anim_* properties that depend on it) has no effect on other types of nodes.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_canvasitemmaterial.html