This file contains fonction to access instancing parameters. More...
Go to the source code of this file.
Functions | |
void | OivInstancingInit () |
Initialize instancing. | |
int | OivInstanceID () |
Get the current instance ID when using multiple instance. | |
vec3 | OivInstanceTranslation () |
Get the translation vector to apply to the current geometry instance. | |
vec3 | OivInstanceScale () |
Get the scale vector to apply to the current geometry instance. | |
vec4 | OivInstanceRotation () |
Get the rotation (i.e. | |
mat4 | OivInstanceMatrix () |
Get the transformation matrix to apply to the current geometry instance, i.e., the combination of instance rotation, scale and translation. | |
mat4 | OivInstancingGlobalModelMatrix () |
Get the model matrix without instancing transformations i.e., the model matrix at the SoMultipleInstance node level. | |
This file contains fonction to access instancing parameters.
Definition in file oivInstancing.h.
int OivInstanceID | ( | ) |
Get the current instance ID when using multiple instance.
mat4 OivInstanceMatrix | ( | ) |
Get the transformation matrix to apply to the current geometry instance, i.e., the combination of instance rotation, scale and translation.
vec4 OivInstanceRotation | ( | ) |
Get the rotation (i.e.
a quaternion) to apply to the current geometry instance.
vec3 OivInstanceScale | ( | ) |
Get the scale vector to apply to the current geometry instance.
vec3 OivInstanceTranslation | ( | ) |
Get the translation vector to apply to the current geometry instance.
mat4 OivInstancingGlobalModelMatrix | ( | ) |
Get the model matrix without instancing transformations i.e., the model matrix at the SoMultipleInstance node level.
void OivInstancingInit | ( | ) |
Initialize instancing.
Must be called when doing instancing.