Quote from: aymenk2003 on August 24, 2009, 07:49:05 PM
Q: what the 'complement scalar' does ?
NKAID...
'complement scalar'(x) = 1-x
'negate scalar'( 'complement scalar' ) = x - 1
'complement scalar'('negate scalar'(x)) = x+1
'abs scalar'(x) + x = if (x<0) then 0 else 2x (I have a phobia against conditional nodes)
'dot product'([x,y,z], 1) = x + y + z
and due to my phobia:
'subtract scalar'( 'add scalar(x, z) , 'difference_scalar'(x, z)' ) = 2*min(x,z)
Useful if you use the vector version of the above node functions.
Also remember that you can mix vector functions and colour functions witout any trouble.