Log inGet started
Package

cs_cloud.shader

README.md

cs_cloud

The Cloud Surfer sea: a static grid mesh whose noise field scrolls past via scroll0 + speed * (t - t0), so the deck streams under the board with uniform updates only on speed changes. The height field layers a broad fbm roll (billow_amp), thresholded value-noise cumulus mounds (puff_amp/puff_scale), and two octaves of inverted-Worley puff lobes (detail_amp), rounded cell crowns split by narrow creases, the cauliflower structure. The fragment re-samples the same cellular field per pixel for bump and crevice shading, lights it with a wrap-lit base under gentle toon banding, pools shadow color in the creases, dusts crowns with powder glow, and adds low-sun backscatter through the fluff. Touch points tp0..tp23 (x, fieldZ, time-stamp, strength) carve a wake trough that heals over heal_time seconds: the shell churns into dispersed white tufts (wake_puff) inside a wider dispersion halo, with dye_color blooming through them, the clouds react to the board's touch entirely in-shader. The board-height mirror in CloudSurfer (deckHeight) reproduces the displacement field bit-exactly at the lattice level, so every vertex-displacing term added here must be mirrored there (the carve/tuft terms are the deliberate exception).