As I switched back to C++ for this project instead of glsl, there are a few bugs that I am still working out. I'll update it as I go.
Sphere
Plane
Source Pictures