textureRepeatList 1035
textureRepeat
Usage
member(
whichCastmember
).shader(
whichShader
).textureRepeat
member(
whichCastmember
).model(
whichModel
).shader.textureRepeat
member(
whichCastmember
).model(
whichModel
).shaderList{[index]}.\
textureRepeat
Description
3D
#standard
shader property; controls the texture clamping behavior of the first texture layer of
the shader. Use the
textureRepeatList
property to control this property for texture layers other
than the first layer.
When
textureRepeat
is set to
TRUE
and the value of the x and/or y components of
shaderReference.textureTransform.scale
is less than 1, the texture is tiled (repeated) across
the surface of the model.
When
textureRepeat
is set to
FALSE
, the texture will not tile. If the value of the x and/or y
components of
shaderReference.textureTransform.scale
is less than 1, any area of the
model not covered by the texture will be black. If the value of the x and/or y components of
shaderReference.textureTransform.scale
is greater than 1, the texture is cropped as it
extends past the texture coordinate range.
The default value of this property is
TRUE
. This property is always
TRUE
when using the
#software
renderer.
Example
The following statement sets the
textureRepeat
property of the first shader used by the model
named gbCyl3 to
TRUE
. The first texture in that shader will tile if the value of the x or y
component of its
textureTransform
or
textureTransformList
property is less than 1.
member("scene").model("gbCyl3").shader.textureRepeat = TRUE
See also
textureTransform
,
textureTransformList
textureRepeatList
Usage
shaderReference.textureRepeatList[
textureLayerIndex
]
member(
whichCastmember
).shader(
whichShader
).textureRepeatList\
[
textureLayerIndex
]
member(
whichCastmember
).shader[
shaderListIndex
].textureRepeatList\
[
textureLayerIndex
]
member(
whichCastmember
).model(
whichModel
).shader.textureRepeatList\
[
textureLayerIndex
]
member(
whichCastmember
).model(
whichModel
).shaderList\
[
shaderListIndex
]. textureRepeatList[
textureLayerIndex
]
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...