1
0
Fork 0

Fix projection matrix clamping

See SimGear commit b16e0b08.
This commit is contained in:
Fernando García Liñán 2023-09-24 02:31:16 +02:00
parent 94340711d7
commit 8036e12236

View file

@ -249,8 +249,8 @@ void CameraGroup::update(const osg::Vec3d& position,
if ((info->flags & CameraInfo::SPLASH) == 0 &&
(info->flags & CameraInfo::GUI) == 0 &&
(info->flags & CameraInfo::FIXED_NEAR_FAR) == 0) {
ProjectionMatrix::makeNearFarPlanes(proj_matrix, _zNear, _zFar,
new_proj_matrix);
ProjectionMatrix::clampNearFarPlanes(proj_matrix, _zNear, _zFar,
new_proj_matrix);
}
info->viewMatrix = view_matrix;