|
|
@ -80,7 +80,9 @@ namespace SemiColinGames { |
|
|
|
graphics.SetRenderTarget(lightingTarget); |
|
|
|
graphics.Clear(new Color(0, 0, 0, 0f)); |
|
|
|
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.
|
|
|
|
Debug.Draw(graphics, lightingEffect); |
|
|
|