I'm porting from Embree 2 to latest 3.5.1. For shadows I need to ignore some intersections
a) if ray hits the same facet it's cast from
b) if ray hits the neighbor facets with same normal
My inersection filter gives ray.geomID == RTC_INVALID_GEOMETRY_ID almost always, but it does not mean background (ray hits nothing), I receive correct geom/primID but only after rtIntersect1 returns control. So I've forced to cast ray again if the hit should be ignored. Also most of unwanted intersection can be excluded if specify some tnear - but it's inaccurate
How can I skip such facets?