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
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...