mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-11 07:49:41 +00:00
SceneViewport - Disable blend when rendering debug graphics
This commit is contained in:
@@ -529,7 +529,7 @@ namespace PckStudio.Rendering
|
||||
{
|
||||
#if DEBUG
|
||||
d_debugLabel.Text = Camera.ToString();
|
||||
GL.BlendFunc(BlendingFactor.SrcColor, BlendingFactor.SrcColor);
|
||||
GL.Disable(EnableCap.Blend);
|
||||
GL.DepthMask(false);
|
||||
GL.DepthFunc(DepthFunction.Always);
|
||||
GL.Enable(EnableCap.PointSmooth);
|
||||
@@ -567,7 +567,7 @@ namespace PckStudio.Rendering
|
||||
}
|
||||
GL.DepthMask(true);
|
||||
GL.DepthFunc(DepthFunction.Less);
|
||||
GL.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha);
|
||||
GL.Enable(EnableCap.Blend);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user