mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
Fix lens flares in VR
This commit is contained in:
parent
14628e3937
commit
c6d2456a7c
3 changed files with 44 additions and 33 deletions
|
|
@ -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) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue