User Guide
Chapter 3190
diffuse
Syntax
member(whichCastmember).shader(whichShader).diffuse
member(whichCastmember).model(whichModel).shader.diffuse
member(whichCastmember).model(whichModel).shaderList{[index]}.\
diffuse
Description
3D #standard shader property; indicates a color that is blended with the first texture of the
shader when the following conditions are met:
• the shader’s useDiffuseWithTexture property is set to TRUE, and either
• the blendFunction property of the shader is set to #add or #multiply, or
• the blendFunction property of the shader is set to #blend, the blendSource property of the
shader is set to
#constant, and the value of the blendConstant property of the shader is less
than 100.
The default value is of this property is
rgb( 255, 255, 255 ).
Example
This statement sets the diffuse property of the shader named Globe to rgb(255, 0, 0).
member("MysteryWorld").shader("Globe").diffuse = rgb(255, 0, 0)
See also
diffuseColor, useDiffuseWithTexture, blendFunction, blendSource, blendConstant
diffuseColor
Syntax
member(whichCastmember).diffuseColor
Description
3D cast member property; indicates a color that is blended with the first texture of the first shader
of the cast member when the following conditions are met:
• the shader’s useDiffuseWithTexture property is set to TRUE, and either
• the blendFunction property of the shader is set to #add or #multiply, or
• the blendFunction property of the shader is set to #blend, the blendSource property of the
shader is set to
#constant, and the value of the blendConstant property of the shader is less
than 100.
The default value is of the
diffuseColor property is rgb( 255, 255, 255 ).
Example
This statement sets the diffuseColor property of the cast member named Room to
rgb(255, 0, 0).
member("Room").diffuseColor = rgb(255, 0, 0)
See also
diffuse, useDiffuseWithTexture, blendFunction, blendSource, blendConstant