
616
specular (light)
Syntax
member(
whichCastmember
).light(
whichLight
).specular
Description
3D light property; allows you to get or set whether specularity is on
(TRUE)
or off
(FALSE)
.
Specularity refers to the ability to have a highlight appear on a model where the light hitting the
model is reflected toward the camera. The shininess of the model’s shader determines how large
the specular portion of the highlight is. The value for this property is ignored for ambient lights.
The default value for this property is
TRUE
.
Note:
Turning off this property may increase performance.
Example
The following statement sets the specular property of the light omni2 to
FALSE
. This light does
not cause highlights. If this is the only light currently shining in the scene, there will be no
specular highlights on any of the shaders in the scene.
member("3d world").light("omni2").specular = FALSE
See also
silhouettes
,
specularLightMap
specular (shader)
Syntax
member(
whichCastmember
).shader(
whichShader
).specular
Description
3D standard shader property; allows you get or set the specular color of a given shader. The
specular color is the color of the highlight generated when specularity is turned on. There must be
lights in the scene with the specular property set to
TRUE
, for this property to have a visible effect.
The specular color is influenced by the color of the lights illuminating the object. If the specular
color is white but the color of a light is red, there will be a red specular highlight appearing on the
object. The default value for this property is rgb(255, 255, 255) which is white.
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
newShader
.
Example
put member("scene").shader("plutomat").specular
-- rgb(11, 11, 11)
See also
silhouettes
,
specular (light)
,
specularColor
,
emissive
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...