ObjectRayOrigin
Description
Returns the ray origin in object space of the current instance.
Signature
vector<float, 3> ObjectRayOrigin();
Return value
Object-space position where the ray originated
Remarks
Transformed by the inverse of the instance transform. On CUDA/OptiX, only available in anyhit and intersection stages.
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: intersection, anyhit, closesthit.
glsl
Available in stages: intersection, anyhit, closesthit.
cuda
Available in stages: intersection, anyhit.
spirv
Available in stages: intersection, anyhit, closesthit.
Requires capability: spvRayTracingKHR.