diff --git a/Source/Core/Map/Sector.cs b/Source/Core/Map/Sector.cs index 62054f87..5111e9ea 100755 --- a/Source/Core/Map/Sector.cs +++ b/Source/Core/Map/Sector.cs @@ -429,7 +429,8 @@ namespace CodeImp.DoomBuilder.Map flatvertices.CopyTo(updateinfo.floorvertices, 0); General.Plugins.OnSectorFloorSurfaceUpdate(this, ref updateinfo.floorvertices); updateinfo.floortexture = longfloortexname; - + updateinfo.desaturation = this.Desaturation; + // Update entry General.Map.CRenderer2D.Surfaces.UpdateSurfaces(surfaceentries, updateinfo); General.Map.CRenderer2D.Surfaces.UnlockBuffers(); diff --git a/Source/Core/Rendering/Renderer2D.cs b/Source/Core/Rendering/Renderer2D.cs index e41650c7..09e48576 100755 --- a/Source/Core/Rendering/Renderer2D.cs +++ b/Source/Core/Rendering/Renderer2D.cs @@ -1575,7 +1575,8 @@ namespace CodeImp.DoomBuilder.Rendering graphics.SetAlphaBlendEnable(false); graphics.SetAlphaTestEnable(false); graphics.SetUniform(UniformName.texturefactor, new Color4(1f, 1f, 1f, 1f)); - SetWorldTransformation(true); + graphics.SetUniform(UniformName.desaturation, 0.0f); + SetWorldTransformation(true); SetDisplay2DSettings(1f, 1f, 0f, 1f, General.Settings.ClassicBilinear); // Prepare for rendering