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

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