![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 732](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516732.webp)
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
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...