diff --git a/Source/Core/Data/DataManager.cs b/Source/Core/Data/DataManager.cs index b0dcce07..5cae17a0 100755 --- a/Source/Core/Data/DataManager.cs +++ b/Source/Core/Data/DataManager.cs @@ -3466,9 +3466,10 @@ namespace CodeImp.DoomBuilder.Data // Begin fullbright shaderpass 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 - for(int i = 0; i < 6; i++) + // Render to the six faces of the cube map + for (int i = 0; i < 6; i++) { Matrix faceview = GetCubeMapViewMatrix((CubeMapFace)i); General.Map.Graphics.SetUniform(UniformName.world, mworld); diff --git a/Source/Native/RenderDevice.cpp b/Source/Native/RenderDevice.cpp index e2bbc72c..3d7f3d48 100644 --- a/Source/Native/RenderDevice.cpp +++ b/Source/Native/RenderDevice.cpp @@ -82,6 +82,7 @@ void RenderDevice::SetAlphaTestEnable(bool value) mAlphaTest = value; mNeedApply = true; mShaderChanged = true; + mUniformsChanged = true; } }