JMSDKS

04-18-2006, 03:31 PM

Hello. I am trying to implement a simple multi-texturing equation but can't seem to find the combiner selection that I need. I am using an ATI card so some of the new ATI extensions are available to me as well. My equation is...

Arg0 + Arg0 * Arg1 but I want Arg1 to basically go from -1.0 to +1.0. My whole intent is to have a base color (Arg0) and an intensity multiplier (Arg1). If Arg1 is -1.0 then the final color is basically black while if Arg1 is +1.0 then the final color is twice the base color. I was using three texture units with GL_MODULATE and GL_ADD but I would like to reduce the number of units.

Any help would be appreciated.

Thanks.

Arg0 + Arg0 * Arg1 but I want Arg1 to basically go from -1.0 to +1.0. My whole intent is to have a base color (Arg0) and an intensity multiplier (Arg1). If Arg1 is -1.0 then the final color is basically black while if Arg1 is +1.0 then the final color is twice the base color. I was using three texture units with GL_MODULATE and GL_ADD but I would like to reduce the number of units.

Any help would be appreciated.

Thanks.