HitObject.GetWorldRayOrigin¶
Description¶
Returns the world-space ray origin. Valid if the hit object represents a hit or a miss. DXR 1.3 and GL_EXT_shader_invocation_reorder.
Signature¶
vector<float, 3> HitObject.GetWorldRayOrigin();
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in stages: raygen, closesthit, miss.
Requires capability: ser_hlsl_native.
glsl¶
Available in stages: raygen, closesthit, miss.
spirv¶
Available in stages: raygen, closesthit, miss.
Requires capabilities: spvRayTracingKHR, spvShaderInvocationReorderNV.