Ver código fonte

* Fixed culling with asymmetric frustums

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9621 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..rd 13 anos atrás
pai
commit
dba5ba5851
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      engine/src/core/com/jme3/renderer/Camera.java

+ 2 - 2
engine/src/core/com/jme3/renderer/Camera.java

@@ -1169,11 +1169,11 @@ public class Camera implements Savable, Cloneable {
             float topSquared = frustumTop * frustumTop;
 
             float inverseLength = FastMath.invSqrt(nearSquared + leftSquared);
-            coeffLeft[0] = frustumNear * inverseLength;
+            coeffLeft[0] = -frustumNear * inverseLength;
             coeffLeft[1] = -frustumLeft * inverseLength;
 
             inverseLength = FastMath.invSqrt(nearSquared + rightSquared);
-            coeffRight[0] = -frustumNear * inverseLength;
+            coeffRight[0] = frustumNear * inverseLength;
             coeffRight[1] = frustumRight * inverseLength;
 
             inverseLength = FastMath.invSqrt(nearSquared + bottomSquared);