251

Lighting the environment
AmbientLight example code

  • Create a light
    AmbientLight myLight = new AmbientLight( );
    myLight.setEnable( true );
    myLight.setColor( new Color3f( 1.0f, 1.0f, 1.0f ) );

  • Set its influencing bounds
    BoundingSphere myBounds = new BoundingSphere(
        new Point3d( ), 1000.0 );
    myLight.setInfluencingBounds( myBounds );