MATLAB Functions | Help Desk |
lighting
Select the lighting algorithmlighting flat lighting gouraud lighting phong lighting none
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.
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.
light
, material
, patch
, surface