Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 775 Bytes

File metadata and controls

20 lines (14 loc) · 775 Bytes

DirectionalLight

Derived from Light.

DirectionalLight {
  SFVec3f direction 0 0 -1   # any vector
}

Description

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.

Field Summary

  • The direction field 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. The direction field is taken into account when computing the quantity of light received by a LightSensor.