- reworked fog uniforms to move the global fog mode setting to the viewpoint buffer.

This commit is contained in:
Christoph Oelckers 2018-09-06 19:14:30 +02:00
commit 8b26b6dd1e
9 changed files with 19 additions and 32 deletions

View file

@ -144,6 +144,7 @@ void GLViewpointBuffer::Set2D(int width, int height)
HWViewpointUniforms matrices;
matrices.SetDefaults();
matrices.mProjectionMatrix.ortho(0, width, height, 0, -1.0f, 1.0f);
matrices.mFogEnabled = 3;
matrices.CalcDependencies();
Map();
memcpy(mBufferPointer, &matrices, sizeof(matrices));