Fix aspect ratio bug in LensDistortScene

This commit is contained in:
Magnus Norddahl 2016-10-03 09:18:47 +02:00
parent 287acea6b4
commit 7c47806382

View file

@ -569,7 +569,7 @@ void FGLRenderer::LensDistortScene()
0.0f 0.0f
}; };
float aspect = mSceneViewport.width / mSceneViewport.height; float aspect = mSceneViewport.width / (float)mSceneViewport.height;
// Scale factor to keep sampling within the input texture // Scale factor to keep sampling within the input texture
float r2 = aspect * aspect * 0.25 + 0.25f; float r2 = aspect * aspect * 0.25 + 0.25f;