- reworked fog uniforms to move the global fog mode setting to the viewpoint buffer.
This commit is contained in:
parent
7cbc98e1d0
commit
8b26b6dd1e
9 changed files with 19 additions and 32 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue