|
@ -183,10 +183,6 @@ namespace SemiColinGames { |
|
|
// Draw foreground tiles.
|
|
|
// Draw foreground tiles.
|
|
|
world.Draw(spriteBatch); |
|
|
world.Draw(spriteBatch); |
|
|
|
|
|
|
|
|
// Draw debug rects & lines.
|
|
|
|
|
|
lightingEffect.Projection = camera.Projection; |
|
|
|
|
|
Debug.Draw(spriteBatch, GraphicsDevice, lightingEffect); |
|
|
|
|
|
|
|
|
|
|
|
// Aaaaand we're done.
|
|
|
// Aaaaand we're done.
|
|
|
spriteBatch.End(); |
|
|
spriteBatch.End(); |
|
|
|
|
|
|
|
@ -196,6 +192,12 @@ namespace SemiColinGames { |
|
|
lightingEffect.Projection = camera.Projection; |
|
|
lightingEffect.Projection = camera.Projection; |
|
|
linesOfSight.Draw(player, world.CollisionTargets, GraphicsDevice, lightingEffect); |
|
|
linesOfSight.Draw(player, world.CollisionTargets, GraphicsDevice, lightingEffect); |
|
|
|
|
|
|
|
|
|
|
|
// Draw debug rects & lines on top.
|
|
|
|
|
|
spriteBatch.Begin( |
|
|
|
|
|
SpriteSortMode.Deferred, null, SamplerState.LinearWrap, null, null, null, transform); |
|
|
|
|
|
Debug.Draw(spriteBatch, GraphicsDevice, lightingEffect); |
|
|
|
|
|
spriteBatch.End(); |
|
|
|
|
|
|
|
|
// Draw sceneTarget to screen.
|
|
|
// Draw sceneTarget to screen.
|
|
|
GraphicsDevice.SetRenderTarget(null); |
|
|
GraphicsDevice.SetRenderTarget(null); |
|
|
GraphicsDevice.Clear(Color.CornflowerBlue); |
|
|
GraphicsDevice.Clear(Color.CornflowerBlue); |
|
|