You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tweaked algorithm which calculates infinite perspective matrix has a trivial issue: one of the matrix elements is calculated incorrectly (with wrong sign).
Here it is what we have:
Result[3][2] = - (T(0.0001) - T(2)) * zNear;
And here it is what should be:
Result[3][2] = (T(0.0001) - T(2)) * zNear;
Just remove minus to fix this.
The text was updated successfully, but these errors were encountered:
Tweaked algorithm which calculates infinite perspective matrix has a trivial issue: one of the matrix elements is calculated incorrectly (with wrong sign).
Here it is what we have:
Result[3][2] = - (T(0.0001) - T(2)) * zNear;
And here it is what should be:
Result[3][2] = (T(0.0001) - T(2)) * zNear;
Just remove minus to fix this.
The text was updated successfully, but these errors were encountered: