* Fixed culling with asymmetric frustums
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9621 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
277a2bcc4d
commit
dba5ba5851
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user