Global Variable


A sample of the environment around a point in a scene to be used in environment-based lighting.


const SCNLightType SCNLightTypeProbe;


A light probe describes a point in a scene in terms of the variations in color and intensity of the illumination it receives from all directions. This information can then be used in shading of materials based on their location in the scene. For example, a white object placed near blue and red walls will appear bluish on surfaces facing the blue wall and reddish on surfaces facing the red wall.

You can place light probes in a scene and generate their lighting contributions using the Xcode scene editor, or import light probes from scene file formats that support them. Lighting-related properties of the SCNLight class do not apply to light probes; their contribution to scene rendering depends entirely on the light probe content generated in Xcode.