Create or position light object in spherical coordinates
light_handle = lightangle(az,el)
[az,el] = lightangle(light_handle)
a light at the position specified by azimuth and elevation.
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
the position of the light specified by
[az,el] = lightangle(light_handle) returns
the azimuth and elevation of the light specified by
Create a surface. Add a light and move the position of the light.
surf(peaks) axis vis3d h = light; for az = -50:10:50 lightangle(h,az,30) pause(.1) end
By default, when a light is created, its style is
If the light handle passed in to
to a local light, the distance between the light and the camera target
is preserved as the position is changed.