Color shading mode.
SHADING controls the color shading of SURFACE and PATCH objects.
SURFACE and PATCH objects are created by the functions SURF , MESH ,
PCOLOR , FILL , and FILL3 .
SHADING FLAT sets the shading of the current graph to flat.
SHADING INTERP sets the shading to interpolated.
SHADING FACETED sets the shading to faceted, which is the default.
Flat shading is piecewise constant; each mesh line segment or
surface patch has a constant color determined by the color value
at the end point of the segment or the corner of the patch which
has the smallest index or indices.
Interpolated shading, which is also known as Gouraud shading, is
piecewise bilinear; the color in each segment or patch varies linearly
and interpolates the end or corner values.
Faceted shading is flat shading with superimposed black mesh lines.
This is often the most effective and is the default.
SHADING is an M-file that sets the EdgeColor and FaceColor properties
of all SURFACEZ9CYVV objects in the current axes. It sets them to the
correct values that depend upon whether the SURFACE objects are
representing meshes or surfaces.
See also SURF1F43EU2, MESH , PCOLOR , FILL , FILL3 , SURFACE , PATCH .