bucky
11-08-2007, 02:13 PM
Hi all,
Was wondering if it's possible to replicate the blending functions found in photoshop and other graphics software with gl blend funcs?
I can see that I can replicate(or approximate?) only a couple, like 'screen' for example with:
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR)
note that I'm not certain if this is actually doing the screen function but it looks close to me..are the more complex blend funcs done in multiple passes? if anyone could point me in the right direction it would be much appreciated..
some of the blend functions..
screen overlay darken lighten colorDodge colorBurn softLight darkLight..etc..
thanks!
Was wondering if it's possible to replicate the blending functions found in photoshop and other graphics software with gl blend funcs?
I can see that I can replicate(or approximate?) only a couple, like 'screen' for example with:
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR)
note that I'm not certain if this is actually doing the screen function but it looks close to me..are the more complex blend funcs done in multiple passes? if anyone could point me in the right direction it would be much appreciated..
some of the blend functions..
screen overlay darken lighten colorDodge colorBurn softLight darkLight..etc..
thanks!