Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: chrisgdaniel on January 17, 2013, 04:03:34 PM
-
I was wondering if there is any way to brighten a UISprite in NGUI?
I am trying to color cycle a UISprite using its mColor property. This works fine for tinting the sprite darker, but it does not allow me to brighten the sprite at all, not even when I override the mColor to use out of bounds numbers (like mColor.r=3.0f;).
Does NGUI support brightening sprites? If not, is there a suggested workaround (maybe a shader that works nicely with NGUI and allows me to brighten)? Or is there anyway to modify how UISprite uses mColor when it draws so that I could get it to work in reverse for a couple sprites?
If anyone has any advice I would love to hear it. Thank you.
~chris
-
The easiest thing to do would be to brighten the source image of the sprite. Coloring is using a multiplication of color which does not increase the brightness of the source image as you noticed.
-
I completely agree.
Unfortunately the image is rather colorful and I only want to tint it 5% of the time, so brightening the image would fix my problem, but at a cost of lowering the contrast of my image the 95% of the time it is untinted.