Skip to content

AddisonPrairie/WebGPU-Voxel-Fractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebGPU-Voxel-Fractals

This is an interactive voxel renderer written in WebGPU. It uses a JavaScript port of Voxel Automata Terrain to generate 3D voxel fractals. The demo page is here. For information on the controls, click the "help" button. NOTE: this demo requires WebGPU; check here whether your browser implements the WebGPU API.


(512^3 voxel fractal generated in JavaScript and rendered on the GPU using WebGPU)

While this demo is capable of running on integrated graphics, the performance is generally very slow. I would recommend running this on a browser set to use your discrete GPU. I developed and tested it on my laptop (iGPU: Ryzen 9 4900HS w/ Radeon Graphics, GPU: NVidia GeForce RTX 2060 with Max-Q design) and got reasonable results. All of the images on this page were rendered on my discrete GPU in about 10s @ 1024 samples / pixel.







The rendering code was written by me. It consists of a few fragment shaders for raytracing, sample accumulation, and post processing. It uses glMatrix for JS linear algebra operations. Other attributions for specific functions can be found in the source code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors