Sorry this is a bit off-topic, but I couldn't find an appropriate forum.
In a general combiner, you can say something like:
product = tex0 * tex1; \n
Is there a way to multiply by a constant?
product = tex0 * 0.5;
When I try this, it says that it get's unknown tokens.
You have to put the number into a constant register first:
const0 = (.5, .5, .5, .5);
product = tex0 * const0;
Thanks, but I outsmarted myself. I shoudl have asked for what I really wanted.
If I do that, it works just fine. If I try to use a constant ABOVE 1.0, then it only uses the fractional portion, so
const0 = (1.2, 1.2, 1.2, 1.0)
results in my multiply being .2, .2, .2, 1.0.
Do you know any way around this? We've tried multiplying by the fraction, and scale_by_two(), but can't seem to get the syntax right.
Works for me:
I love these extended smilies....
I had implemented the scale_by_two() wrong.
I had done spare0 = scale_by_two();
I used your example and it worked!.
|All times are GMT -5. The time now is 06:13 PM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.