rootNode.setRenderQueueMode( Renderer.QUEUE_OPAQUE );
fpsNode.setRenderQueueMode( Renderer.QUEUE_OPAQUE );
}
private void setupFog() {
FogState fogState = display.getRenderer().createFogState();
fogState.setDensity( 1.0f );
fogState.setEnabled( true );
fogState.setColor( new ColorRGBA( 1.0f, 1.0f, 1.0f, 1.0f ) );
fogState.setEnd( farPlane );
fogState.setStart( farPlane / 10.0f );
fogState.setDensityFunction( FogState.DF_LINEAR );
fogState.setApplyFunction( FogState.AF_PER_VERTEX );
rootNode.setRenderState( fogState );
}