Skip to content

lighting

Set the lighting model on a surface.

lighting flat
lighting gouraud
lighting none

Selects the shading interpolation algorithm for surfaces and patches:

  • 'flat' — uniform shading per face (default for surf)
  • 'gouraud' — smooth shading interpolated across vertices
  • 'none' — no lighting (color from data only)
lighting gouraud
  • light — Add a directional or point light source to a 3D scene.
  • lightangle — Add or position a light source by azimuth and elevation.
  • material — Set surface material reflectance properties.
  • shading — Set the surface-edge rendering style.