496

Working with fog
ExponentialFog example code

  • Create fog
    ExponentialFog myFog = new ExponentialFog( );
    myFog.setColor( new Color3f( 1.0f, 1.0f, 1.0f ) );
    myFog.setDensity( 1.0f );

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