Instance Method


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


- (void)generateCubemapFromLight:(NSUInteger)textureSize;



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


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


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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software