Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Artefacts when drawing textures

$
0
0

I am working on a level-based android game. The level is constructed of many blocks, all drawn with the same texture. Until now I didn’t have any problems with drawing the different textures next to each other. However, when I draw a translucent rectangle over the level (in order to show a pause screen on top of it for example), I get artefacts on the places where the textures overlap. To be more clear I included a screenshot that clearly shows my issue: the regions where the textures of the different level blocks overlap do not have the same transparency as the rest of the rectangle.

enter image description here

As you can see, only when drawing the translucent rectangle on top of the level, the overlap is visible.


Viewing all articles
Browse latest Browse all 434

Trending Articles