PDA

View Full Version : multiply a texture by a float > 1



totof
03-20-2003, 01:55 AM
Is it possible to multiply a texture by any float greater than 1 ?

I believe that GeForce 4 are limited by a scale of 1, 2, or 4 only.

Is it less restrictive on GeForce FX with Cg ?

JustHanging
03-20-2003, 08:15 AM
Hi,

I don't know if it helps, but you can always modulate by f/4 and then multiply by 4. That way you can multiply by any float up to 4. Expect precision problems on old hardware, though.

-Ilkka