public void UseOffscreenBuffer(OffscreenBuffer buffer) { if (buffer == null) { (Target as RenderTexture)?.Display(); Target = DefaultTarget; return; } Target = buffer.RenderTexture; }
public void Draw(OffscreenBuffer buffer) => Target.Draw(buffer.Sprite, RenderStates);