member(whichCastmember).shader(whichShader).blendSource
member(whichCastmember).model(whichModel).shader.blendSource
member(whichCastmember).model(whichModel).shaderList{[index]}.blendSource
3D #standard shader property; indicates whether blending of the first texture layer in the shaders texture list is based on the textures alpha information or a constant ratio.
If the shaders useDiffuseWithTexture property is set to TRUE, the texture blends with the color set by the shaders diffuse property. If useDiffuseWithTexture is FALSE, white is used for blending.
Each of the other texture layers blends with the texture layer below it. Use the blendSourceList property to control blending in those texture layers.
The blendSource property works only when the shaders blendFunction property is set to #blend.
The possible values of this property are as follows:
#alpha causes the alpha information in the texture to determine the blend ratio of each pixel of the texture with the color being used for blending (see above).
#constant causes the value of the shaders blendConstant property to be used as the blend ratio for all the pixels of the texture.
The default value of this property is #constant.
In this example, the shader list of the model named MysteryBox contains six shaders. This statement sets the blendSource property of the first texture used by the second shader to #constant. This enables the settings of the blendConstant and blendConstantList properties.
-- Lingo syntax
member("Level2").model("MysteryBox").shaderList[2].blendSource = #constant
// JavaScript syntax
member("Level2").getPropRef("model",3).shaderList[2].blendSource = symbol("constant");
blendSourceList, blendFunction, blendFunctionList, blendConstant, blendConstantList, useDiffuseWithTexture, diffuse, diffuseColor