Skip to content

nolanderc/gpu-voxel-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Voxel Path Tracer

A path tracer which can render realistic lighting in realtime, even on modest hardware. Accumulates light-data for individual pixels over time, and includes a spacial denoiser to reduce artifacts. The following illustrates a Menger sponge, rendered in realtime on a Mackbook Pro 2018 8GB:

menger

Building from Source

Requires Rust 1.50 or later (may work with earlier version, not tested). Does not currently compile on Windows due to missing key bindings, only supported on MacOS and Linux.

In order to build and run the executable, run the following command:

cargo run --release

If you only want to build the executable, simply run:

cargo build --release

Prebuilt Executables

Some prebuilt executables exist for MacOS Darwin and Ubuntu Linux. You will find these in the bin/ directory. Note that these executables must be run from this root directory, therefore run them with the following command:

./bin/voxel-OS

where OS corresponds to your operating system.

Building the Shaders

Shaders are compiled from GLSL to SPIR-V if they are out of date. This is done using the glslValidator compiler. The shaders should be up-to-date when you first open this repository, so installing this executable should not be required. However, if you want to edit the shaders, make sure that the compiler is installed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published