534
You can get access to the string referred to by the reference using the text property of the
reference:
put myRef.text
This would result in the actual string data, not information about the string.
reflectionMap
Syntax
member(
whichCastmember
).shader(
whichShader
).reflectionMap
Description
3D shader property; allows you to get and set the texture used to create reflections on the surface
of a model. This texture is applied to the third texture layer of the shader. This property is ignored
if the
toon
modifier is applied to the model resource.
This helper property provides a simple interface for setting up a common use of reflection
mapping. The same effect can be achieved by setting the following properties:
shader.textureModeList[3] = #reflection
shader.blendFunctionList[3] = #blend
shader.blendSourceList[3] = #constant
shader.blendConstantList[3] = 50.0
When tested, this property returns the texture associated with the model’s third texture layer. The
default is
void
.
Example
This statement causes the model named GlassSphere to appear to reflect the texture named
Portrait off of its surface:
member("3DPlanet").model("GlassSphere").shader.reflectionMap = \
member("3DPlanet").texture("Portrait")
See also
textureModeList
,
blendFunctionList
,
blendConstantList
reflectivity
Syntax
member(
whichCastmember
).reflectivity
Description
3D shader property; allows you to get or set the shininess of the referenced member’s default
shader. The value is a floating point value representing the percentage of light to be reflected off
the surface of a model using the default shader, from 0.0 to 100.00. The default value is 0.0.
Example
This statement sets the shininess of the default shader in the cast member named Scene to 50%:
member("Scene").reflectivity = 50
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...