Vertex shader

Here, we turn a cube into a sphere by projecting each vertex onto the surface of a sphere (lines 17 - 19).

This will work with any shape, but... well, try it for yourself

Also, try reducing the number of segments that make up the shape.