Expand description
SDF-aware instanced glyph batch rendering.
Adapts the existing GlyphInstance / GlyphBatcher approach for SDF rendering:
- Same VBO/instance layout, but rendered with
sdf_glyph.frag - Automatic smoothing calculation based on glyph screen-space size
- Scale-dependent threshold for consistent edge quality at all sizes
- Per-glyph SDF effects (outline, shadow, glow, bold, wave, glitch)
Structs§
- Pending
SdfGlyph - Pending SDF glyph submission.
- SdfBatch
Stats - SdfBatch
Uniforms - Uniforms that are set once per SDF draw call (not per-instance).
- SdfGlyph
Batch - A batch of SDF glyph instances ready for rendering.
- SdfGlyph
Batcher - Builds and sorts SDF glyph batches each frame.
- SdfInstance
Extra - Per-instance SDF-specific data that supplements the base GlyphInstance.
Functions§
- layout_
sdf_ text - Lay out a string of text using the SDF atlas metrics and return GlyphInstance
- layout_
sdf_ text_ with_ effects - Lay out text with SDF effects applied.