Basic ray tracing program using OpenGL