PDA

View Full Version : Modulate2x



SuperCed
05-30-2002, 11:53 PM
How can I use the modulate2x for my lightmap objects?
I can't find function to use modulate 2x? Is there an extension for doing this? How does it work?

JasonM [ATI]
05-31-2002, 03:18 PM
ARB_texture_env_combine (http://www.ati.com/developer/sdk/RadeonSDK/Html/Info/Extensions/ARB_texture_env_combine.html) has a scale factor as do many of the other fragment shading models. For your multipass fallback path, you can do a src*dst + dst*src blend.

-Jason

SuperCed
06-03-2002, 11:01 PM
How do you do this?
I tried to use
glTexEnvf(GL_TEXTURE_ENV, RGB_SCALE_ARB, 2.0);

but it doesn't work. it doesn't compile...

bakery2k
06-03-2002, 11:55 PM
glTexEnvf(GL_TEXTURE_ENV, GL_RGB_SCALE_ARB, 2.0);

SuperCed
06-04-2002, 01:18 AM
thanks, it works well.