Type Property

constant

Uniform shading that incorporates ambient lighting only.

Declaration

static let constant: SCNMaterial.LightingModel

Discussion

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).