Instance Method

generateCubemapFromLight:

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

Declaration

- (void)generateCubemapFromLight:(NSUInteger)textureSize;

Parameters

textureSize

The size (side length in pixels) of cube map texture to generate.

Discussion

After generating a texture, use the lightCubeMap property to access it. 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

lightCubeMap

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