lightangle
Create or position a light from angles.
📝Syntax
lightangle(az, el)
lightangle(ax, az, el)
lightangle(go, az, el)
go = lightangle(...)
📄Description

lightangle converts azimuth and elevation angles to a light position. If no light handle is supplied, it creates one.

💡Examples
surf(peaks(30), 'EdgeColor', 'none', 'FaceLighting', 'gouraud');
lightangle(45, 30);
material('shiny');
view(35, 28);
Example illustration
🔗See Also
lightcamlight
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub