SoShaderParameterRotation¶
- InventorModule¶
genre
author
package
dll
definition
keywords
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);
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Visible Fields¶
Name¶
- name: name, type: String¶
Value¶
- name: value, type: Rotation, default: 0 0 1 0¶