Specify lighting algorithm
lighting selects the algorithm used to
calculate the effects of
light objects on all
in the current axes. In order for the
to have any effects, however, you must create a lighting object by
lighting flat produces
uniform lighting across each of the faces of the object. Select this
method to view faceted objects.
lighting gouraud calculates
the vertex normals and interpolates linearly across the faces. Select
this method to view curved surfaces.
lighting none turns off
lighting(ax,...) uses the axes specified by
instead of the current axes.
patch functions create graphics objects that are affected by light
lighting command sets the
properties of surfaces and patches appropriately for the graphics object.