#version 460
#extension GL_EXT_ray_tracing : require

layout(location = 0) rayPayloadInEXT float payload;

void in_func()
{
    if (payload > 0.0)
    {
        ignoreIntersectionEXT;
    }
    else
    {
        terminateRayEXT;
    }
}

void main()
{
    in_func();
}

