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:
parent
4c13a8df6e
commit
bc1e659c7b
9 changed files with 32 additions and 19 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue