Nested for-loop to draw 2d grid. Minus the empty tiles?

Another option is to draw the tilemap in a shader as a single Quad.
See: Shader+Example here
This is still not merger in my Master cause I wanted to add an importer to read .tmx and export the tilemap texture, I’ll see into it as soon as I get some free time.