- fix wrong uniform state

This commit is contained in:
Magnus Norddahl 2019-08-22 22:59:27 +02:00
parent 64cc7d2bc2
commit 9d02676f8f
2 changed files with 4 additions and 2 deletions

View file

@ -3466,9 +3466,10 @@ namespace CodeImp.DoomBuilder.Data
// Begin fullbright shaderpass // Begin fullbright shaderpass
General.Map.Graphics.SetShader(ShaderName.world3d_fullbright); General.Map.Graphics.SetShader(ShaderName.world3d_fullbright);
General.Map.Graphics.SetUniform(UniformName.fogsettings, new Vector4(-1.0f));
// Render to the six faces of the cube map // Render to the six faces of the cube map
for(int i = 0; i < 6; i++) for (int i = 0; i < 6; i++)
{ {
Matrix faceview = GetCubeMapViewMatrix((CubeMapFace)i); Matrix faceview = GetCubeMapViewMatrix((CubeMapFace)i);
General.Map.Graphics.SetUniform(UniformName.world, mworld); General.Map.Graphics.SetUniform(UniformName.world, mworld);

View file

@ -82,6 +82,7 @@ void RenderDevice::SetAlphaTestEnable(bool value)
mAlphaTest = value; mAlphaTest = value;
mNeedApply = true; mNeedApply = true;
mShaderChanged = true; mShaderChanged = true;
mUniformsChanged = true;
} }
} }