Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong Z check in OgreWideAngleCamera::Project3d (#746)
The matrix returned by Ogre::Camera::getProjectionMatrix has Z in range [-1; 1], not range [0; 1] This means we can't do pos.z > 0. We must do pos.z / pos.w > -1 Additionally, we must check against against z < 1; otherwise the point may get picked by the wrong face (and fail tests). Signed-off-by: Matias N. Goldberg <[email protected]>
- Loading branch information