Instance Property

lightCubeMap

A cube map texture describing the light’s intensity in all directions.

Declaration

var lightCubeMap: MDLTexture? { get }

Discussion

Use the generateSphericalHarmonics(fromLight:) method to create a cube map texture based on the light’s photometry data, then use this property to access the resulting texture. In this texture, each texel represents the light’s intensity in the direction from the cube’s center to the texel’s position on the cube.

See Also

Interpreting the Light Web as a Cube Texture

func generateCubemap(fromLight: Int)

Generates a cube map texture from the light’s photometry data.