← ortho-earth← Gint Pipeline

Gint Stencil Tessellation

Hardware-Driven Fill · Even-Odd Rule · No Pre-processing Required
Phase 1 — Stencil Buffer Build
Fan triangles streamed from NDC(0,0). Each cell shows XOR count.
Odd count → FILL
Even count → HOLE
Phase 2 — Full-Screen Quad Flush
1 bounding rectangle rasterized. Non-zero stencil pixels → color written.
Edge: 0 / 0
CPU Method — Earcut Triangulation
CPU Triangles: —
Algorithm: —
GPU Stencil — Zero Triangulation
O(n) — Just stream edges
No triangle decomposition. No winding correction. No bridge cuts.
Even-odd fill rule is free
Concave, holes, self-intersecting — hardware XOR handles everything without pre-processing.
🎯
Single GPU call per polygon
Stencil pass + 1 bounding quad. No per-vertex CPU computation.
Edges sent: —
CPU ops: 0