diffuse
731
Example
This statement tests the size of the monitors connected to the computer and displays the result in
the Message window:
-- Lingo syntax
put(_system.deskTopRectList)
// JavaScript syntax
put(_system.deskTopRectList);
This handler tells how many monitors are in the current system:
-- Lingo syntax
on countMonitors
return _system.deskTopRectList
end
// JavaScript syntax
function countMonitors() {
return _system.deskTopRectList;
}
See also
System
diffuse
Usage
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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...