PDA

View Full Version : blending + fade



dcd
08-28-2002, 11:01 AM
I have a texture of a moon that is drawn before a texture of clouds. Both textures are blended using:

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

I would somehow like the moon to fade into the scene, but am unsure how to do this correctly when I'm already blending it with another texture. Any help would be appreciated.

Nakoruru
08-28-2002, 01:17 PM
Maybe try modulating the moon with the primary color.

dcd
09-03-2002, 12:13 PM
Originally posted by Nakoruru:
Maybe try modulating the moon with the primary color.

Thanks for the suggestion, can you give me an example of how this is done please?