| MATLAB Function Reference | Search  Help Desk |
| lighting | See Also |
Syntax
lighting flat lighting gouraud lighting phong lighting none
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
Thesurf, 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