it's like this...
i know what a dor product is...an operation that
returns the angle between 2 vectors...right?
A . B = Ax*Bx + Ay*By
A . B = |A|*|B|*Cos(angle)
so if i wanna find the angle between the vectors A and B:
Cos(angle) = (A . B)/(|A|*|B|) so the angle is the inverse of Cos(angle)..
this is all completely clear to me (same for Cross Product)
but what exactly is DotProduct3? or DotProduct4?
you know..the dp3 and dp4 in pixel shaders?
what do the 3 & 4 stand for, what do they mean..