User Guide

617
specularColor
Syntax
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 members 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 wont 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
Syntax
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.
All shaders have access to the
#standard shader properties; in addition to these standard shader
properties shaders of the types
#engraver, #newsprint, and #painter have properties unique to
their type. For more information, see the
newShader.
Example
This statement sets the texture Oval as the specularLightMap of the shader used by the model
GlassBox:
member("3DPlanet").model("GlassBox").shader.specularLightMap = \
member("3DPlanet").texture("Oval")
See also
diffuseLightMap