I have a blog post that goes into the details, but the main idea is to use a quad sphere to project a square grid (or rather six identical square grids) onto the spherical planet surface.
Okay, ty!