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
•
the
blendFunction
•
the
blendFunction
shader is set to
than 100.
The default value is of the
Example
This statement sets the
rgb(255, 0, 0)
member("Room").diffuseColor = rgb(255, 0, 0)
See also
diffuse, useDiffuseWithTexture, blendFunction, blendSource,
diffuseLightMap
Usage
member(whichCastmember).shader(whichShader).diffuseLightMap
member(whichCastmember).model(whichModel).shader.diffuseLightMap
member(whichCastmember).model(whichModel).shaderList{[index]}.\
diffuseLightMap
Description
3D
shader property; specifies the texture to use for diffuse light mapping.
#standard
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]
•
The value of
blendFunctionList[2]
•
The value of
blendFunctionList[1]
Example
This statement sets the texture named Oval as the
by the model named GlassBox.
member("3DPlanet").model("GlassBox").shader.diffuseLightMap = \
member("3DPlanet").texture("Oval")
See also
blendFunctionList, textureModeList, glossMap, region,
732
Chapter 14: Properties
property of the shader is set to
property of the shader is set to
, and the value of the
#constant
diffuseColor
property of the cast member named Room to
diffuseColor
.
is set to
property is set to
TRUE
or
#add
#multiply
, the
#blend
blendConstant
property is
rgb( 255, 255, 255 )
.
#diffuse
is set to
.
#multiply
is set to
.
#replace
diffuseLightMap
, and either
, or
property of the
blendSource
property of the shader is less
.
blendConstant
property of the shader used
specularLightMap
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