updating sbt record data example to also cover miss sbt data

This commit is contained in:
n8vm 2022-09-26 20:28:08 -06:00
parent e8270a7b38
commit 3a4ea2b697
11 changed files with 90 additions and 29 deletions

View file

@ -3,7 +3,15 @@
layout(location = 0) rayPayloadInEXT vec3 hitValue;
layout(shaderRecordEXT, std430) buffer SBT {
float r;
float g;
float b;
};
void main()
{
// for now, we do nothing in the miss program
// Update the hit value to the hit record SBT data associated with this
// miss record
hitValue = vec3(r, g, b);
}