3D Lingo Dictionary > O-S > reflectionMap |
![]() ![]() ![]() |
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
![]() ![]() ![]() |