2022-09-08 12:57:00 -06:00
|
|
|
#version 460
|
|
|
|
|
#extension GL_EXT_ray_tracing : enable
|
|
|
|
|
|
|
|
|
|
layout(location = 0) rayPayloadInEXT vec3 hitValue;
|
|
|
|
|
|
2022-09-26 20:28:08 -06:00
|
|
|
layout(shaderRecordEXT, std430) buffer SBT {
|
|
|
|
|
float r;
|
|
|
|
|
float g;
|
|
|
|
|
float b;
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-08 12:57:00 -06:00
|
|
|
void main()
|
|
|
|
|
{
|
2022-09-26 20:28:08 -06:00
|
|
|
// Update the hit value to the hit record SBT data associated with this
|
|
|
|
|
// miss record
|
|
|
|
|
hitValue = vec3(r, g, b);
|
2022-09-08 12:57:00 -06:00
|
|
|
}
|