1
0
Fork
You've already forked voxeltest
0
A simple voxel world generator, explorer and renderer https://rustydev.codeberg.page/voxeltest/
  • Rust 88.6%
  • JavaScript 8.4%
  • Shell 1.7%
  • GLSL 0.8%
  • HTML 0.5%
2026年03月09日 22:45:12 +13:00
scripts Clippy fixes 2026年03月07日 16:01:19 +13:00
src Delta time smoothing 2026年03月09日 22:45:12 +13:00
textures Clippy fixes 2026年03月07日 16:01:19 +13:00
web Improved rendering at very far distances 2026年03月09日 22:21:14 +13:00
.gitignore Hello, World! 2026年02月20日 20:49:26 +13:00
Cargo.lock Delta time smoothing 2026年03月09日 22:45:12 +13:00
Cargo.toml Delta time smoothing 2026年03月09日 22:45:12 +13:00
deny.toml Clippy fixes 2026年03月07日 16:01:19 +13:00
LICENSE Hello, World! 2026年02月20日 20:49:26 +13:00
README.md Wrote build instructions 2026年03月02日 23:02:56 +13:00

Voxeltest

A simple voxel world generator, explorer and renderer written in Rust and playable on the web. Check it out at https://rustydev.codeberg.page/voxeltest/.

The creation of this project was a fun learning experience of compiling a somewhat advanced Rust application to WebAssembly and having it playable on the web. This project uses Rust for world generation and camera control, WebGL for the rendering and wasm-bindgen for the bridge between Rust and JavaScript code.

I have no intention on turning this project into anything too serious.

Building

Desktop

This is the easiest target to build. All you need is to have Rust installed and run ./scripts/build_desktop.sh followed by ./target/release/voxeltest to run it.

Web

Building for the web is more complex, requiring these dependencies to be installed:

After installing all these dependencies, run ./scripts/build_web.sh. Then go into the web/ directory, run python -m http.server and open localhost:8000 (or use any other static web server).

Screenshots

Voxeltest world showing a forest and plains biome and a river.

Voxeltest world showing all five biomes: ocean, beach, plains, forest and desert.


  1. Not strictly needed, only used to decrease the output file size. Modify scripts/build_web.sh by following the embedded comments for a larger (but still working) build. ↩︎