- moved uViewHeight and uCameraPos to the viewpoint uniform struct.
This commit is contained in:
parent
9486180843
commit
43e1a2d249
12 changed files with 57 additions and 53 deletions
|
|
@ -468,8 +468,8 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
|
|||
glViewport(mScreenViewport.left, mScreenViewport.top, mScreenViewport.width, mScreenViewport.height);
|
||||
|
||||
HWViewpointUniforms matrices;
|
||||
matrices.SetDefaults();
|
||||
matrices.mProjectionMatrix.ortho(0, screen->GetWidth(), screen->GetHeight(), 0, -1.0f, 1.0f);
|
||||
matrices.mViewMatrix.loadIdentity();
|
||||
matrices.CalcDependencies();
|
||||
GLRenderer->mShaderManager->ApplyMatrices(&matrices, NORMAL_PASS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue