You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*! Material-dependent flags set on Geometry/GeometryTriangles */
413
417
typedefenum {
414
418
RT_GEOMETRY_FLAG_NONE=0x00, /*!< No special flags set */
415
-
RT_GEOMETRY_FLAG_DISABLE_ANYHIT=0x01, /*!< Opaque flag, any hit program will be skipped */
416
-
RT_GEOMETRY_FLAG_NO_SPLITTING=0x02, /*!< Disable primitive splitting to avoid potential duplicate any hit program execution for a single intersection */
419
+
RT_GEOMETRY_FLAG_DISABLE_ANYHIT=0x01, /*!< Disable any-hit program execution (execution will be skipped,including the no-op any-hit program
420
+
used when an any-hit program is not specified).
421
+
Can be overridden by ray and instance flags, precedence: RTrayflags > RTinstanceflags > RTgeometryflags */
422
+
RT_GEOMETRY_FLAG_NO_SPLITTING=0x02, /*!< Disable primitive splitting to avoid potential multiple any-hit program execution for a single intersection */
417
423
} RTgeometryflags;
418
424
419
425
/*! Instance flags which override the behavior of geometry. */
420
426
typedefenum {
421
427
RT_INSTANCE_FLAG_NONE=0u, /*!< No special flag set */
422
-
RT_INSTANCE_FLAG_DISABLE_TRIANGLE_CULLING=1u << 0, /*!< Prevent triangles from getting culled */
RT_INSTANCE_FLAG_DISABLE_TRIANGLE_CULLING=1u << 0, /*!< Prevent triangles from getting culled due to face orientation (overrides ray culling flags). */
429
+
RT_INSTANCE_FLAG_FLIP_TRIANGLE_FACING=1u << 1, /*!< Flip triangle orientation. This affects front/back face culling. */
430
+
RT_INSTANCE_FLAG_DISABLE_ANYHIT=1u << 2, /*!< Disable any-hit program execution (including the no-op any-hit program
431
+
used when an any-hit program is not specified).
425
432
This may yield significantly higher performance even in cases
RT_RAY_FLAG_TERMINATE_ON_FIRST_HIT=1u << 2, /*!< Terminate the ray after the first hit, also reports the first hit as closest hit. */
458
+
RT_RAY_FLAG_DISABLE_CLOSESTHIT=1u << 3, /*!< Disable closest-hit program execution for the ray. */
459
+
RT_RAY_FLAG_CULL_BACK_FACING_TRIANGLES=1u << 4, /*!< Do not intersect triangle back faces. */
460
+
RT_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES=1u << 5, /*!< Do not intersect triangle front faces. */
461
+
RT_RAY_FLAG_CULL_DISABLED_ANYHIT=1u << 6, /*!< Do not intersect geometry which disables any-hit programs (due to any geometry, instance, or ray flag). */
462
+
RT_RAY_FLAG_CULL_ENABLED_ANYHIT=1u << 7/*!< Do not intersect geometry which executes any-hit programs (i.e., forced or not disabled any-hit program execution, this includes a potential no-op any-hit program). */
0 commit comments