SoShaderParameterRotation

InventorModule
genre Shader
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShader
definition SoShader.def
keywords vertex, fragment, geometry

Purpose

Provides a mean 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 do 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