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

This reverts commit 8b26b6dd1e.

This was causing problems with light mode 2 because some edge cases were no longer handled properly.
This commit is contained in:
Christoph Oelckers 2018-09-16 22:38:20 +02:00
commit bc1e659c7b
9 changed files with 32 additions and 19 deletions

View file

@ -144,7 +144,6 @@ 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));