Skip to content

Haskell and GLSL program containing my distance field / ray marching related experiments

License

Notifications You must be signed in to change notification settings

blitzcode/ray-marching-distance-fields

Repository files navigation

Ray Marching Distance Fields

This project is a Haskell and GLSL program containing my distance field / ray marching related experiments. The Haskell viewing application is doing the pre-processing, functioning as a development and debugging aid, allowing different shaders to be explored. It automatically reloads and recompiles shaders when they change, showing an overlay displaying any errors. There's a flexible frame buffer system, supporting under and super sampling and saving of screenshots. Tiled rendering avoids shader timeouts and unresponsive UI. It also features offline convolution of environment maps with a filter kernel to enable fast lighting of diffuse and glossy surfaces. Finally, there's an implementation of the Mandelbulb fractal as well as several simpler ones like Mandelbrot and Julia sets. There's some more functionality in the program, try it out and / or visit my website.

If you want to read actual algorithm descriptions and references of this project and see more, higher quality images visit the following links to my website

Images

A few low-resolution previews of pictures generated, visit the links above for more, higher quality images.

rmdf mandelbulb prefiltered julia set

Legal

This program is published under the MIT License.

Author

Developed by Tim C. Schroeder, visit my website to learn more.

About

Haskell and GLSL program containing my distance field / ray marching related experiments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published