Set the lighting of patch or surface graphic objects.
Valid arguments for type are
"flat"
Draw objects with faceted lighting effects.
"gouraud"
Draw objects with linear interpolation of the lighting effects between the vertices.
"none"
Draw objects without light and shadow effects.
If the first argument hax is an axes handle, then change the lighting
effects of objects in this axis, rather than the current axes returned by
gca
.
The lighting effects are only visible if at least one light object is present and visible in the same axes.
See also: light, fill, mesh, patch, pcolor, surf, surface, shading.
The following code
clf; colormap ("default"); sombrero (); shading flat lighting flat light (); title ("shading flat - lighting flat");
Produces the following figure
Figure 1 |
---|
The following code
clf; colormap ("default"); sombrero (); shading interp lighting gouraud light (); title ("shading interp - lighting gouraud");
Produces the following figure
Figure 1 |
---|
The following code
clf; colormap ("default"); pcolor (peaks ()); shading flat lighting flat light (); view (3) title ("shading flat - lighting flat");
Produces the following figure
Figure 1 |
---|
The following code
clf; colormap ("default"); pcolor (peaks ()); shading interp lighting gouraud light (); view (3) title ("shading interp - lighting gouraud");
Produces the following figure
Figure 1 |
---|
The following code
clf; colormap ("default"); mesh (sombrero ()); shading flat lighting flat light (); title ("shading flat - lighting flat");
Produces the following figure
Figure 1 |
---|
The following code
clf; colormap ("default"); mesh (sombrero ()); shading interp lighting gouraud light (); title ("shading interp - lighting gouraud");
Produces the following figure
Figure 1 |
---|
Package: octave