User Guide
660
Example
The following statement sets the global textureRenderFormat for the 3D member to #rgba8888.
Each texture in this movie will be rendered in 32-bit color unless its
texture.renderFormat
property is set to a value other than #default.
getRendererServices().textureRenderFormat = #rgba8888
See also
renderer, preferred3DRenderer, renderFormat, getRendererServices()
textureRepeat
Syntax
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