Esempio n. 1
0
        public override void Draw()
        {
            Sketch.CreateBackgroundLayer(Color.White);

            Sketch.Begin();
            {
                quad.Draw(Camera);
            }
            Sketch.End();

            Sketch.AttachEffect(new Outline(Engine.RenderTarget, 1, new Color(Color.Black, 0.25f)));
            Sketch.AttachEffect(new ChromaticAberration(Engine.RenderTarget, 4, new Vector2(1, 0), new Vector2(0, 1), new Vector2(1, 1)));
            Sketch.Begin();
            {
                Polygon[] polygons = new Polygon[Player.Farts.Count];
                for (int i = 0; i < polygons.Length; i++)
                {
                    polygons[i] = Player.Farts[i].Circle;
                }
                Batcher.DrawPolygons(polygons, Camera);
            }
            Sketch.End();

            Sketch.AttachEffect(new DropShadow(Engine.RenderTarget, new Vector2(1, 1), 4, new Color(Color.Black, 100)));
            Sketch.Begin();
            {
                foreach (Entity e in entities)
                {
                    e.Draw(Camera);
                }
            }
            Sketch.End();
        }