Files
sbox-public/engine/Sandbox.Engine/Systems/UI/Engine
Matt Stevens a7a30ec6c7 Deferred UI batching and blendmode fixes (#4563)
* 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>
2026-04-22 20:35:05 +01:00
..
2025-11-24 09:05:18 +00:00