Cross product is just a MUL+MAD
R2=R0xR1
MUL R2, R0.zxyw, R1.yzxw;
MAD R2, R0.yzxw, R1.zxyw, -R2;
Written by Andrew Lau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#hlsl
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#