- Home /
Question by
Freaking-Pingo · Nov 14, 2016 at 08:57 AM ·
shaderspriteuv mappingatlasnormalization
[ShaderForge] Atlas UV map vs. Local UV map
Hi Uniteers, I am struggling with the current. I wish to add a glow to my sprite using the UV coordinates, but problem is, if the sprite originates from an atlas created by Unity's sprite packer, then the UV aren't normalized from 0 to 1, but from and to two arbitrary values. How do I normalize UV data for a single sprite that resides in an atlas?
The hand to the left is a sprite. The hand on the right is a sprite from an atlas. I want the right hand to look the same as the hand on the left.
I am using the following shaderforge layout:
zgq3vyx.png
(17.3 kB)
llhwcah.png
(229.8 kB)
Comment