Skip to content

lightangle

Add or position a light source by azimuth and elevation.

h = lightangle(az, el)
h = lightangle(h, az, el)

Convenience wrapper around light — places a light at the specified azimuth az (degrees) and elevation el (degrees) on a unit sphere around the camera target.

lightangle(45, 30)
  • light — Add a directional or point light source to a 3D scene.
  • view — Set or query the camera view angle.