Skip to content
Andrew Voirol
Friday, October 30, 2026vitrail-build

Seventy-one grams of cathedral glass and 3D Voronoi cleavage

WebGPUShadersDesign

I started Vitrail by refusing to fake stained-glass Jenga with hollow meshes or particle-sprite shatters. Every prism is modeled at 1:1 regulation Jenga dimensions (7.5 × 2.5 × 1.5 cm, 71.1 g of soda-lime glass at 2.50 g/cm³ across 18 courses = 27.0 cm), raytraced as beveled dielectric solids (n = 1.522) wrapped in copper-foil solder cames. My first draft sprinkled floating dust motes into the room and burst broken blocks into generic fragments, which immediately read like a video game instead of heavy glass on wood. I ripped out the dust motes and wrote a 3D Sutherland-Hodgman half-space Voronoi clipper (MAX_ACTIVE_SHARDS = 512, <= 132 vertices per convex hull) seeded around the impact point. Across 200 deterministic fracture seeds, total shard volume stays within < 0.05% of the intact prism while separating leaded outer faces from raw conchoidal cleavage planes inside the shader.

← Previous

Why smoke advection and plate waves break blood-in-water

Next →

Raytracing through three blocks of glass and scouting loose prisms by ear


Andrew Voirol

Builder, hacker, shipper. Currently leaving localhost.

Navigate

WorkThreadsBuilder's LogAboutContactRSS Feed

Connect

X / TwitterGitHubLinkedIn

© 2026 Andrew Voirol·Back to top ↑
✦Just one prompt away from figuring it all out.