2D Toolkit Forum
2D Toolkit => Support => Topic started by: inkoman on January 09, 2016, 01:18:39 am
-
Hi there,
I'm sorry for basically asking for a handout, but shaders are way over my head :( I was wondering if anyone can come up with some code for a shader to convert all non-transparent pixels into a color of my choosing (if I can somehow just replace RGB in the shader code or something) for a tk2dSprite. I appreciate any help very much!
-
Would this help ?
http://answers.unity3d.com/questions/47385/looking-for-a-flat-shaderno-info-with-just-a-color.html
-
It's definitely the right track but unfortunately doesn't seem to work :( Thanks for the effort though - I've decided to make all of the relevant sprites only white and transparent pixels so that I can adjust the color directly on the tk2dSprite without touching the shader. My sprites only need to be 1 color so this solution is easiest.