Class DirectionalLightObject

All Implemented Interfaces:
X3DChildNode, X3DNode, DirectionalLight, X3DLightNode

public class DirectionalLightObject
extends X3DConcreteNode
implements DirectionalLight
DirectionalLight might not be scoped by parent Group or Transform at levels 1 or 2.

X3D node tooltip: [X3DLightNode] DirectionalLight defines parallel light rays that illuminate geometric shapes. Lighting illuminates all geometry except lines and points. By default, light scope only illuminates peer geometry and children nodes within the scene graph hierarchy. No source location is needed since rays are parallel from an infinitely distant source. DirectionalLight nodes do not attenuate with distance. Lights have no visible shape themselves and lighting effects continue through any intermediate geometry.
  • Hint: animate direction to simulate time-of-day sunlight effects.
  • Hint: the bound NavigationInfo controls whether headlight is enabled on/off. Interchange profile hint: light might not be scoped by parent Group or Transform.

Note that SFColorObject provides a variety of color constants.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
X3D Abstract Specification: DirectionalLight, X3D Tooltips: DirectionalLight, X3D Scene Authoring Hints