
gravity
793
glossMap
Usage
member(
whichCastmember
).shader(
whichShader
).glossMap
member(
whichCastmember
).model(
whichModel
).shader.glossMap
member(
whichCastmember
).model(
whichModel
).shaderList{[
index
]}.\
glossMap
Description
3D
#standard
shader property; specifies the texture to use for gloss mapping.
When you set this property, the following properties are automatically set:
•
The fourth texture layer of the shader is set to the texture you specified.
•
The value of
textureModeList[4]
is set to
#none
.
•
The value of
blendFunctionList[4]
is set to
#multiply
.
Example
This statement sets the texture named Oval as the
glossMap
value for the shader used by the
model named GlassBox:
member("3DPlanet").model("GlassBox").shader.glossMap = \
member("3DPlanet").texture("Oval")
See also
blendFunctionList
,
textureModeList
,
region
,
specularLightMap
,
diffuseLightMap
gravity
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).gravity
Description
3D particle model resource property; when used with a model resource whose type is
#particle
,
allows you to get or set the
gravity
property of the resource as a vector.
This property defines the gravity force applied to all particles in each simulation step.
The default value for this property is
vector(0,0,0)
.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
gravity property of ThermoSystem to the vector (0, -.1, 0), which pulls the particles of
thermoSystem gently down the y axis.
member("Fires").modelResource("ThermoSystem").gravity = \
vector(0, -.1, 0)
See also
drag
,
wind
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...