Real-time OpenGL fractal renderer using raymarching
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.
mkdir build && cd build
cmake ..
make
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.
./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) |