specularLightMap 1003
Example
put member("scene").shader("plutomat").specular
-- rgb(11, 11, 11)
See also
silhouettes
,
specular (light)
,
specularColor
,
emissive
specularColor
Usage
member(
whichCastmember
).specularColor
Description
3D cast member property; allows you to get or set the RGB value of the specular color of the first
shader in the cast member. The first shader in the cast member’s shader palette is always the
default shader. This and all other 3D cast member properties are saved with the cast member and
are restored the next time you open the movie. The default value for this property is rgb(255,
255, 255) which is white.
Example
The following statement sets the specular color of the first shader in the cast member Scene to
rgb(255, 0, 0). It is equivalent to
member("Scene").shader[1].specular = rgb(255, 0,
0).
However, that syntax won’t save the new value with the cast member when the movie is saved.
Only
member.specularColor
will save the new color value.
member("Scene").specularColor = rgb(255, 0, 0)
See also
silhouettes
,
specular (light)
,
specular (shader)
specularLightMap
Usage
member(
whichCastmember
).shader(
whichShader
).specularLightMap
member(
whichCastmember
).model(
whichModel
).shader.specularLightMap
member(
whichCastmember
).model(
whichModel
).shaderList\
[
shaderListIndex
].specularLightMap
Description
3D standard shader property; allows you to get or set the fifth texture layer of a given standard
shader. This property is ignored if the
toon
modifier is applied to the model resource.
The values that can be set are as follows:
•
textureModeList[5] = #specular
•
blendFunctionList[5] = #add
•
blendFunctionList[1] = #replace
•
default = void
This helper property provides a simple interface for setting up a common use of specular
light mapping.
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...