MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 488

Table of Contents

Advertisement

Properties of the standard shader
The standard shader makes the surface of a model appear in a photorealistic style. Use these
properties to work with the standard shader:
Property Name
name
ambient
diffuse
specular
shininess
emissive
blend
transparent
renderStyle
flat
488
Chapter 19
Access
Description
Get
The string name of this shader.
Get and set
A Lingo color object describing the surface's
reaction to ambient light.
Get and set
A Lingo color object describing the surface's
reaction to diffuse light. Ambient and diffuse
color objects together describe a model
resource's base color.
Get and set
A Lingo color object describing the surface's
specular highlight color. This setting has an
effect only if there are lights in the scene
whose specular property is
Get and set
An integer between
shiny a surface is.
Get and set
A Lingo color object describing the color of
light this object seems to give off. This does
not turn the surface using this shader into a
light source; it just gives it the appearance of
being one.
Get and set
An integer between
transparent
surfaces is. Unlike with a texture that includes
alpha information, this setting affects the
entire surface uniformly.
Get and set
This property controls whether or not the
model is blended using alpha values or
rendered as opaque. The default is
(1)
(alpha blended). The functionality of
shader.blend
shader.transparent
Get and set
This property can take the following values:
#fill
#wire
#point
shader.renderStyle = #fill
When
the polygons of the mesh are filled.
shader.renderStyle = #wire
When
the polygon edges of the mesh are rendered.
shader.renderStyle =
When
#point
rendered, provided that
#software
by the
shader.flat = TRUE (1)
Get and set
When
mesh should be rendered with flat shading
instead of Gouraud shading, which shades
each polygon separately. Flat shading shades
the mesh as a whole.
TRUE (1)
0
100
and
indicating how
0
100
and
indicating how
(0)
(100)
or opaque
this
TRUE
is dependent on
.
, the vertices of the mesh are
#Fill
is supported
renderer.
Default
None
rgb(63,63,
63)
rgb(255,
255,255)
rgb(255,
255,255)
.
30.0
rgb(0,0,0)
100
TRUE (1)
#fill
,
,
FALSE (0)
, the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents