23 lines
250 B
Plaintext
23 lines
250 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();
|
||
|
}
|
||
|
|