rtcSetGeometryMask(3)
π rtcSetGeometryMask(3) π
okay bestie, welcome to the Embree Ray Tracing Kernels 4 manual, and today's main character is rtcSetGeometryMask β she sets the geometry mask, and honestly? she ate. π
β¨ NAME β¨
rtcSetGeometryMask β sets the geometry mask. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
#include <embree4/rtcore.h>
void rtcSetGeometryMask(
RTCGeometry geometry,
unsigned int mask
);
π¦ DESCRIPTION π¦
so rtcSetGeometryMask sets a 32-bit geometry mask β that's the mask argument, bestie β for the geometry you point at with the geometry argument. literally just handing your geometry a little 32-bit name tag. π
and here's the tea β: this geometry mask gets used together with the ray mask that lives inside the mask field of the ray. the primitives of the geometry get hit by the ray only if the bitwise and operation of the geometry mask with the ray mask is not 0. no bits matching? no hit. periodt.
the way this is useful?? you can use it to disable selected geometries for specifically tagged rays β like, for example, to disable shadow casting for certain geometries. iconic behaviour honestly. πβ¨
π EXIT STATUS π
if something goes wrong, an error code gets set, and you can go ask about it with rtcGetDeviceError. she'll tell you what happened, no cap. π«Ά
π SEE ALSO π
[RTCRay][rtcGetDeviceProperty]
k bye bestie, go set some masks, you're doing amazing sweetie ππΈ β with love from the Embree Ray Tracing Kernels 4 manual, section 3, rtcSetGeometryMask(3). mwah. ππ
π¦ where this page comes from
- ubuntu stonking: libembree-dev 4.4.1+dfsg-2ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms