I would like to blend in some decals into my G-buffer, which looks like this:
GBuffer0: diffuseR diffuseG, diffuseB, unused
GBuffer1: normal1, normal2, specular, gloss
GBuffer2: emissiveR, emissiveG, emissiveB, primitive ID number
I have no problem blending with gBuffer0 and gBuffer2 since I can just use glBlendFuncSeparate to disable any modification of the alpha value, but GBuffer1 needs to have all its values blended. Is there no way of specifying a separate 5th blending value or something like that? Even a separate global value would be extremely convenient.
PS: I'm using the 4th method of this article for my normals: http://aras-p.info/texts/CompactNormalStorage.html#method04spheremap.
Edited by theagentd, 03 April 2014 - 07:51 AM.