|
|
> I guess that
> #if (Norm.x != 0 | Norm.y != 0 | Norm.z != 0)
> could now be replaced by
> #if (vlength(Norm)!=0)
What's wrong with #if (Norm != <0, 0, 0>)? (Tries it...) Oh, now I see.
"Parse Error: Float expected but vector or color expression found". I see
from the docs that (Norm != <0, 0, 0>) evaluates to a vector. This could
confuse a lot of users. The docs' explaination is, "admittedly this isn't
very useful but it's consistent with other vector operations". Why?
I'm sorry if this has been said before, but it seems annoying to have to
write #if (v1.x = v2.x & v1.y = v2.y & v1.z = v2.z) instead of #if (v1 = v2)
to test whether two vectors are equal. If I really wanted to know seperately
whether two vectors' x, y, and z coordinates are equal, I could write <v1.x
= v2.x, v1.y = v2.y, v1.z = v2.z>. Oh well, I guess it's too late now.
Post a reply to this message
|
|