Radeon ProRender

RRHit

Description

Hit description for full hit results of rrCmdIntersect().

Applies to

All supported backends

Items

Name Type Description
uv[2] float Barycentric coordinates of the point of intersection of the ray with the primitive in relation to this primitive.
inst_id uint32_t RRInstance index in the scene.* If the ray does not intersect with anything, a value of inst_id = 0xFFFFFFFF is returned.
prim_id uint32_t Primitive index in the RRInstance pointed to by inst_id.*

* Indices refer to the point of intersection of the ray and the geometry found.