Overlay shader cleanup (#3112)

This commit is contained in:
metalgearsloth
2022-08-10 08:52:32 +10:00
committed by GitHub
parent 7a6d6c83b1
commit faadb70de7
4 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ using Robust.Shared.Containers;
using Robust.Shared.Enums;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Utility;
using Color = Robust.Shared.Maths.Color;
@@ -75,7 +76,6 @@ public sealed class EntityLookupOverlay : Overlay
worldHandle.SetTransform(matrix);
var lookupAABB = invMatrix.TransformBox(args.WorldBounds);
var ents = new List<EntityUid>();
@@ -101,5 +101,7 @@ public sealed class EntityLookupOverlay : Overlay
worldHandle.DrawRect(aabb, Color.Blue.WithAlpha(0.2f));
}
}
worldHandle.SetTransform(Matrix3.Identity);
}
}

View File

@@ -102,6 +102,8 @@ namespace Robust.Client.GameObjects
}
}
}
worldHandle.SetTransform(Matrix3.Identity);
}
}
}

View File

@@ -118,6 +118,8 @@ namespace Robust.Client.Physics
worldHandle.DrawLine(start, end, Color.Aquamarine);
}
}
worldHandle.SetTransform(Matrix3.Identity);
}
private Color GetColor(MapChunk chunk, int index)

View File

@@ -626,6 +626,7 @@ namespace Robust.Client.Placement
{
handle.UseShader(_drawingShader);
handle.DrawRect(EraserRect.Value, new Color(255, 0, 0, 50));
handle.UseShader(null);
}
return;
}