SoInstanceParameterPredefinedParameters Enumeration |
List of predefined per-instance attribute names.
Namespace: OIV.Inventor.Nodes
Member name | Value | Description | |
---|---|---|---|
TRANSLATION | 0 | ||
ROTATION | 1 | ||
SCALE | 2 | ||
VISIBILITY | 3 | ||
COLOR | 4 | ||
NUM_PREDEFINED_PARAMETERS | 5 |
The names corresponding to the following enum symbols can be queried by mean of the getPredefinedParameterName() method. They correspond to a set of predefined parameter names that are automatically managed/interpreted:
OivShapeInstanceTranslation: Handles an array of vec3f translation to apply to vertices of each instance.
OivShapeInstanceScale: Handles an array of vec3f scale factor applied to vertices of each instance.
OivShapeInstanceRotation: Handles an array of vec4f quaternion applied to vertices of each instance.
OivShapeInstanceColor: Handles an array of vec3f color applied to vertices of each instance.
OivShapeInstanceVisibility: Handles an array of int32 visibility flag to apply to each instance.
OivShapeInstanceTranslation, OivShapeInstanceScale and OivShapeInstanceRotation are combined together to create an equivalent matrix available in GLSL shaders with the function
mat4 OivGetShapeInstanceMatrix()
OivShapeInstanceColor affects the diffuse color of each instance.
OivShapeInstanceVisibility affects the visibility of each instance (i.e. 0 means hidden and a value greater than zero means visible). This attribute is available in GLSL shaders with the function
int OivGetShapeInstanceVisibility()