IgnoreHit not working

Hi,

I took a simple ray tracing example that should ignore the rays that hit a transparent material but it seems that the IgnoreHit is not working.

I tried to just ignore all the hits, like this:

[shader(“anyhit”)]
void TestAnyHit(inout TestRayPayload rayData, BuiltinIntersectionAttribs attribs)
{
IgnoreHit();
}

But the results is still the same. Should I do anything else to ignore a hit?

Thank you =)