Lehm
04-11-2005, 07:18 PM
Just starting with opengl and I had a question about multitexture blending.
More or less what I want to do is take two textures combine them using the alpha values. Then modulate the combined textures with the polygon color. This seemed simple at first but I'm having a little bit of trouble. The closest I've gotten is by setting the first texture to modulate. However if I set the second texture to modulate it mixes with the first and changes the firsts alpha. Neither of which I want. If I set it to decal it is drawn on top but it doesn't blend with polygon color.
I've changed everything from the GL_sources to Operands. I just can't seem to make it work.
One idea that did come to mind was to use the glsecondarycolor. But the only option that I've seen for that is add, not modulate like I want.
Thanks, hopefully that makes sense.
More or less what I want to do is take two textures combine them using the alpha values. Then modulate the combined textures with the polygon color. This seemed simple at first but I'm having a little bit of trouble. The closest I've gotten is by setting the first texture to modulate. However if I set the second texture to modulate it mixes with the first and changes the firsts alpha. Neither of which I want. If I set it to decal it is drawn on top but it doesn't blend with polygon color.
I've changed everything from the GL_sources to Operands. I just can't seem to make it work.
One idea that did come to mind was to use the glsecondarycolor. But the only option that I've seen for that is add, not modulate like I want.
Thanks, hopefully that makes sense.