User Guide
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.