Skip to content

TheSunCat/Fractal4D

Repository files navigation

Fractal4D Donate using Liberapay

Fractal4D is a simple cross-platform GLFW/OpenGL app to run a function on the GPU for every pixel.

image

Controls

  • Comma: Lower resolution
  • Dot/period: Increase resolution
  • Mouse: Look around
  • WASD: Fly in camera direction
  • Space: Fly up
  • Shift: Fly down
  • Scroll: change camera speed

Usage

Edit the getPixel(in vec2 pixel_coords) function inside /res/raymarcher.comp with the GLSL code you'd like to run on the GPU. The shader will be run as a compute shader, which requires at least a GPU supporting OpenGL 4.3.

Building

Make sure you have the GLFW library installed in your system! I used the glfw-x11 package from the AUR.

To do an out-of-source build, run the following commands:

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make

The executable Fractal4D will be output. Make sure the res folder is in the working directory!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages