blendFunction
Usage
member(whichCastmember).shader(whichShader).blendFunction
member(whichCastmember).model(whichModel).shader.blendFunction
member(whichCastmember).model(whichModel).shaderList{[index]}.\
blendFunction
Description
3D
shader property; indicates the type of blending used by the first texture layer of
#standard
the shader.
If the shader's
useDiffuseWithTexture
set by the shader's
blending.
Each of the other texture layers blends with the texture layer below it. Use the
blendFunctionList
The
blendFunction
multiplies the RGB values of the texture layer by the color being used for blending
#multiply
(see above).
adds the RGB values of the texture layer to the color being used for blending, and then
#add
clamps to 255.
prevents the texture from being blended with the color set by the shader's
#replace
property.
diffuse
combines the colors of the texture layer with the color being used for blending in the ratio
#blend
set by the
blendConstant
The default value of this property is
Example
In this example, the shader list of the model named MysteryBox contains six shaders. This
statement sets the
settings of the
blendSource
properties.
member("Level2").model("MysteryBox").shaderList[2].\
blendFunction = #blend
See also
blendConstant, blendConstantList, blendFunctionList, blendSource,
blendSourceList, useDiffuseWithTexture, diffuse,
660
Chapter 14: Properties
property. If
diffuse
useDiffuseWithTexture
property to control blending in those texture layers.
property can have the following values:
property.
#multiply
property of the second shader to
blendFunction
,
blendSource
property is set to
TRUE
.
List,
blendConstant
diffuseColor
, the texture blends with the color
is
, white is used for
FALSE
. This enables the
#blend
, and
blendConstantList
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers