By having the last three parameters set to GL_FALSE. Ninja, I would recommend you to read (actually watch) the paper registercombiners.pdf which you find at http://developer.nvidia.com/view.asp?IO=registercombiners ! This paper has good pictures of the different stages.
Actually I have a texture with information that need to be scaled and biased, lika
C_new = (C_old - bias) * scale for each rgb.
I this possible to do in the register combiners?
If you only need to scale by 2 then you could use a constant register containing (100.0 / 255.0 ) and subtract that in a general combiner and scale the output by 2. It should work, I haven’t use RCs in a while.
The values read from a texture are always between 0.0 and 1.0.
Originally posted by Ninja:
[b]How can I subtract with RC?
I’ve looked at NvParse and tried to use it, but I got alot of link errors like
Anyone know whats wrong?
-Ninja[/b]
Taken from glh_extensions.h :
// Comments:
//
// The trick with GLH_EXT_SINGLE_FILE is that you need to have it defined in
// exactly one cpp file because it piggy-backs the function implementations in
// the header. You don’t want multiple implementations defined or the linker
// gets mad, but one file must have the implementations in it or the linker
// gets mad for different reasons.
//
// The goal was to avoid having this helper require a separate cpp file. One
// thing you could do is just have a glh_extensions.cpp that did
//
// #define GLH_EXT_SINGLE_FILE
// #include <glh_extensions.h>
//
// and make it the only file that ever defines GLH_EXT_SINGLE_FILE.
you must have one and only one file that defines GLH_EXT_SINGLE_FILE.
I’ve got the same kind of errors if i remove it.
Think that should do the trick.