IgnoreHit not working


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:

void TestAnyHit(inout TestRayPayload rayData, BuiltinIntersectionAttribs attribs)

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

Thank you =)