Show lines of sight only when Debug enabled
GitOrigin-RevId: 77de51cce5e9e6a009a866e0eb5bc213f00b176c
This commit is contained in:
parent
b858c45b7e
commit
44bd3c6896
@ -80,7 +80,9 @@ namespace SemiColinGames {
|
|||||||
graphics.SetRenderTarget(lightingTarget);
|
graphics.SetRenderTarget(lightingTarget);
|
||||||
graphics.Clear(new Color(0, 0, 0, 0f));
|
graphics.Clear(new Color(0, 0, 0, 0f));
|
||||||
lightingEffect.Projection = camera.Projection;
|
lightingEffect.Projection = camera.Projection;
|
||||||
linesOfSight.Draw(player, world.CollisionTargets, graphics, lightingEffect);
|
if (Debug.Enabled) {
|
||||||
|
linesOfSight.Draw(player, world.CollisionTargets, graphics, lightingEffect);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw debug rects & lines on top.
|
// Draw debug rects & lines on top.
|
||||||
Debug.Draw(graphics, lightingEffect);
|
Debug.Draw(graphics, lightingEffect);
|
||||||
|
Loading…
Reference in New Issue
Block a user