User Guide
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