Directional Lights
-
DirectionalLight extends the Light class
-
Light rays are parallel and aim in one direction
-
Use directional lights to simulate distant lights, like the Sun

Method |
Default |
void setDirection( Vector3f dir )
|
0.0, 0.0, -1.0
|
TransformGroup group = new TransformGroup( );
. . .
DirectionalLight light = new DirectionalLight( );
light.setEnable( true );
light.setColor( new Color3f( 1.0f, 1.0f, 1.0f ) );
light.setDirection( new Vector3f( 1.0f, 0.0f, 0.0f ) );
. . .
light.setInfluencingBounds( bounds );
group.addChild( light );