User Guide
732 Chapter 14: Properties
diffuseColor
Usage
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
diffuseLightMap
Usage
member(whichCastmember).shader(whichShader).diffuseLightMap
member(whichCastmember).model(whichModel).shader.diffuseLightMap
member(whichCastmember).model(whichModel).shaderList{[index]}.\
diffuseLightMap
Description
3D #standard shader property; specifies the texture to use for diffuse light mapping.
When you set this property, the following properties are automatically set:
• The second texture layer of the shader is set to the texture you specified.
• The value of textureModeList[2] is set to #diffuse.
• The value of blendFunctionList[2] is set to #multiply.
• The value of blendFunctionList[1] is set to #replace.
Example
This statement sets the texture named Oval as the diffuseLightMap property of the shader used
by the model named GlassBox.
member("3DPlanet").model("GlassBox").shader.diffuseLightMap = \
member("3DPlanet").texture("Oval")
See also
blendFunctionList, textureModeList, glossMap, region, specularLightMap