Add a visualisation mode for depth sprites.

For now this displays the raw sprites.  It will
eventually be repurposed for rendering the proper
depth data.
This commit is contained in:
Paul Chote
2015-09-28 19:47:35 +01:00
parent b08adbeb61
commit 83949b250a
7 changed files with 165 additions and 2 deletions

View File

@@ -132,6 +132,9 @@ namespace OpenRA.Graphics
if (World.WorldActor.Disposed)
return;
if (devTrait.Value != null)
Game.Renderer.WorldSpriteRenderer.SetDepthPreviewEnabled(devTrait.Value.ShowDepthPreview);
RefreshPalette();
if (World.Type == WorldType.Shellmap && !Game.Settings.Game.ShowShellmap)