Skip to content

material

Set surface material reflectance properties.

material shiny
material dull
material metal
material([ka kd ks])

Sets the ambient / diffuse / specular reflectance ratios for surfaces. Preset strings: 'shiny', 'dull', 'metal'. Or pass a 3-element vector to set the [ambient, diffuse, specular] coefficients explicitly.

material shiny
  • light — Add a directional or point light source to a 3D scene.
  • lighting — Set the lighting model on a surface.