I think it might be worth noting here that the texturecoords are referring to the entire texture (0.0 - 1.0). So comparing like tc.y < 0.5
won’t work if you have your image inside an atlas (it may be placed anywhere inside the texture).
I think it might be worth noting here that the texturecoords are referring to the entire texture (0.0 - 1.0). So comparing like tc.y < 0.5
won’t work if you have your image inside an atlas (it may be placed anywhere inside the texture).