Hello Guest

Author Topic: Can someone write me a very simple shader?  (Read 3723 times)

inkoman

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Can someone write me a very simple shader?
« 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!

fattie

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 106
    • View Profile

inkoman

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Can someone write me a very simple shader?
« Reply #2 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.