PDA

View Full Version : Post processing



phdr_hroch
06-26-2013, 04:54 AM
Hi I want to post process image, and redraw specified color to different color (clearing alpha channel is enough). Exists something like glColorFunc(GL_EQUAL) ?? Is there non shader solution ?
Thanks Filip

GClements
06-26-2013, 04:38 PM
Hi I want to post process image, and redraw specified color to different color (clearing alpha channel is enough). Exists something like glColorFunc(GL_EQUAL) ?? Is there non shader solution ?


If you tried hard enough, you might be able to cook something up using glTexEnv() with multiple textures and passes. But using a shader would be simpler and more efficient.