Dynamic marching cubes mesh generation via signed distant function in WebGPU.
To run locally you'll need to generate a PEM encoded SSL certificate and private key, then run an https server with those certificates:
MSYS_NO_PATHCONV=1 openssl req -x509 -newkey rsa:2048 -nodes \
-keyout localhost-key.pem \
-out localhost.pem \
-days 365 \
-subj "/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
http-server -S -C localhost.pem -K localhost-key.pem -p 8443- Mouse right click to rotate.
- Mouse wheel to dolly.
Texture assets courtesy of Poly Haven under CC0 1.0.
- Geiss, Ryan. "Generating Complex Procedural Terrains Using the GPU." In GPU Gems 3, edited by Hubert Nguyen, 7–37. NVIDIA Corporation, 2007.
- Quílez, Íñigo. "Distance Functions." Inigo Quilez Blog, 2011. https://iquilezles.org/articles/distfunctions/.
- McEwan, Ian, David Sheets, Stefan Gustavson, and Mark Richardson. "Efficient Computational Noise in GLSL." CoRR abs/1204.1461 (2012). https://arxiv.org/abs/1204.1461
- Gustavson, Stefan. "webgl-noise" GitHub repository, 2012. https://github.com/stegu/webgl-noise/.