Common.ShaderLib.Math.glsllib Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
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