n-stott / 2DRelativity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2DRelativity

A little fun with openGL shader to simulate a top-down view of an observer close to a black hole as well as a 3d renderer, aiming for a physically correct render

Use arrows to move around black hole and hold shift to move faster

Spacebar activates the black hole visuals and the 2/3 number keys to switch between renderers. The R key reloads the shader if you want to experiment without re-executing the binary

Textures are borrowed from https://github.com/sirxemic/Interstellar Code snipets taken from this excellent tutorial collection https://github.com/JoeyDeVries/LearnOpenGL

About


Languages

Language:C++ 86.6%Language:GLSL 13.3%Language:Shell 0.1%