--- layout: stdlib-reference --- # HitTriangleVertexPosition ## Description Get the vertex positions of the currently hit triangle in any-hit or closest-hit shader. https://github.com/KhronosGroup/GLSL/blob/master/extensions/ext/GLSL_EXT_ray_tracing_position_fetch.txt ## Signature
vector<float, 3> HitTriangleVertexPosition(uint index);

## Parameters #### index : uint Index of the vertex (0-2) ## Return value Object-space position of the specified vertex ## Remarks Requires ray tracing position fetch extension ## Availability and Requirements Defined for the following targets: #### glsl Available in stages: `closesthit`, `anyhit`. #### spirv Available in stages: `closesthit`, `anyhit`. Requires capability: `spvRayTracingPositionFetchKHR`. ## See Also GL_EXT_ray_tracing_position_fetch