3D Lingo Dictionary > A-B > blendConstantList |
![]() ![]() ![]() |
blendConstantList
Syntax
member(whichCastmember
).shader(whichShader
).blendConstantList member(whichCastmember
).model(whichModel
).shader.blendConstantList{[index
]} member(whichCastmember
).model(whichModel
).shaderList{[index
]}.blendConstantList{[index
]}
Description
3D #standard
shader property; indicates the ratio used for blending a texture layer of the shader with the texture layer below it.
The shader's texture list and the blend constant list both have eight index positions. Each index position in the blend constant list controls blending for the texture at the corresponding index position in the texture list. You can set all index positions of the list to the same value at one time by not specifying the optional index
parameter. Use the index
parameter to set the list one index position at a time.
The blendConstantList
property only works when the blendSource
property of the corresponding texture layer is set to #constant
. See blendSource
and blendSourceList
for more information.
The range of this property is 0 to 100; the default is 50.
Example
In this example, the shader list of the model named MysteryBox contains six shaders. This statement shows the blendConstant
property of each of the textures used by the second shader. This property is affected by the settings of the blendFunction
, blendFunctionList
, blendSource
, and blendSourceList
properties.
put member("Level2").model("MysteryBox").shaderList[2].blendConstantList -- [20.0000, 50.0000, 50.0000, 50.0000, 20.0000, 50.0000, 50.0000, 50.0000]
See also
blendConstant
, blendFunction
, blendFunctionList
, blendSource
, blendSourceList
, useDiffuseWithTexture
, diffuse
, diffuseColor
![]() ![]() ![]() |