Shading that incorporates ambient and diffuse properties only.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
This shading model is based on Lambert’s Law of diffuse reflectance, calculating the color of a point on a surface with the following formula:
The sum of all ambient lights in the scene (a color).
The surface normal vector at the point being shaded, as supplied by the geometry’s vertex data, interpolated between vertices, and possibly modified by the material’s
The (normalized) vector from the point being shaded to the light source.