User Guide

Working with Models and Model Resources 489
textureList Get and set A shader can use up to eight layers of
textures. This eight-element list defines which
texture is used for which layer.
Get: Returns a list of texture objects, one per
layer.
Set: Specifies a texture object to be applied to
all layers. An argument of
void disables
texturing for all layers.
void
textureList
[
index]
Get and set A shader can use up to eight layers of
textures. This property gives access to the
texture at the indicated index position.
void
texture
Get and set This property allows access to the texture for
the first layer. It is equivalent to
textureList[1].
An argument of
void can be used to disable
texturing for the first layer.
void
reflectionMap
Get and set Get: Returns the texture associated with the
third layer.
Set: Specifies a texture to be used in the third
layer and applies the following values:
textureModeList[3] =
#reflection
blendFunctionList[3] = #blend
blendSourceList[3] = #constant
blendConstantList[3] = 50.0
void
diffuseLightMap Get and set Get: Returns the texture associated with the
second layer.
Set: Specifies a texture to be used in the
second layer and applies the following values:
textureModeList[2] = #diffuse
blendFunctionList[2] =
#multiply
blendFunctionList[1] = #replace
void
specularLight
Map
Get and set Get: Returns the texture associated with the
fifth layer.
Set: Specifies a texture to be used in the fifth
layer and applies the following values:
textureModeList[5] = #specular
blendFunctionList[5] = #add
blendFunctionList[1] = #replace
void
glossMap
Get and set Get: Returns the texture associated with the
fourth layer.
Set: Specifies a texture to be used in the
fourth layer and applies the following values:
textureModeList[4] = #none
blendFunctionList[4] =
#multiply
void
Property Name Access Description Default