Fix lens flares in VR

This commit is contained in:
James Urquhart 2016-05-21 13:46:20 +01:00
parent 14628e3937
commit c6d2456a7c
3 changed files with 44 additions and 33 deletions

View file

@ -216,7 +216,7 @@ void Frustum::setNearFarDist( F32 nearDist, F32 farDist )
// Recalculate the frustum.
MatrixF xfm( mTransform );
const F32 CENTER_EPSILON = 0.01;
const F32 CENTER_EPSILON = 0.001;
F32 centerX = mNearLeft + (mNearRight - mNearLeft) * 0.5;
F32 centerY = mNearBottom + (mNearTop - mNearBottom) * 0.5;
if ((centerX > CENTER_EPSILON || centerX < -CENTER_EPSILON) || (centerY > CENTER_EPSILON || centerY < -CENTER_EPSILON) )