2D Toolkit Forum

2D Toolkit => Support => Topic started by: destro on February 20, 2014, 04:20:40 am

Title: make alpha spite white?
Post by: destro on February 20, 2014, 04:20:40 am
Is it possible to make sprite with alpha more white, maybe not 100% white but whiter than orginal, would be great if color of sprite works like that black to 50%grey like multiplay and from grey to white like screen in photoshop :) for now I only need whitefuncionality but more flexible way to control spites color can be always usefull :)
Title: Re: make alpha spite white?
Post by: unikronsoftware on February 20, 2014, 11:18:46 am
You can do anything you like in a shader. Remember though that changing the shader will affect performance, especially if its something more "complicated" like what you're requesting. I don't think screen is possible with blend hardware.
Title: Re: make alpha spite white?
Post by: destro on February 20, 2014, 03:27:53 pm
thanks for answer :)

Can You point me in the right direction how to make/ change shader to make simple white blink on spite? :)
Title: Re: make alpha spite white?
Post by: unikronsoftware on February 20, 2014, 09:13:13 pm
You could start with something like this
http://2dtoolkit.com/forum/index.php/topic,391.msg1708.html#msg1708
Title: Re: make alpha spite white?
Post by: destro on February 21, 2014, 04:12:09 am
Works great! :) Thank You Sir :)