camlight
Add a camera-following light source.
Syntax
Section titled “Syntax”camlightcamlight(az, el)camlight('headlight')Description
Section titled “Description”Adds a light positioned relative to the current camera. 'headlight' (default) puts the light at the camera position. camlight(az, el) positions the light at the given azimuth/elevation offset from the camera.
The light moves with the camera as the user rotates the view, keeping illumination consistent.
Example
Section titled “Example”surf(peaks); camlightSee also
Section titled “See also”light— Add a directional or point light source to a 3D scene.lightangle— Add or position a light source by azimuth and elevation.lighting— Set the lighting model on a surface.