PDA

View Full Version : blended textures fade-in?



gustawo
11-18-2005, 08:58 AM
Here is my problem: Iwant my blended textures to fade in / to become more and more visible as I approach them. I use alpha blending with an original texture and a masked one. To fade, I have to darken the original texture. I do that simply by setting it's color to more black. To make effect, I must also make the masked texture more and more whiter. And that's my problem. I can't do that with just setting it's colour to more white; that doesn't whiten it. Please help. :)

tamlin
11-18-2005, 07:25 PM
While possibly a little overkill for your case, perhaps this (http://www.codesampler.com/oglsrc/oglsrc_4.htm#ogl_multitexture_blending) could be of use.