Changed ray tracing closest hit shader hit attributes to vec2
Fixes #878
This commit is contained in:
parent
711743ad69
commit
1993f3af5d
9 changed files with 11 additions and 14 deletions
|
|
@ -11,7 +11,7 @@ struct Payload
|
|||
};
|
||||
|
||||
[shader("closesthit")]
|
||||
void main(inout Payload p, in float3 attribs)
|
||||
void main(inout Payload p, in float2 attribs)
|
||||
{
|
||||
const float3 barycentricCoords = float3(1.0f - attribs.x - attribs.y, attribs.x, attribs.y);
|
||||
p.hitValue = barycentricCoords;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue