Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: newDev 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!
-
You can't do it for select sprites. All sprites that use the same atlas end up in the same draw call. The only way to do what you want is to have them use separate atlases.