- moved the aspect ratio correction factor from the projection to the view matrix where it should have been from the start.

- removed the mCameraPos variable in FGLRenderer because it was only used in one place where it is just as easy to use the global viewx/y/z variables directly.
This commit is contained in:
Christoph Oelckers 2014-12-29 22:42:19 +01:00
commit 45cf65afbd
3 changed files with 13 additions and 16 deletions

View file

@ -90,7 +90,6 @@ FGLRenderer::FGLRenderer(OpenGLFrameBuffer *fb)
mLightCount = 0;
mAngles = FRotator(0,0,0);
mViewVector = FVector2(0,0);
mCameraPos = FVector3(0,0,0);
mVBO = NULL;
mSkyVBO = NULL;
gl_spriteindex = 0;