3D Lingo Dictionary > O-S > specular (shader) |  |

specular (shader)

Syntax

    member(whichCastmember).shader(whichShader).specular

Description

3D standard shader property; allows you get or set the specular color of a given shader. The specular color is the color of the highlight generated when specularity is turned on. There must be lights in the scene with the specular property set to `TRUE`, for this property to have a visible effect. The specular color is influenced by the color of the lights illuminating the object. If the specular color is white but the color of a light is red, there will be a red specular highlight appearing on the object. The default value for this property is rgb(255, 255, 255) which is white.

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

    put member("scene").shader("plutomat").specular
    -- rgb(11, 11, 11)

See also

`shininess`, `specular (light)`, `specularColor`, `emissive`