18 lines
215 B
Plaintext
18 lines
215 B
Plaintext
|
#version 460
|
||
|
#extension GL_EXT_ray_tracing : require
|
||
|
|
||
|
rayPayloadInEXT float payload;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
if (payload > 0.0)
|
||
|
{
|
||
|
ignoreIntersectionEXT;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
terminateRayEXT;
|
||
|
}
|
||
|
}
|
||
|
|