Expand description
Screen-space UI layer — bypasses the 3D camera and renders in pixel coordinates.
The UI layer renders AFTER the 3D scene and post-processing but BEFORE the final composite. UI elements are pixel-perfect, unaffected by bloom or distortion, and positioned in screen coordinates: (0,0) = top-left.
§Architecture
3D scene → PostFx (bloom, CA, grain) → UI Layer (ortho, no FX) → screenThe UI layer collects draw commands each frame via UiLayer::draw_* methods,
then flushes them all in one pass via UiLayerRenderer.
Structs§
- UiLayer
- The screen-space UI layer. Collects draw commands each frame, then renders them all in a single pass with an orthographic projection.
Enums§
- Border
Style - Border drawing styles for panels.
- Text
Align - Text alignment.
- UiDraw
Command - A single UI draw command, queued and executed in order.