Update CCCamera.cpp [skip ci]

This commit is contained in:
DelinWorks 2022-06-14 02:11:40 +03:00
parent a9a29c2a40
commit e9ce8da4ef
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ bool Camera::initPerspective(float fieldOfView, float aspectRatio, float nearPla
if (_zoomFactorFarPlane == 1024) if (_zoomFactorFarPlane == 1024)
_zoomFactorFarPlane = farPlane; _zoomFactorFarPlane = farPlane;
if (_zoomFactorNearPlane == 10) if (_zoomFactorNearPlane == 10)
_zoomFactorFarPlane = nearPlane; _zoomFactorNearPlane = nearPlane;
Mat4::createPerspective(_fieldOfView, _aspectRatio, _nearPlane, _farPlane, &_projection); Mat4::createPerspective(_fieldOfView, _aspectRatio, _nearPlane, _farPlane, &_projection);
_viewProjectionDirty = true; _viewProjectionDirty = true;