Global Variable


A light source with a uniform direction and constant intensity.


const SCNLightType SCNLightTypeDirectional;


Because a directional light illuminates all objects in the scene from the same direction and with the same intensity, so the position of the node containing the light has no effect. Attenuation and spotlight angle attributes do not apply to directional lights.