MATLAB Function Reference Previous page   Next Page
lighting

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 gouraud 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

Lighting as a Visualization Tool for more information about lighting

Lighting for related functions


Previous page  lightangle lin2mu Next page

© 1994-2005 The MathWorks, Inc.