rtcFilterOcclusion(3)
β¨ NAME: rtcFilterOcclusion β invokes the occlusion filter function β¨
bestie, this page is from the Embree Ray Tracing Kernels 3 manual, and it's literally about the rtcFilterOcclusion function. it's giving "invokes the occlusion filter function" and we are obsessed π
π SYNOPSIS π
#include <embree3/rtcore.h>
void rtcFilterOcclusion(
const struct RTCOccludedFunctionNArguments* args,
const struct RTCFilterFunctionNArguments* filterArgs
);
π¦ DESCRIPTION π¦
okay so. rtcFilterOcclusion is the function you call from inside an RTCOccludedFunctionN callback function. its whole job? invoke the occlusion filter that's registered to the geometry and stored inside the context. slay. β¨
to make that happen you have to create an RTCFilterFunctionNArguments structure (peep rtcSetGeometryIntersectFilterFunction for the deets). that struct basically consists of:
- a valid mask
- a hit packet to filter
- the corresponding ray packet
- the packet size
after you invoke rtcFilterOcclusion, only rays that are still valid β that means the valid mask is set to -1 β should signal an occlusion. no cap. the rest are simply not it. π
π EXIT STATUS π
for performance reasons this function does not do any error checks. so on failure it will not set any error flags. periodt. don't come for it. π
π SEE ALSO π
rtcFilterIntersectionrtcSetGeometryOccludedFunction
that's the whole page, bestie π«Ά stay iconic, and remember: rtcFilterOcclusion(3) from Embree Ray Tracing Kernels 3 β no date on this footer, so just vibe with it πβ¨π
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms