(Glide2GL) Move calc_sphere/calc_light/etc. functions back to 3dmath.c