Files
sbox-public/engine/Sandbox.Engine/Systems/UI/Render/DebugOverlay.UI.cs
Matt Stevens 0ca4a90e28 UI panels that use backdrops can be batched (#4735)
* Panels with backdrop filters are batched now and reuse the same frame grab, break batch on Z groups

Before: https://files.facepunch.com/matt/1b0311b1/sbox_HB6vN6Reo6.png
After: https://files.facepunch.com/matt/1b0311b1/sbox_gFO4enjxiv.png

* Save backdropGrabActive, panel children can't share a backdrop (if they use one) since they won't contain the fresh quad, but siblings can use the same backdrop still

Fixes overlapping blurred panels using the original frame grab e.g Sandbox:

Before: https://files.facepunch.com/matt/1b0311b1/sbox_M8xXVyxcsF.png
After: https://files.facepunch.com/matt/1b0311b1/sbox_RePJDF3HWW.png

(Even though Sandbox shouldn't be layering 3 blurred panels on top of each other)
2026-05-04 09:05:14 +01:00

2.4 KiB