Derived from Light.
DirectionalLight {
SFVec3f direction 0 0 -1 # any vector
}
The DirectionalLight node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. Unlike PointLight, rays cast by DirectionalLight nodes do not attenuate with distance.
- The
directionfield specifies the direction vector of the illumination emanating from the light source in the global coordinate system. Light is emitted along parallel rays from an infinite distance away. Thedirectionfield is taken into account when computing the quantity of light received by a LightSensor.