All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.ShaderLib.Math.glsllib Maven / Gradle / Ivy

The newest version!
/// Multiplies the vector by the quaternion, then returns the resultant vector.
vec3 Math_QuaternionMult(in vec4 quat, in vec3 vec){
	return vec + 2.0 * cross(quat.xyz, cross(quat.xyz, vec) + quat.w * vec);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy