simple ray casting of a shaded hemisphere in OpenGL