hiprtIntersectFunc
Insersection function for custom primitives.
bool ( *hiprtIntersectFunc )( |
const hiprtRay& ray, |
uint32_t primID, |
|
const void* userPtr, |
|
const void* payload, |
|
hiprtFloat2& uv, |
|
hiprtFloat3& normal, |
|
float& t); |
Parameters
Parameter |
Description |
---|---|
ray |
Ray. |
primID |
Primtive ID. |
userPtr |
User data. |
payload |
Payload for additional outputs. |
uv |
Output texture coordinates. |
normal |
Output normal. |
t |
Output distance. |
Return
A flag indicating hit.