3D Lingo Dictionary > T-Z > wrapTransform |
![]() ![]() ![]() |
wrapTransform
Syntax
member(whichCastmember
).shader(ShaderName
).wrapTransform member(whichCastmember
).shader[ShaderIndex
].wrapTransform member(whichCastmember
).model[modelName
].shader.wrapTransform member(whichCastmember
).model.shaderlist[shaderListIndex
].wrapTransform
Description
3D standard shader property; this property provides access to a transform that modifies the texture coordinate mapping for the shader's texture
. Rotate this transform to alter how the texture is projected onto a model surface. The texture remains unaffected; the transform modifies only the orientation of how the shader applies the texture.
Note: Note: This command only has an effect when the shader's textureModeList is set to is #planar, #spherical, or #cylindrical.
Example
These statements set the transformMode
of the shader named "shad2" to #wrapCylindrical
, then rotates that cylindrical projection by 90 degrees about the x axis so that the cylindrical mapping wraps around the y axis instead of the z axis.
s = member("Scene").shader("shad2") s.textureMode= #wrapCylindrical s.wrapTransform.rotate(90.0, 0.0, 0.0)
![]() ![]() ![]() |