1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00

0030223: Visualization, TKOpenGl - frustum culling does not clip objects within perspective camera.

Fixed multiplication order of Projection and WorldView matrices
This commit is contained in:
osa 2018-12-11 13:40:40 +03:00 committed by apn
parent d4db985b5e
commit 2719e4f828

View File

@ -93,7 +93,7 @@ void OpenGl_BVHTreeSelector::SetViewVolume (const Handle(Graphic3d_Camera)& theC
OpenGl_Vec4d aRightBottomNear (nRight, nBottom, -aNear, 1.0), aLeftTopFar (fLeft, fTop, -aFar, 1.0);
OpenGl_Vec4d aRightTopNear (nRight, nTop, -aNear, 1.0), aLeftBottomFar (fLeft, fBottom, -aFar, 1.0);
const OpenGl_Mat4d aViewProj = myWorldViewMat * myProjectionMat;
const OpenGl_Mat4d aViewProj = myProjectionMat * myWorldViewMat;
OpenGl_Mat4d anInvWorldView;
myWorldViewMat.Inverted (anInvWorldView);