diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-28 09:35:50 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-28 09:36:12 +0300 |
commit | f91fe78af5145a2f5706acd17d0e793ab7b311f8 (patch) | |
tree | 5db34caf2503cfbe9772c87f739dfd2e0cc29df5 /source/gameengine/Ketsji/KX_Dome.cpp | |
parent | 05dbc470ad9c1f953b5e8d2da5e3f1bfba6d4814 (diff) |
cleanup: spelling, comments, alignment
fixed pet peeve “frustrum” and other non-functional changes.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Dome.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_Dome.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/source/gameengine/Ketsji/KX_Dome.cpp b/source/gameengine/Ketsji/KX_Dome.cpp index 818a46531c9..6585b9dc831 100644 --- a/source/gameengine/Ketsji/KX_Dome.cpp +++ b/source/gameengine/Ketsji/KX_Dome.cpp @@ -1450,22 +1450,21 @@ void KX_Dome::CalculateFrustum(KX_Camera *cam) gluPerspective(90.0f,1.0f,cam->GetCameraNear(),cam->GetCameraFar()); #endif - RAS_FrameFrustum m_frustrum; //90 deg. Frustum + RAS_FrameFrustum m_frustum; //90 deg. Frustum - m_frustrum.camnear = cam->GetCameraNear(); - m_frustrum.camfar = cam->GetCameraFar(); + m_frustum.camnear = cam->GetCameraNear(); + m_frustum.camfar = cam->GetCameraFar(); -// float top = tan(90.0f*MT_PI/360.0f) * m_frustrum.camnear; - float top = m_frustrum.camnear; // for deg = 90deg, tan = 1 +// float top = tan(90.0f*MT_PI/360.0f) * m_frustum.camnear; + float top = m_frustum.camnear; // for deg = 90deg, tan = 1 - m_frustrum.x1 = -top; - m_frustrum.x2 = top; - m_frustrum.y1 = -top; - m_frustrum.y2 = top; + m_frustum.x1 = -top; + m_frustum.x2 = top; + m_frustum.y1 = -top; + m_frustum.y2 = top; m_projmat = m_rasterizer->GetFrustumMatrix( - m_frustrum.x1, m_frustrum.x2, m_frustrum.y1, m_frustrum.y2, m_frustrum.camnear, m_frustrum.camfar); - + m_frustum.x1, m_frustum.x2, m_frustum.y1, m_frustum.y2, m_frustum.camnear, m_frustum.camfar); } void KX_Dome::CalculateCameraOrientation() |