i wanna draw multiple layers of textures over each other without having to make a shader that needs 9 pairs of UV coords and 9 texture samples
i wanna draw multiple layers of textures over each other without having to make a shader that needs 9 pairs of UV coords and 9 texture samples
Shouldn't the UV coords be the same for each texture?
nope, because they're atlassed
That is a conundrum. There are a lot of ways to do something like that and I'm not sure what is best.
Unless you're using depth textures, you shouldn't see z fighting from a UV change, as the underlying triangle hasn't moved. Changing to a flat shader that assigns a color to each triangle index should help you figure out if what you have is z fighting or something else.