3D Lingo Dictionary > O-S > specularLightMap

 

specularLightMap

Syntax

member(whichCastmember).shader(whichShader).specularLightMap
member(whichCastmember).model(whichModel).shader.specularLightMap
member(whichCastmember).model(whichModel).shaderList[shaderListIndex].specularLightMap

Description

3D standard shader property; allows you to get or set the fifth texture layer of a given standard shader. This property is ignored if the toon modifier is applied to the model resource.

The values that can be set are as follows:

textureModeList[5] = #specular

blendFunctionList[5] = #add

blendFunctionList[1] = #replace

default = void

This helper property provides a simple interface for setting up a common use of specular light mapping.

All shaders have access to the #standard shader properties; in addition to these standard shader properties shaders of the types #engraver, #newsprint, and #painter have properties unique to their type. See the newShader for more information.

Example

This statement sets the texture Oval as the specularLightMap of the shader used by the model GlassBox.

member("3DPlanet").model("GlassBox").shader.specularLightMap = member("3DPlanet").texture("Oval")

See also

diffuseLightMap