[ Contact ] [ Links ] [ Previous : 5 / 23 : Ambient Lights ] [ Up ] [ Next : 7 / 23 : Point Lights ]

Directional Lights

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 );

 


See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>