Skip to content

A basic raytracer with OpenGL and C++

Fran6is/OpenGL-Basic-Raytracer

Repository files navigation

A basic raytracer using OpenGL and C++


Features / Pipeline:

  • Phong illumination
  • Reflection
  • Render passes: Geometry, Light, and Post process
  • Post processing: HDR mapping, Gamma correction
  • Traced shapes: Spheres and Planes
  • Lights: Directional and point (W shadow casts )

Key Bindings

  • ESC: Exit application

  • W A S D: Camera translation

  • Mouse movement: Camera rotation

  • Mouse scroll: Camera zoom (FOV)


Platform build: x86 / all configurations

OpenGL: GLSL3.3, OpenGL32.lib, glad

Windowing: GLFW

Math library: GLM


CMake build (With CMake installed and command prompt opened in project's root directory)

  • Generate project files for x86 platform ( in this case win32 )
[Project root directory]: cmake . -B build -A Win32
  • Build project
[Project root directory]: cmake --build build -t Raytracing
[Project root directory]: cd build/Debug
[Project root directory / build / Debug]: Raytracing

img

img

img

About

A basic raytracer with OpenGL and C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published