A cube map texture that contains samples of the total light arriving at the light probe’s position from every direction.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
A renderer can use this texture to create diffuse lighting effects. You can derive an irradiance map from a reflective texture with methods on the
MDLTexture class, or when creating a light probe with the
For example, consider a light probe whose reflective texture is red in all directions above the probe’s location and blue in all directions below that point. A diffuse material on the side of such an object should appear purple, because the side of the object receives a blend of the red light from above and the blue light from below. Therefore, the irradiance texture for this light probe is red directly above, blue directly below, and contains gradations of purple on all sides.