17 lines
No EOL
323 B
GLSL
17 lines
No EOL
323 B
GLSL
#version 460
|
|
#extension GL_EXT_ray_tracing : enable
|
|
|
|
layout(location = 0) rayPayloadInEXT vec3 hitValue;
|
|
|
|
layout(shaderRecordEXT, std430) buffer SBT {
|
|
float r;
|
|
float g;
|
|
float b;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
// Update the hit value to the hit record SBT data associated with this
|
|
// miss record
|
|
hitValue = vec3(r, g, b);
|
|
} |