Ray-casting volume rendering experiments in OpenGL/GLSL for Windows.
Project uses conan to install:
- GLM: https://github.com/g-truc/glm
- GLAD: https://github.com/Dav1dde/glad
- GoogleTest: https://github.com/google/googletest
To test and build, run conan and cmake:
mkdir build
cd build
conan install .. -s build_type=Release -s compiler.runtime=MD
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
ctest -C Release -VV
cmake --install .
The executable with shaders can be found in build/product
.
Hotkeys:
Esc
: close applicationSpace Bar
: pause/start animationBackspace
orD
: remove objectA
: add objectN
: toggle procedural noise deformation on/off0
to9
: different rendering/shading modes
The rendering modes are:
- 1: object normals
- 2: Lambertian reflectance
- 3: Phong reflection
- 4: Fresnel effect
- 5: Hard shadows
- 6: Volumetric light effect
- 7: object colors
- 8: reserved
- 9: "blood" effect combining the above effects
- 0: default rendering combining the above effects