In my project when I add graphics.PreferMultiSampling = true; this line in the Game1 Constructor (as the msdn website suggests), anti aliasing does not enable. Any idea what I might be missing ? Here is the full code:
public Game1() : base() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 720; // game's width graphics.PreferredBackBufferHeight = 720; // game's height graphics.PreferMultiSampling = true; Content.RootDirectory = "Content"; } protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); LightningSegment = Content.Load<Texture2D>("Lightning Segment"); } protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.DarkCyan); Matrix skew = Matrix.Identity; skew.M12 = (float)Math.Tan((double)Math.PI / 6); spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, skew * Matrix.CreateScale(1.5f, 3f, 1)); spriteBatch.Draw(LightningSegment, new Vector2(200, 200), null, Color.Red, 0, new Vector2(0f, 300f / 2f), new Vector2(250f, 1f), SpriteEffects.None, 0f); spriteBatch.End(); base.Draw(gameTime); }