|MATLAB Function Reference|
Create or position a light object in spherical coordinates
creates a light at the position specified by azimuth and elevation.
az is the azimuthal (horizontal) rotation and
el is the vertical elevation (both in degrees). The interpretation of azimuth and elevation is the same as that of the
light_handle = lightangle(az,el)
creates a light and returns the handle of the light in
sets the position of the light specified by
[az,el] = lightangle(light_handle)
returns the azimuth and elevation of the light specified by
By default, when a light is created, its style is
infinite. If the light handle passed into
lightangle refers to a local light, the distance between the light and the camera target is preserved as the position is changed.
Lighting as a Visualization Tool for more information about lighting
Lighting for related functions