LWJGL Forum

Programming => OpenGL => Topic started by: laginimaineb on May 27, 2007, 12:06:32

Title: glColor excluding a certain colour
Post by: laginimaineb on May 27, 2007, 12:06:32
Hello, I was wondering whether it is possible to use glColor to taint a texture (as I do) but without it tainting certain colours (namely, white).

With thanks,
laginimaineb.
Title: Re: glColor excluding a certain colour
Post by: HangDude on June 06, 2007, 08:24:39
I don't know of any way on how to do this with glColor only, but the task would be rather trivial using a fragment shader. You still need fragment shader support tough.

greets,
phil
Title: Re: glColor excluding a certain colour
Post by: laginimaineb on June 06, 2007, 10:18:36
Thanks for your reply, the problem is most of my users probably don't support fragment shaders, too bad. Oh well, guess I'll have to keep thinking.

With Thanks,
laginimaineb.