Ray tracing in OpenGL