HitObject.GetTriangleVertexPositions
Description
Returns the world-space vertex positions of the triangle that was hit. Valid if the hit object represents a triangle hit.
Signature
vector<float, 3>[3] HitObject.GetTriangleVertexPositions();
Return value
Array of three vertex positions in world space
Remarks
Requires ray tracing position fetch extension
Availability and Requirements
Defined for the following targets:
glsl
Available in stages: raygen, closesthit, miss.
spirv
Available in stages: raygen, closesthit, miss.
Requires capabilities: spvRayTracingPositionFetchKHR, spvShaderInvocationReorderEXT.