3D Lingo Dictionary > E-K > emissive

 

emissive

Syntax

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

Description

3D #standard shader property; adds light to the shader independently of the lighting in the scene. For example, a model using a shader whose emissive property is set to rgb(255, 255, 255) will appear to be illuminated by a white light, even if there are no lights in the scene. The model will not, however, illuminate any other models or contribute any light to the scene.

The default value for this property is rgb(0, 0, 0).

Example

This statement sets the emissive property of the shader named Globe to rgb(255, 0, 0). Models using this shader will appear to be illuminated by a red light.

member("MysteryWorld").shader("Globe").emissive = rgb(255, 0, 0)

See also

shininess