position.set((fMinX + fMaxX) * 0.5, (fMinY + fMaxY) * 0.5, 1.0, 1);
shadowCam.getModelViewProjectionInverseMatrix().applyPre(position, position);
position.divideLocal(position.getW());
newCenter.set(position.getX(), position.getY(), position.getZ());
shadowCam.lookAt(newCenter, Vector3.UNIT_Y);
Vector3.releaseTempInstance(newCenter);
Vector4.releaseTempInstance(position);
shadowCam.setFrustum(fMinZ, fMaxZ, -width, width, height, -height);