Files
sbox-public/engine/Sandbox.Engine/Systems/SceneSystem/SpriteBatchSceneObject.cs
wheatleymf 052fd117bb Draw batched sprites using its own RenderAttribute (#5095)
* Draw batched sprites using its own RenderAttribute

Should fix issue with sprites affecting current state of `g_bNonDirectionalDiffuseLighting` for nearby scene objects, which messes up shading on models that are not related to sprites at all

* Use pool for sprite's RenderAttributes

- Also set blend/opaque mode from dedicated render attributes

* Pool RenderAttributes properly

---------

Co-authored-by: Matt Stevens <matt@mattstevens.co.uk>
2026-07-13 13:48:29 +01:00

18 KiB