1// Copyright 2009-2021 Intel Corporation
2// SPDX-License-Identifier: Apache-2.0
3
4/* #undef EMBREE_RAY_MASK */
5/* #undef EMBREE_STAT_COUNTERS */
6/* #undef EMBREE_BACKFACE_CULLING */
7/* #undef EMBREE_BACKFACE_CULLING_CURVES */
8#define EMBREE_FILTER_FUNCTION
9/* #undef EMBREE_IGNORE_INVALID_RAYS */
10#define EMBREE_GEOMETRY_TRIANGLE
11/* #undef EMBREE_GEOMETRY_QUAD */
12/* #undef EMBREE_GEOMETRY_CURVE */
13/* #undef EMBREE_GEOMETRY_SUBDIVISION */
14/* #undef EMBREE_GEOMETRY_USER */
15/* #undef EMBREE_GEOMETRY_INSTANCE */
16/* #undef EMBREE_GEOMETRY_GRID */
17/* #undef EMBREE_GEOMETRY_POINT */
18#define EMBREE_RAY_PACKETS
19/* #undef EMBREE_COMPACT_POLYS */
20
21#define EMBREE_CURVE_SELF_INTERSECTION_AVOIDANCE_FACTOR 2.0
22#define EMBREE_DISC_POINT_SELF_INTERSECTION_AVOIDANCE
23
24#if defined(EMBREE_GEOMETRY_TRIANGLE)
25 #define IF_ENABLED_TRIS(x) x
26#else
27 #define IF_ENABLED_TRIS(x)
28#endif
29
30#if defined(EMBREE_GEOMETRY_QUAD)
31 #define IF_ENABLED_QUADS(x) x
32#else
33 #define IF_ENABLED_QUADS(x)
34#endif
35
36#if defined(EMBREE_GEOMETRY_CURVE) || defined(EMBREE_GEOMETRY_POINT)
37 #define IF_ENABLED_CURVES_OR_POINTS(x) x
38#else
39 #define IF_ENABLED_CURVES_OR_POINTS(x)
40#endif
41
42#if defined(EMBREE_GEOMETRY_CURVE)
43 #define IF_ENABLED_CURVES(x) x
44#else
45 #define IF_ENABLED_CURVES(x)
46#endif
47
48#if defined(EMBREE_GEOMETRY_POINT)
49 #define IF_ENABLED_POINTS(x) x
50#else
51 #define IF_ENABLED_POINTS(x)
52#endif
53
54#if defined(EMBREE_GEOMETRY_SUBDIVISION)
55 #define IF_ENABLED_SUBDIV(x) x
56#else
57 #define IF_ENABLED_SUBDIV(x)
58#endif
59
60#if defined(EMBREE_GEOMETRY_USER)
61 #define IF_ENABLED_USER(x) x
62#else
63 #define IF_ENABLED_USER(x)
64#endif
65
66#if defined(EMBREE_GEOMETRY_INSTANCE)
67 #define IF_ENABLED_INSTANCE(x) x
68#else
69 #define IF_ENABLED_INSTANCE(x)
70#endif
71
72#if defined(EMBREE_GEOMETRY_GRID)
73 #define IF_ENABLED_GRIDS(x) x
74#else
75 #define IF_ENABLED_GRIDS(x)
76#endif
77