18 lines
204 B
Plaintext
18 lines
204 B
Plaintext
|
#version 460
|
||
|
#extension GL_NV_ray_tracing : require
|
||
|
|
||
|
rayPayloadInNV float payload;
|
||
|
|
||
|
void in_func()
|
||
|
{
|
||
|
if (payload > 0.0)
|
||
|
ignoreIntersectionNV();
|
||
|
else
|
||
|
terminateRayNV();
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
in_func();
|
||
|
}
|