GitHunt
PW

PWhiddy/Raymarch-Engine

Minimal ray-traced game engine with gravity affected rays

Raymarch Engine

An improved version of this repo can be found here: https://github.com/pwhiddy/time

An empty room with tiled walls and some luxurious y=sin(x*z) floors
alt tag

Player has created a couple wormholes
alt tag

Getting dangerously close
alt tag

All graphics are ray-traced in real time. Geometry is defined as signed distance fields.
The player can create wormhole portals that bend light as it travels, creating a very similar effect to that seen in interstellar.
An example of useage can be found in initialize.cpp

Dependencies: glfw, glew, glm

Languages

C++74.1%GLSL25.7%C0.2%

Contributors

Created February 12, 2017
Updated August 28, 2025
PWhiddy/Raymarch-Engine | GitHunt