lightangle(az, el)
lightangle(ax, az, el)
lightangle(go, az, el)
go = lightangle(...)
lightangle converts azimuth and elevation angles to a light position. If no light handle is supplied, it creates one.
surf(peaks(30), 'EdgeColor', 'none', 'FaceLighting', 'gouraud');
lightangle(45, 30);
material('shiny');
view(35, 28);
| Version | Description |
|---|---|
| 2.0.0 | initial version |