Generate Procedural Mesh

I’m trying to add second UV as well. (to pass some data) Anyone is able to share some light?