Fix projection matrix clamping
See SimGear commit b16e0b08.
This commit is contained in:
parent
94340711d7
commit
8036e12236
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@ void CameraGroup::update(const osg::Vec3d& position,
|
||||||
if ((info->flags & CameraInfo::SPLASH) == 0 &&
|
if ((info->flags & CameraInfo::SPLASH) == 0 &&
|
||||||
(info->flags & CameraInfo::GUI) == 0 &&
|
(info->flags & CameraInfo::GUI) == 0 &&
|
||||||
(info->flags & CameraInfo::FIXED_NEAR_FAR) == 0) {
|
(info->flags & CameraInfo::FIXED_NEAR_FAR) == 0) {
|
||||||
ProjectionMatrix::makeNearFarPlanes(proj_matrix, _zNear, _zFar,
|
ProjectionMatrix::clampNearFarPlanes(proj_matrix, _zNear, _zFar,
|
||||||
new_proj_matrix);
|
new_proj_matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
info->viewMatrix = view_matrix;
|
info->viewMatrix = view_matrix;
|
||||||
|
|
Loading…
Reference in a new issue