SoVertexAttributeRotation¶
-
InventorModule
¶ genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def
Purpose¶
Sends SbRotation values as vertex attribute for a shader. It sends the rotations in quaternion form (4 floats), since quaternions can be used easily inside of a GLSL shader. Note that the interface of SoMFRotation takes a list of SbRotation, which are constructed from an axis and an angle (in radians) when specified from a string. There is also a SbRotation constructor that takes 4 floats instead of axis and angle, which are the 4 values of a unit quaternion.