camera.lookAt(new Vector3(1, 1, 1), Vector3.UNIT_Y);
camera.setFrustumPerspective(70.0, (float) camera.getWidth() / camera.getHeight(), 1.0f, farPlane);
}
protected void initFog( Node root) {
fogState = new FogState();
fogState.setStart(farPlane / 2.0f);
fogState.setEnd(farPlane);
fogState.setColor(new ColorRGBA(0.96f, 0.97f, 1.0f, 1.0f));
fogState.setDensityFunction(DensityFunction.Linear);
root.setRenderState(fogState);