Skip to content

Dunder-Muffin/RayTracingGPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray tracing shot Dodecahedron with a fireball inside

Main features:

  • Control arcball camera with a mouse wheel
  • Dodecahedron created from planes, no hard-coded coords.
  • Perlin noise calculated in computer shader for fire simulation
  • material modeling by combining transparency, reflection, refraction and color.
  • ambient light reflected from active cubemap
  • full inner reflection
  • fireball burns in real time like gas movement on the surface of a star

Accelerated Gif to show slow combustion:

Ray tracing gif

Install depedencies:

sudo apt-get install cmake

sudo apt-get install libglm-dev

sudo apt-get install libsdl2-dev

Run and build release:

./build_script.sh RayTracing rel

./run_script.sh RayTracing rel

or

./build_script.sh

./run_script.sh

Run and build debug:

./build_script.sh RayTracing dev

./run_script.sh RayTracing dev