3D Lingo Dictionary > T-Z > textureMode |  |

textureMode

Syntax

    member(whichCastmember).shader(whichShader).textureMode
    member(whichCastmember).model(whichModel).shader.textureMode
    member(whichCastmember).model(whichModel).shaderList{[index]}.textureMode

Description

3D `#standard` shader property; specifies how the first texture layer is mapped onto the surface of the model. Use the `textureModeList` property to specify textures for layers other than the first layer. This property is ignored if the `#toon` modifier is applied to the model resource.

The possible values of this property are `#none`, `#wrapPlanar`, `#wrapCylindrical`, `#wrapSpherical`, `#reflection`, `#diffuseLight`, and `#specularLight`. See the `textureModeList` entry for descriptions of these terms.

Example

This statement sets the value of the `textureMode` property of the first texture layer of the shader of the model named Ball to `#wrapSpherical`.

    member("scene").model("Ball").shader.textureMode = #wrapSpherical

See also

`textureModeList`