rtcGetGeometryTransformEx(3) | Embree Ray Tracing Kernels 4 | rtcGetGeometryTransformEx(3) |
rtcGetGeometryTransformEx - returns the interpolated instance transformation for an instance of an instance array geometry for the specified time.
#include <embree4/rtcore.h> void rtcGetGeometryTransformEx( RTCGeometry geometry, unsigned int instPrimID, float time, enum RTCFormat format, void* xfm );
The rtcGetGeometryTransformEx function returns the interpolated local to world transformation (xfm parameter) of the instPrimID-th instance of an instance array geometry (geometry parameter) for a particular time (time parameter in range [0, 1]) in the specified format (format parameter). The function can also be used when geometry refers to a regular instance, but then the instPrimID has to be 0.
Possible formats for the returned matrix are:
On failure an error code is set that can be queried using rtcGetDeviceError.
[RTC_GEOMETRY_TYPE_INSTANCE_ARRAY]