2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-02-24 18:59:38 +01:00
<class name= "CanvasItemMaterial" inherits= "Material" category= "Core" version= "3.0.1" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-12-07 20:17:08 +01:00
A material for [CanvasItem]s.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-12-07 20:17:08 +01:00
[code]CanvasItemMaterial[/code]s 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].
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
</methods>
<members >
2017-09-13 08:49:40 +02:00
<member name= "blend_mode" type= "int" setter= "set_blend_mode" getter= "get_blend_mode" enum= "CanvasItemMaterial.BlendMode" >
2017-12-07 20:17:08 +01:00
The manner in which a material's rendering is applied to underlying textures.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_mode" type= "int" setter= "set_light_mode" getter= "get_light_mode" enum= "CanvasItemMaterial.LightMode" >
2017-12-07 20:17:08 +01:00
The manner in which material reacts to lighting.
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_MODE_MIX" value= "0" enum= "BlendMode" >
2017-12-07 20:17:08 +01:00
Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_MODE_ADD" value= "1" enum= "BlendMode" >
2017-12-07 20:17:08 +01:00
Additive blending mode.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_MODE_SUB" value= "2" enum= "BlendMode" >
2017-12-07 20:17:08 +01:00
Subtractive blending mode.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_MODE_MUL" value= "3" enum= "BlendMode" >
2017-12-07 20:17:08 +01:00
Multiplicative blending mode.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_MODE_PREMULT_ALPHA" value= "4" enum= "BlendMode" >
2017-12-07 20:17:08 +01:00
Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_MODE_NORMAL" value= "0" enum= "LightMode" >
2017-12-07 20:17:08 +01:00
Render the material using both light and non-light sensitive material properties.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_MODE_UNSHADED" value= "1" enum= "LightMode" >
2017-12-07 20:17:08 +01:00
Render the material as if there were no light.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_MODE_LIGHT_ONLY" value= "2" enum= "LightMode" >
2017-12-07 20:17:08 +01:00
Render the material as if there were only light.
2017-09-12 22:42:36 +02:00
</constant>
</constants>
</class>