I have the following spritesheet for types of terrain, with a transparent background.
To draw it on my map, I thought of doing one mesh per type, and then combine them. This is the code.
This gave me at first quite good results.
But then I started trying maps of bigger dimensions, and after a certain point (I think it was 49x49), I got suddenly different results.
As you can see, at this point only seems to render 2 kinds of terrain, and the others have disappeared completely. Size is the only factor that was changed. Materials, Sprites, settings... everything else is completely the same.
Why could this be happening?