avatar
Eniko Fox @enikofox.com

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

sep 9, 2025, 11:38 am • 0 0

Replies

avatar
Penny @abstractslug.bsky.social

Shouldn't the UV coords be the same for each texture?

sep 9, 2025, 11:40 am • 1 0 • view
avatar
Eniko Fox @enikofox.com

nope, because they're atlassed

sep 9, 2025, 11:41 am • 0 0 • view
avatar
Penny @abstractslug.bsky.social

That is a conundrum. There are a lot of ways to do something like that and I'm not sure what is best.

sep 9, 2025, 11:46 am • 1 0 • view
avatar
Make Kasprzak 🦖🍁 @distraction.engineer

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.

sep 9, 2025, 12:31 pm • 2 0 • view