3D Lingo Dictionary > C-D > diffuseLightMap |  |

diffuseLightMap

Syntax

    member(whichCastmember).shader(whichShader).diffuseLightMap
    member(whichCastmember).model(whichModel).shader.diffuseLightMap
    member(whichCastmember).model(whichModel).shaderList{[index]}.diffuseLightMap

Description

3D `#standard` shader property; specifies the texture to use for diffuse light mapping.

When you set this property, the following properties are automatically set:

| The second texture layer of the shader is set to the texture you specified.
| The value of `textureModeList[2]` is set to `#diffuse`.
| The value of `blendFunctionList[2]` is set to `#multiply`.
| The value of `blendFunctionList[1]` is set to `#replace`.

Example

This statement sets the texture named Oval as the `diffuseLightMap` property of the shader used by the model named GlassBox.

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

See also

`blendFunctionList`, `textureModeList`, `glossMap`, `reflectionMap`, `specularLightMap`