First of all, I've searched, read tutorials, all that stuff.
Still I can't figure out how to use OpenGL and blending to mix 2 textures with one mask (no, I'm not using shaders, neither extensions, and I don't plan to use it, unless it's the only possible way to achieve what I want).
Here's the deal:
2 Textures, 128x128, one completly green, another completly red, should be mixed based on another (128x128) texture, that is black and white:
How do I put Red where is black, and green where is white?
My current code looks something like:
Code :Enable Blend; Disable Depth Test; glBlendFunc(GL_DST_COLOR, GL_ZERO); DrawMask; glBlendFunc(GL_ONE, GL_ONE); DrawRed; // Now, where was black there's red now
Now what should I put in glBlendFunc() to make the white become green?
Should I draw the mask again? With what parameters?