|
@ -28,10 +28,11 @@ namespace SemiColinGames { |
|
|
graphics, camera.Width, camera.Height, false /* mipmap */, |
|
|
graphics, camera.Width, camera.Height, false /* mipmap */, |
|
|
graphics.PresentationParameters.BackBufferFormat, DepthFormat.Depth24); |
|
|
graphics.PresentationParameters.BackBufferFormat, DepthFormat.Depth24); |
|
|
|
|
|
|
|
|
lightingEffect = new BasicEffect(graphics); |
|
|
|
|
|
lightingEffect.World = Matrix.CreateTranslation(0, 0, 0); |
|
|
|
|
|
lightingEffect.View = Matrix.CreateLookAt(Vector3.Backward, Vector3.Zero, Vector3.Up); |
|
|
|
|
|
lightingEffect.VertexColorEnabled = true; |
|
|
|
|
|
|
|
|
lightingEffect = new BasicEffect(graphics) { |
|
|
|
|
|
World = Matrix.CreateTranslation(0, 0, 0), |
|
|
|
|
|
View = Matrix.CreateLookAt(Vector3.Backward, Vector3.Zero, Vector3.Up), |
|
|
|
|
|
VertexColorEnabled = true |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
spriteBatch = new SpriteBatch(graphics); |
|
|
spriteBatch = new SpriteBatch(graphics); |
|
|
} |
|
|
} |
|
|