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 | /* #undef EMBREE_RAY_PACKETS */ |
19 | /* #undef EMBREE_COMPACT_POLYS */ |
20 | |
21 | #define EMBREE_CURVE_SELF_INTERSECTION_AVOIDANCE_FACTOR 2.0 |
22 | |
23 | #if defined(EMBREE_GEOMETRY_TRIANGLE) |
24 | #define IF_ENABLED_TRIS(x) x |
25 | #else |
26 | #define IF_ENABLED_TRIS(x) |
27 | #endif |
28 | |
29 | #if defined(EMBREE_GEOMETRY_QUAD) |
30 | #define IF_ENABLED_QUADS(x) x |
31 | #else |
32 | #define IF_ENABLED_QUADS(x) |
33 | #endif |
34 | |
35 | #if defined(EMBREE_GEOMETRY_CURVE) || defined(EMBREE_GEOMETRY_POINT) |
36 | #define IF_ENABLED_CURVES_OR_POINTS(x) x |
37 | #else |
38 | #define IF_ENABLED_CURVES_OR_POINTS(x) |
39 | #endif |
40 | |
41 | #if defined(EMBREE_GEOMETRY_CURVE) |
42 | #define IF_ENABLED_CURVES(x) x |
43 | #else |
44 | #define IF_ENABLED_CURVES(x) |
45 | #endif |
46 | |
47 | #if defined(EMBREE_GEOMETRY_POINT) |
48 | #define IF_ENABLED_POINTS(x) x |
49 | #else |
50 | #define IF_ENABLED_POINTS(x) |
51 | #endif |
52 | |
53 | #if defined(EMBREE_GEOMETRY_SUBDIVISION) |
54 | #define IF_ENABLED_SUBDIV(x) x |
55 | #else |
56 | #define IF_ENABLED_SUBDIV(x) |
57 | #endif |
58 | |
59 | #if defined(EMBREE_GEOMETRY_USER) |
60 | #define IF_ENABLED_USER(x) x |
61 | #else |
62 | #define IF_ENABLED_USER(x) |
63 | #endif |
64 | |
65 | #if defined(EMBREE_GEOMETRY_INSTANCE) |
66 | #define IF_ENABLED_INSTANCE(x) x |
67 | #else |
68 | #define IF_ENABLED_INSTANCE(x) |
69 | #endif |
70 | |
71 | #if defined(EMBREE_GEOMETRY_GRID) |
72 | #define IF_ENABLED_GRIDS(x) x |
73 | #else |
74 | #define IF_ENABLED_GRIDS(x) |
75 | #endif |
76 | |
77 | |
78 | |
79 | |
80 | |