732
wrapTransformList
Syntax
member(
whichCastmember
).shader(
ShaderName
).wrapTransformList\
[
textureLayerIndex
]
member(
whichCastmember
).shader[
shaderListIndex
].\
wrapTransformList[
textureLayerIndex
]
member(
whichCastmember
).model(
modelName
).\
shader.wrapTransformList[
textureLayerIndex
]
member(
whichCastmember
).model(
modelName
).shaderList\
[
shaderListIndex
]. wrapTransformList[
textureLayerIndex
]
Description
3D standard shader property; this property provides access to a transform that modifies the
texture coordinate mapping of a specified texture layer. Rotate this transform to alter how the
texture is projected onto model surfaces. The texture itself remains unaffected; the transform
modifies only the orientation of how the shader applies the texture.
Note:
wrapTransformList[textureLayerIndex] only has an effect when textureModeList[
textureLayerIndex
] is
set to #planar, #spherical, or #cylindrical.
Example
In this example, line 2 sets the
transformMode
of the third texture layer of the shader named
“shad2” to
#wrapCylindrical
. Line 3 rotates that cylindrical projection by 90° 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.textureModeList[3] = #wrapCylindrical
s.wrapTransformList[3].rotate(90.0, 0.0, 0.0)
See also
newShader
,
textureModeList
x (vector property)
Syntax
member(
whichCastmember
).vector.x
member(
whichCastmember
).vector[1]
Description
3D property; allows you to get or set the
x
component of a vector.
Example
This statement shows the
x
component of a vector:
vec = vector(20, 30, 40)
put vec.x
-- 20.0000
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...