OpenGL compute shaders exercise : real time GPU ray tracing.
This project was made at ArtFX - TD 4.
This project is using the following libraries :
Install them :
$ sudo apt install libglfw3-dev libglew-dev
The build system is Meson.
To install Meson, do the following :
$ sudo apt-get install python3 python3-pip python3-setuptools \
python3-wheel ninja-build
$ pip3 install --user meson
You can do the following steps with one line :
$ meson build && cd build && meson compile && cd .. && ./build/src/ray-tracing-cs
To configure the build directory, run :
$ meson build
Then compile it :
$ cd build && meson compile
From the project folder, run the executable (for relative paths like shaders) :
$ ./build/src/ray-tracing-cs
There's two scenes for now, you can specify it with a number parameter (starting at 1):
$ ./build/src/ray-tracing-cs 2 // Second scene
You can also pass the resolution of the window (by default it's 1024x512 pixels):
$ ./build/src/ray-tracing-cs 1 1920 1080