r/javascript • u/officialmayonade • 1d ago
RDR2-style volumetric WebGL 2 clouds in the browser
https://codepen.io/Andrew-Fisher-the-decoder/full/pveJYzeI've been working with clouds in the browser for a couple years now, and these are the best I've made so far. I've tried noise, particles, voxels, etc. and every combination of the options. Each approach has its upsides and downsides.
21
Upvotes
2
u/geekonthegrill 1d ago
These look great. Since youve tried the whole menu, which approach did this pen finally land on? And the thing that always decides it for me in the browser: how are you keeping the raymarch cost sane on integrated GPUs? Half res march with temporal reprojection, blue noise jitter with fewer steps, or just eating the fill rate? RDR2 leaned hard on temporal amortization, curious how much of that survives in WebGL 2 without compute shaders.