243
Flat shading uses one color per face of the mesh. The color used for the face is the color of its first
vertex. Flat shading is faster than Gouraud shading.
Gouraud shading assigns a color to each vertex of a face and interpolates the colors across the face in
a gradient. Gouraud shading requires more time and calculation, but creates a smoother surface.
The default value for this property is
FALSE
.
Example
The following statement sets the
flat
property of the shader named Wall to
TRUE
. The mesh of a
model that uses this shader will be rendered with one color per face.
member("MysteryWorld").shader("Wall").flat = TRUE
See also
mesh (property)
,
colors
,
vertices
,
generateNormals()
flipH
Syntax
sprite(
whichSpriteNumber
).flipH
the flipH of sprite
whichSpriteNumber
Description
Sprite property; indicates whether a sprite’s image has been flipped horizontally on the Stage
(
TRUE
) or not (
FALSE
).
The image itself is flipped around its registration point.
This means any rotation or skew remains constant; only the image data itself is flipped.
Example
This statement displays the
flipH
of sprite 5:
put sprite (5).flipH
See also
flipV
,
rotation
,
skew
flipV
Syntax
sprite(
whichSpriteNumber
).flipV
the flipV of sprite
whichSpriteNumber
Description
Sprite property; indicates whether a sprite’s image has been flipped vertically on the Stage (
TRUE
)
or not (
FALSE
).
The image itself is flipped around its registration point.
This means any rotation or skew remains constant; only the image data itself is flipped.
Example
This statement displays the
flipV
of sprite 5:
sprite (5).flipV = 1
See also
flipH
,
rotation
,
skew
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...