Scalar Mine is a browser-based terrain mining prototype built with Svelte, Vite, and Three.js. It generates chunked scalar-field terrain, lets you dig smooth holes into the ground, and remeshes edited chunks in the background with a worker pool.
The terrain is SDF-like: solid ground and empty space are represented as a density field, and digging subtracts smooth spherical edits from that field. Chunks are rebuilt from the density == 0 surface, which avoids mesh boolean artifacts and keeps holes clean.
?pool=false available for sync-mode debuggingWASD moveSpace jumpShift sprintShift + mouse wheel zooms the cameranpm install
npm run dev
Open the local Vite URL in your browser. Use ?pool=false to disable worker pools for comparison.