Sea of C: A Procedural Ocean Made of C's
I'm just exploring my options, C'ing what's out there. An interactive Three.js r187 WebGPU + TSL procedural ocean fusing a sun-glint typographic 'C'-halftone sea with 5,200 beveled 3D sea-glass 'C' crests and 2,400 ballistic 'c' spray droplets.
"I'm just exploring my options, C'ing what's out there." This one-off side quest started with a bad pun — building a procedural ocean literally made of the letter C ("a C of possibilities") — and turned into a study in fusing two completely different WebGPU rendering paradigms on top of one shared wave field.
Instead of floating flat alphabet soup on generic water, the sea merges an infinite sun-glint typographic halftone ocean with a 3D granular sea-glass fluid. Across the rolling horizon, a radial 208×208 ocean mesh evaluates an analytical SDF capital C per surface cell with uniform-control-flow fwidth Nyquist integration, flaring champagne-gold Cs down the solar reflection corridor while distant swells fade cleanly into twilight haze. Along three traveling curling breaker solitons and live pointer wakes, 5,200 chamfered 3D beveled Cs and 2,400 ballistic airborne c spray droplets erupt directly from the exact same evaluateWaveTSL heightfield with zero CPU per-frame buffer uploads.
The first hardware Metal capture exposed two classic graphics traps: 1.58× extrusion scaling turned foreground 3D Cs into chunky tumbled tubes, and a 0.25-linear teal under-wall encoded as milky pastel mint after sRGB gamma. Slimming the bevel profile, locking wave-wall shingling close to the local surface normal, and dropping linear trough reflectance into deep Prussian sapphire brought the hero frame in line at 8.3–14.2 ms (2880×1620 2× Retina on Apple M4 Pro) across three instant sea states — Golden Swell, Abyssal Storm, and Bioluminescent — live at sea-of-c.andrewvoirol.com.
Timeline
I turned a pun — "I'm just exploring my options, C'ing what's out there" — into a dual-layer Three.js r187 WebGPU ocean where an infinite halftone sea of Cs erupts into physical 3D sea-glass C crests. After rendering four visual explorations, the strongest direction was fusing two of them: a perspective-foreshortened typographic halftone water surface catching golden-hour sun-glint, paired with thousands of chamfered 3D beveled Cs tumbling off breaking wave lips.
To keep both layers mathematically welded with zero seam drift, I anchored the entire scene on one shared CPU/TSL wave field (8 irrational-azimuth Gerstner swells, 3 traveling asymmetric curling solitons, an 8-slot origin-relative pointer wake ring buffer, a hold-to-spin cyclonic maelstrom, and double-click rogue breakers). The halftone surface evaluates an analytical beveled C SDF with unconditional fwidth Nyquist anti-aliasing so foreground glyphs stay crisp while the distant horizon blends cleanly into twilight fog. On top, 5,200 beveled sea-glass Cs and 2,400 ballistic gravity-arc c spray droplets run purely on the GPU using identity instanceMatrix + positionGeometry transforms (0 KB/frame CPU uploads), passing all 18 physics and interaction tests at 11.7 ms on 2880×1620 Retina Metal.
Inspecting the first 1:1 Retina macro crop caught two look-dev flaws that overview thumbnails hid: chunky edge-on 3D Cs and a washed-out pastel mint wave core. In the initial build, 1.20–1.58× Z-depth scaling plus aggressive random 3D tumbling turned close-up Cs into bent horseshoe tubes, while a 0.25-linear teal wall tint under the crest encoded to bright 0.55 sRGB mint peeking through every gap between glass letters.
Slimming the beveled C geometry (depth: 0.115, bevelThickness: 0.025, signedVolume > 0), constraining wave-wall orientation so foreground glyphs shingle cleanly along the surface normal before tumbling off the curling lip, and dropping linear trough/emerald values down to deep Prussian sapphire (0.010, 0.038, 0.145) and concentrated backlit emerald (0.002, 0.068, 0.078) fixed the macro silhouette immediately. After verifying 0 console or WebGPU errors, 8.3–14.2 ms frame times across Golden Swell, Abyssal Storm, and Bioluminescent, and live pointer wake/vortex/sky-steer gestures on Apple M4 Pro Metal, I shipped the standalone route to https://sea-of-c.andrewvoirol.com.