View Full Version : blendfunc grey + grey = black?

02-20-2009, 08:46 AM
Hello, excuse my bad english in advance..

I've a problem:
I wanna make some shadows on a plane, and there are some shadow-objects which overlap. I wanne make them kind of grey and when they overlap they should get darker. I am trying to use blending for solving this. I know there is the math-function, behind it, and i've seen this constants which i can give at blendfunc. (i tried them randomly). Before i get out my calculator, does anybody know how to get the blendfunc to make quite the opposite. I wanna have the objects become darker when they overlap, but they turn brighter.

regards && tia

Zed Gimbal
02-20-2009, 09:07 AM
This is only a guess, but could you pass a negative value into one or both parameters of glBlendFunc?

02-22-2009, 04:19 AM
I tried this with a lot of modfications.

One thing i would need is to reverse the colours. What is brighter needs to be darker etc.