OpenGL (SDL,C++) tutorial 16 - ray tracing (ray-sphere intersection) - YouTube
In this tutorial I show you how you can calculate the intersection point between a ray and a sphere. Source code: http://pastebin.com/BGGqrQ5S http://pastebin.com/qC1pMbFX http://pastebin.com/8vVJHut5....