Type Property


Uniform shading that incorporates ambient lighting only.


static let constant: SCNMaterial.LightingModel


This shading model calculates the color of a point on a surface with the following formula:

color = ambient * al + diffuse

The ambient and diffuse terms refer to the material’s properties. The al term is the sum of all ambient lights in the scene (a color).