1
NGUI 3 Support / Shader for sprites in UIAtlas
« on: April 14, 2014, 02:59:38 AM »
Hi! i'm trying to effect sprites in UIAtlas by shader to create disabled state for UI. I see, that default shader for UIAtlas can change color and alpha of separate sprite in atlas, as well as it's position without effecting the whole atlas. I want to change sprites saturation in the same way, so i need to pass some parametrs in the custom shader. But when I sat shaders property from the script attached to the UISprite the changes apply to the whole atlas, not just for that separate sprite. Can you tell me, what am I doing wrone and is there any way to solve this problem?
I know, that the most simple solution is to use UITexture, not UISprite. But I'd like my texture sprites to stay in UIAtlas.
Thanks!
I know, that the most simple solution is to use UITexture, not UISprite. But I'd like my texture sprites to stay in UIAtlas.
Thanks!