OpenGL intersection