I have two textures like below:
the first one(a 7*19 texture with a triangle inside):
the second one(a 7*19 texture with a polygon inside):
I am gonna map these two textures into framebuffer. And I will
dedicate the blue color to the first one and red color to the second
one. So I have to use the GL_MODULATE so that I can use the glcolor3f
to decide the color of texture before the scan-conversion(Inside
texture buffer, these two textures are just black(0)&white(1)).
What I want is when the two texture overlap to each other(not totally,
but partly), in the area of overlapping, “0” which is black on screen
will not be changed and in the area of “1”, the color should be red
which is mapped later instead of the modulated value of red and blue.
I’ve tried all the parameters, but nothing works.
Any help is appreciated, thanks