state
Tag: state
Parent tag: map
Attributes:
name
– specifies the name of the statefromLibrary
– specifies the name of the material library
where the material can be found.
Child tags: none
Example:
Consider a state defined in a material library named ‘Texture’ as:
<states> <state name="cullFront"> <CULL_TYPE value="FRONT" /> </state> </states>
To use this state in every material write:
<injectionMaps> <map toMaterial="*"> <state name="cullFront" fromLibrary="Texture" /> </map> </injectionMaps>
Note: this state injection can be made for particular materials, replacing the ‘*’ by the name of the material.