@Graphics and Games Engineer I'm using this for my payload for both intersection functions:
typedef struct {
vector_float3 normal;
vector_float3 color;
} IntersectionPayload;
(sorry I can't seem to get the code block to render correctly). It just returns the surface normal and color from the intersection function. I think that's a trivial usage.
Topic:
Graphics & Games
SubTopic:
General
Tags: