MATLAB Functions Help Desk

lighting

Purpose

Select the lighting algorithm

Syntax

Description

lighting selects the algorithm used to calculate the effects of Light objects on all Surface and Patch objects in the current Axes.

lighting flat selects flat lighting.

lighting gouraund selects gouraud lighting.

lighting phong selects phong lighting.

lighting none turns off lighting.

Remarks

The surf, mesh, pcolor, fill, fill3, surface, and patch functions create graphics objects that are affected by light sources. The lighting command sets the FaceLighting and EdgeLighting properties of Surfaces and Patches appropriately for the graphics object.

See Also

light, material, patch, surface



[ Previous | Help Desk | Next ]