/RayShader

A GLSL ray tracer

Primary LanguageC++GNU General Public License v2.0GPL-2.0

RayShader

A realtime ray tracer using GLSL

Screenshot

Screenshot

External dependencies:

  • OpenGL2.0+
  • glut
  • libpng

How to run:

make && ./build/RayShader

Controls:

  • To go into Path Tracing mode (top screenshot) press q then 6
  • Mouse drag - change camera angle
  • Mouse right drag - change ball position
  • Scrollwheel - zoom
  • [1-5] - change scene
  • Z - create water ripple
  • V - create vortex (positioned under ball)
  • W - toggle water
  • E - toggle objects
  • R - toggle whether one sphere is refractive (applies only to scene 1 and 3)
  • ] / [ - increase/decrease shadow samples
  • P - reset shadow samples to 0
  • L - toggle environment
  • A / S / D - Switch rendering mode (S is back to RayShading)