- Home /
Normalized UV from batched sprite sheet
Hey everyone,
I have tried forever now to get normalized uv coords from a spritesheet sprite. IMO it would make sense to have this information provided somehow in order to overlay a regular texture onto each sprite using that material. The texcoord.xy contains the UVs for the spritesheet coordinates which is good but there is no way to go convert these into a 0 to 1 range as far as I can see. I tried using object space vertex positions but those do not exist as soon as you drop in another sprite and they get batched together. Same goes for the objectToWorld matrix.
I am really stuck on this problem, if anyone can help it would be much appreciated.
Comment