
Working with Models and Model Resources
493
Properties of the painter shader
The
#painter
shader gives the model a painted effect. Use these properties to work with the
painter shader:
blendConstant
Get and set
The blending ratio used for the first layer when
the blend function is set to
#blend
and
blendSourceList[
index
]
is set to
#constant
. Returns a floating-point value
from
0.0
to
100.0
.
50.0
textureRepeat
List[
index
]
Get and set
Allows you to get or set the texture clamping
behavior associated with a specified layer.
Texture clamping refers to how a texture
“clamps” to its shader. If the ratio of the
texture to the shader is less than 1 to 1 and
textureRepeatList
is set to
TRUE (1)
,
the texture tiles over the shader. If
textureRepeatList
is set to
FALSE
(0)
, the texture isn’t repeated but appears
only once in one part of the shader.
If the ratio of the texture to the shader is
greater than 1 to 1 and
textureRepeatList
is set to
FALSE
(0)
, the border of the texture is extended
past the unit UV coordinate range.
TRUE (1)
textureRepeat
List
Get and set
Access to the list of texture clamping
behaviors, one per layer.
When set to
FALSE (0)
, the border of the
texture is extended past the unit UV
coordinate range.
Get: Returns a list of texture clamping
behaviors, one per layer.
Set: Specifies a texture clamping behavior to
be applied to all layers.
TRUE (1)
textureRepeat
Get and set
Access to the texture clamping behavior for
the first layer.
When set to
FALSE (0)
, the border of the
texture is extended past the unit UV
coordinate range.
TRUE (1)
Property
Access
Description
Default
name
Get and set
Name of shader
None
style
Get and set
Possible values:
#toon
: sharp transitions between available
colors
#gradient
: smooth transitions between
available colors
#blackAndWhite
: sharp transitions
between black and white
#gradient
colorSteps
Get and set
Number of color steps used for lighting
calculations
2
shadow
Percentage
Get and set
Percentage of lighting intensity that is the
threshold between highlight and shadow
50
Property Name
Access
Description
Default
Summary of Contents for Director MX
Page 1: ...Using Director MX Macromedia Director MX ...
Page 12: ...Contents 12 ...
Page 156: ...Chapter 4 156 ...
Page 202: ...Chapter 6 202 ...
Page 244: ...Chapter 7 244 ...
Page 292: ...Chapter 10 292 ...
Page 330: ...Chapter 12 330 ...
Page 356: ...Chapter 13 356 ...
Page 372: ...Chapter 14 372 ...
Page 442: ...Chapter 16 442 ...
Page 472: ...Chapter 18 472 ...
Page 520: ...Chapter 19 520 ...
Page 536: ...Chapter 20 536 ...
Page 562: ...Chapter 23 562 ...
Page 566: ...Chapter 24 566 ...
Page 602: ...Chapter 27 602 ...