PDA

View Full Version : scale alpha channel values in both sides...



Umora
06-20-2003, 03:51 AM
Hi!

I'm searching the way to control transparency in register combiners (using nvparse).
I found that I can esealy scale values to zero when do something like this:

out0.a = tex0.a * col0.b

when col0.b changed from 1 to 0, output alpha varied from tex0.a to 0.
But now when I want to change alpha to be greater than original value I must multiply it with more that 1Ö but donít find a way to pass such parameter into combiner program. Was thinking about using as multiplier a 1/col0.b expression, but again donít find an instructions to do thisÖ is possible at all?