I'm writing a shader to make a colored glow on Unity UI Images like Fireworks/Photoshop Glow Effect. I found some examples on the internet and I can make it work fine in the Editor, but when I run the game on Android, it does not work. I spend a lot of time figuring what may be the problem and I realized that in the Editor mode the Sprite Packer was disabled and the shader works fine with a single sprite, but when the sprite is packed the shader doesn't work. The issue must be on those lines of code: Code (Cg): const half2 centerPos = half2(0.5, 0.5); half dist = max(2*distance(IN.texcoord, centerPos)-shinestart,0); The idea of the shader is to make a radial effect and it needs the center of the image.The texcoord is relative to the Atlas image, so the centerPos is not the center of the image, but the center of the Atlas itself. Can I have the access to the current sprite's bounds and center position? Thanks!