Fix SelectionBox line depths.

This commit is contained in:
Paul Chote
2017-12-22 19:47:23 +00:00
committed by RoosterDragon
parent 2794b14f52
commit 4993e74748

View File

@@ -46,8 +46,8 @@ namespace OpenRA.Mods.Common.Graphics
{
var iz = 1 / wr.Viewport.Zoom;
var screenDepth = wr.Screen3DPxPosition(pos).Z;
var tl = new float3(decorationBounds.Left, decorationBounds.Top, 0);
var br = new float3(decorationBounds.Right, decorationBounds.Bottom, 0);
var tl = new float3(decorationBounds.Left, decorationBounds.Top, screenDepth);
var br = new float3(decorationBounds.Right, decorationBounds.Bottom, screenDepth);
var tr = new float3(br.X, tl.Y, screenDepth);
var bl = new float3(tl.X, br.Y, screenDepth);
var u = new float2(4 * iz, 0);