Add depth buffer support to tactical overlays.

This commit is contained in:
Paul Chote
2016-08-22 21:37:35 +01:00
parent f3bac143e9
commit 3082c61e75
6 changed files with 30 additions and 21 deletions

View File

@@ -43,9 +43,9 @@ namespace OpenRA.Graphics
return;
var iz = 1 / wr.Viewport.Zoom;
var first = wr.ScreenPxPosition(waypoints.First());
var first = wr.Screen3DPosition(waypoints.First());
var a = first;
foreach (var b in waypoints.Skip(1).Select(pos => wr.ScreenPxPosition(pos)))
foreach (var b in waypoints.Skip(1).Select(pos => wr.Screen3DPosition(pos)))
{
Game.Renderer.WorldRgbaColorRenderer.DrawLine(a, b, iz, color);
DrawTargetMarker(wr, color, b);