texture
Tag: texture
Parent tag: textures
Attributes:
name(string) – the name of a previously defined texture.UNIT(unsigned int) – The texture unit
Child tags:
BORDER_COLOR(vec4) – default (0,0,0,0)COMPARE_FUNC(enum) – {LEQUAL (default), GEQUAL, LESS, GREATER, EQUAL, NOTEQUAL, ALWAYS, NEVER }COMPARE_MODE(enum) – {NONE (default), COMPARE_REF_TO_TEXTURE }MAG_FILTER(enum) – {NEAREST, LINEAR (default)}MIN_FILTER(enum) – {NEAREST, LINEAR (default), LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, NEAREST_MIPMAP_LINEAR, NEAREST_MIPMAP_NEAREST }WRAP_S(enum) – {REPEAT (default), CLAMP_TO_EDGE, CLAMP_TO_BOREDER, MIRRORED_REPEAT}WRAP_R(enum) – {REPEAT (default), CLAMP_TO_EDGE, CLAMP_TO_BOREDER, MIRRORED_REPEAT}WRAP_T(enum) – {REPEAT (default), CLAMP_TO_EDGE, CLAMP_TO_BOREDER, MIRRORED_REPEAT}
Example:
<texture name="shadowMap" UNIT="0"> <COMPARE_MODE value="COMPARE_REF_TO_TEXTURE" /> <COMPARE_FUNC value="LEQUAL" /> <MIN_FILTER value="LINEAR" /> <MAG_FILTER value="LINEAR" /> </texture>