2D Toolkit Forum

2D Toolkit => Support => Topic started by: inkoman on January 09, 2016, 01:18:39 am

Title: Can someone write me a very simple shader?
Post 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!
Title: Re: Can someone write me a very simple shader?
Post by: fattie on January 19, 2016, 04:12:55 pm
Would this help ?

http://answers.unity3d.com/questions/47385/looking-for-a-flat-shaderno-info-with-just-a-color.html

Title: Re: Can someone write me a very simple shader?
Post by: inkoman on January 21, 2016, 05:47:13 am
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.