I need a mesh of quads so I can have 200x200 vertices and UV coordinates from 0 to 1 in both X and Y.
I can't write this by hand, any way to generate such a mesh?
I need a mesh of quads so I can have 200x200 vertices and UV coordinates from 0 to 1 in both X and Y.
I can't write this by hand, any way to generate such a mesh?
You can use loop to create this vertices array. Simple:
You want 200x200 vertices or 200x200 quads?
with indices
without indices
That's 200x200 quads which is 201x201 vertices. If you want 200x200 vertices change
quadsAcross
andquadsDown
to 199