mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 08:50:18 -04:00
* Deferred UI batching: collect everything first, sort by z, pass, blend mode (things that break batches) and flush as normal Before: https://files.facepunch.com/matt/1b2211b1/Discord_9fs860ZoeI.png After: https://files.facepunch.com/matt/1b2211b1/sbox_4vRV3zteqM.png * Various blend mode fixes with the new UI batcher * OverrideBlendMode in descriptors was ignored * Panel.Draw.Text was missing PremultiplyAlpha = true * UIBatcher flushes batch when blend mode changes (this is a bit wanky) * ui_cssbox_batched.shader did not handle premultiplied backgrounds * handle z-depth properly for text --------- Co-authored-by: antopilo <mail@antopilo.dev>