wobs.scene3d.nodes
Class DirectionalLight

java.lang.Object
  extended by X3DLightNode
      extended by wobs.scene3d.nodes.DirectionalLight

public class DirectionalLight
extends X3DLightNode

This class contains index constants to access fields in a DirectionalLight node using the X3DNode.getField(int fieldIndex) method.

In X3D/VRML, the DirectionalLight node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. The direction field specifies the direction vector of the illumination emanating from the light source in the local coordinate system. Light is emitted along parallel rays from an infinite distance away. A directional light source illuminates only the objects in its enclosing parent group. The light may illuminate everything within this coordinate system, including all children and descendants of its parent group. The accumulated transformations of the parent nodes affect the light.


Field Summary
static int ambientIntensity
          The constant used to access the ambientIntensity field of a DirectionalLight node.
static int color
          The constant used to access the color field of a DirectionalLight node.
static int direction
          The constant used to access the direction field of a DirectionalLight node.
static int intensity
          The constant used to access the intensity field of a DirectionalLight node.
static int on
          The constant used to access the on field of a DirectionalLight node.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ambientIntensity

public static final int ambientIntensity
The constant used to access the ambientIntensity field of a DirectionalLight node.
In X3D/VRML, this field specifies the ambient intensity, in the range of 0 to 1. The ambient intensity specifies the intensity of the ambient emission from the light.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

color

public static final int color
The constant used to access the color field of a DirectionalLight node.
In X3D/VRML, this field specifies the light color. Colors are specified with hexadecimal values (0xRRGGBB).

This field is of X3D/VRML-type SFColor.

See Also:
Constant Field Values

direction

public static final int direction
The constant used to access the direction field of a DirectionalLight node.
In X3D/VRML, this field specifies the light direction.

This field is of X3D/VRML-type SFVec3f.

See Also:
Constant Field Values

intensity

public static final int intensity
The constant used to access the intensity field of a DirectionalLight node.
In X3D/VRML, this field specifies the light intensity, in the range of 0 to 1.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

on

public static final int on
The constant used to access the on field of a DirectionalLight node.
In X3D/VRML, this field turns the light on and off.

This field is of X3D/VRML-type SFBool.

See Also:
Constant Field Values