Shading based on a realistic abstraction of physical lights and materials.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
- watchOS 3.0+
Physically-based shading incorporates a refined model of the interactions between real-world lights and materials. Using modern GPU hardware and algorithms, this model can produce more realistic results than the loose abstractions of traditional shading, while also offering a set of material properties that is easier for artists to work with. Especially when combined with environmental lighting (see the
lighting property) and high dynamic range cameras (see the
wants property), physically-based shading can produce realistic results similar to those seen in recent animated feature films.
Physically based shading relies primarily on three material properties:
diffuseproperty (called albedo in some authoring tools) provides the “base” color of a material.
roughnessproperty (inverted and called smoothness in some authoring tools) is an approximation of the microscopic detail in a real-world surface. By approximating these “microfacets” as a single term, this property helps produce lighting calculations that resemble the energy-conserving laws of real-world physics, resulting in more realistic variation between matte and shiny surfaces.
metalnessproperty approximates other aspects of a physical surface, such as index of refraction, tendency to produce sharp reflections, and tendency to produce Fresnel reflections at grazing angles, which together produce an overall metallic or nonmetallic (also called dielectric) appearance.
In addition, you can add surface detail to a physically based material with the
ambient properties, and modulate the contribution of environmental lighting with the