height *= scale;
geom = new Geometry("SkyPlane", new Quad(width, height));
geom.setLocalRotation(Quaternion.DIRECTION_Z.opposite());
geom.setLocalTranslation(c.getDirection().mult(-distance).add(new Vector3f(-width / 2, height / 2, 0)));
geom.setMaterial(mat);
camNode.attachChild(geom);
}
public void update(float tpf) {
Matrix4f cameraToWorld = geom.getWorldMatrix();