Files
sbox-public/engine/Sandbox.Engine/Systems/UI/Render/ShadowDrawDescriptor.cs
Antoine Pilote a582fd6f7a UI Batching (#4372)
New UI rendering that groups multiple panels to be grouped into a single draw call when possible.

New custom rendering API for custom panels using `Panel.Draw.XX` to emit drawing commands.
2026-04-14 16:06:41 -07:00

21 lines
430 B
C#

using Sandbox.Rendering;
namespace Sandbox.UI;
public record struct ShadowDrawDescriptor( Rect PanelRect, Color Color )
{
public Vector4 BorderRadius;
public Vector2 Offset;
public float Blur;
public float Spread;
public bool Inset;
internal BlendMode OverrideBlendMode;
// Scissor for inset/outset clipping
internal Vector4 ScissorRect;
internal Vector4 ScissorCornerRadius;
internal Matrix ScissorTransformMat;
}