419

Working with Fog
ExponentialFog Example Code


TransformGroup group = new TransformGroup( );
. . .
ExponentialFog fog = new ExponentialFog( );
fog.setColor( new Color3f( 1.0f, 1.0f, 1.0f ) );
fog.setDensity( 1.0f );
. . .
fog.setInfluencingBounds( bounds );
group.addChild( fog );