Skip to main content

Module glyph_3d_renderer

Module glyph_3d_renderer 

Source
Expand description

Instanced 3D glyph rendering with PBR G-buffer output.

Groups glyphs by character, issues one instanced draw call per unique character. Outputs to a G-buffer: albedo, normal, metallic+roughness, emission. The existing deferred pipeline resolves lighting including SVOGI.

Structs§

Glyph3DBatch
A batch of instances sharing the same character mesh.
Glyph3DInstance
Per-instance data for 3D glyph rendering. 80 bytes, GPU-friendly.
Glyph3DRenderer
Glyph3DVaoLayout
Describes how to set up the vertex attribute layout for 3D glyph rendering. This is a reference for the OpenGL setup code, not executable.
Render3DConfig

Constants§

GLYPH_3D_FRAG
Fragment shader: G-buffer output for deferred PBR.
GLYPH_3D_VERT
Vertex shader for 3D PBR glyph rendering.

Functions§

per_glyph_transform
Apply per-glyph rotation variation and scale pulsing.