SoShaderParameterRotation¶
-
InventorModule¶ genre Shaderauthor MeVis Medical Solutions AGpackage MeVisLab/Standarddll SoShaderdefinition SoShader.def keywords vertex,fragment,geometry
Purpose¶
The module SoShaderParameterRotation provides a means to set a rotation uniform parameter. The rotation is passed as a quaternion with 4 floats.
Quaternions can be used efficiently inside of a shader to perform a rotation:
vec3 rotatedVector = vector + 2.0 * cross(quaternion.xyz, cross(quaternion.xyz, vector) + quaternion.w * vector);