Ejemplo n.º 1
0
        public void UseOffscreenBuffer(OffscreenBuffer buffer)
        {
            if (buffer == null)
            {
                (Target as RenderTexture)?.Display();
                Target = DefaultTarget;
                return;
            }

            Target = buffer.RenderTexture;
        }
Ejemplo n.º 2
0
 public void Draw(OffscreenBuffer buffer)
 => Target.Draw(buffer.Sprite, RenderStates);