lighting
Set surface and patch lighting mode.
📝Syntax
lighting(type)
lighting(ax, type)
📥Input Arguments
Parameter Description
ax target axes.
type none, flat, or gouraud.
📄Description

lighting sets FaceLighting and EdgeLighting on surface and patch children in axes.

💡Examples
surf(peaks(30), 'EdgeColor', 'none');
light();
lighting gouraud;
Example illustration
🔗See Also
lightmaterial
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub