SoMultipleInstanceparameters Property |
List of per-instance attributes of type SoVertexShaderParameters.
Namespace: OIV.Inventor.Nodes
The predefined names can be queried using OIV.Inventor.Nodes.SoInstanceParameter.GetPredefinedParameterName(OIV.Inventor.Nodes.SoInstanceParameter.PredefinedParameters).
The number of elements in each OIV.Inventor.Nodes.SoVertexShaderParameter must be greater than or equal to numInstances * OIV.Inventor.Nodes.SoInstanceParameter.divisor, if not, the attributes will be ignored with warning messages in debug mode.
Some predefined SoVertexShaderParameter.name are automaticly 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 rotation vec4f to apply to vertices of each instance.
OivShapeInstanceColor: Handles an array of vec3f color applied to vertices of each instance.
OivShapeInstanceTransparency: Handles an array of float transparency applied to vertices of each instance.
OivShapeInstanceTranslation, OivShapeInstanceScale, OivShapeInstanceRotation are combined together to create an equivalent matrix available in GLSL shaders with the function
mat4 OivInstanceMatrix()
OivShapeInstanceColor affects the diffuse color of each instance.