Home | History | Annotate | Download | only in ShaderLib
      1 /// Multiplies the vector by the quaternion, then returns the resultant vector.
      2 vec3 Math_QuaternionMult(in vec4 quat, in vec3 vec){
      3 	return vec + 2.0 * cross(quat.xyz, cross(quat.xyz, vec) + quat.w * vec);
      4 }