diff --git a/Shared/Scene.cs b/Shared/Scene.cs index e0ec554..c679a1d 100644 --- a/Shared/Scene.cs +++ b/Shared/Scene.cs @@ -28,10 +28,11 @@ namespace SemiColinGames { graphics, camera.Width, camera.Height, false /* mipmap */, 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); }