Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.41 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.41 KB

fmarch

Real-time OpenGL fractal renderer using raymarching

mandelbulb-screenshot

Cloning

External dependencies are included as git submodules in lib. Clone source files and dependencies using:

git clone git@github.com:yuzhoumo/fmarch.git --recursive

Note: If using NixOS, there is no need for the --recursive flag since dependencies are pulled from nix-store.

Building with CMake

mkdir build && cd build
cmake ..
make

Building with Nix

On NixOS, you can build by running nix-build in the main project directory or entering the build environment using nix-shell and following the CMake build instructions. When building using nix-build, the resulting binary can be run with ./result/bin/fmarch in the same directory.

Usage

./fmarch vertex_shader_path fragment_shader_path
Command Key
Exit the program ESC
Toggle mouse input M
Toggle supersampling P
Reload shader files R
Move camera position W, A, S, D
Move camera view direction (Move the mouse)

Dependencies