レジスタコンバイナ

レジスタコンバイナをがんばって使えばpixelshadeを書ける。
glCombinerOutputNVの最後の引数muxSumというのが謎。

The computation of gcc6rgb and gcc4a involves a special "or"
     operation.  This operation evaluates to the left-hand operand if
     the alpha component of the combiner's SPARE0_NV register is less than
     0.5; otherwise, the operation evaluates to the right-hand operand.  


SPARE0のalphaの結果が0.5未満ならa*b(内積器に切り替えていたらa・b)が、0.5以上ならc*dが使われる。


ということで、コンペアができるのでがんばって使えば色々使えるよということ。


某箱の時は内部の値をsignedからunsignedに変換する時ぐらいしか使わなかったけどね。
あんまり使い道は無い。