added reflection
@@ -62,8 +62,16 @@ public void testPerspectiveCamera() {
, 0.0f, 8.937492f, 0.0f, 0.0f
, 0.0f, 0.0f, -1.00004f, -0.20000401f
, 0.0f, 0.0f, -1.0f, 0.0f);
+ Matrix4f normViewMatrix = new Matrix4f(0.27303523f,0.0f,-0.962004f,-0.0f
+ ,-0.96200305f,0.0014514439f,-0.27303496f,-0.0f,
+ 0.0013962948f,0.99999887f,3.962953f,-0.0f,
+ 0.0f,0.0f,0.0f,1.0f);
- camera.getViewMatrix().epsilonEquals(viewMatrix, 1.0);
- camera.getProjectionMatrix().epsilonEquals(projectionMatrix, 1.0);
+
+ camera.getViewMatrix().epsilonEquals(viewMatrix, 0.5f);
+ camera.getProjectionMatrix().epsilonEquals(projectionMatrix, 0.5f);
+ camera.getNormViewMatrix().epsilonEquals(normViewMatrix,0.5f);
+ camera.setReflected(true);
+ camera.getNormViewMatrix().epsilonEquals(normViewMatrix,0.5f);
}
}
