Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-12 20:26:30 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-12 22:03:46 +0300
commitef0b8d6306e5e1cddf1d7a2087e5589adcf74172 (patch)
tree1fb8369fc17afa6f06f82b0ca14cf1209ca7e2c5 /intern/cycles/kernel/types.h
parent9d0d4b8601dfb9de335dd7af32562cbfb94238a6 (diff)
Fix T92002: no Cycles combined baking support for filter settings
Diffstat (limited to 'intern/cycles/kernel/types.h')
-rw-r--r--intern/cycles/kernel/types.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/kernel/types.h b/intern/cycles/kernel/types.h
index 2827139d511..4d4246d2a74 100644
--- a/intern/cycles/kernel/types.h
+++ b/intern/cycles/kernel/types.h
@@ -430,6 +430,16 @@ typedef struct BsdfEval {
float3 glossy;
} BsdfEval;
+/* Closure Filter */
+
+typedef enum FilterClosures {
+ FILTER_CLOSURE_EMISSION = (1 << 0),
+ FILTER_CLOSURE_DIFFUSE = (1 << 1),
+ FILTER_CLOSURE_GLOSSY = (1 << 2),
+ FILTER_CLOSURE_TRANSMISSION = (1 << 3),
+ FILTER_CLOSURE_DIRECT_LIGHT = (1 << 4),
+} FilterClosures;
+
/* Shader Flag */
typedef enum ShaderFlag {
@@ -1186,7 +1196,11 @@ typedef struct KernelIntegrator {
int has_shadow_catcher;
float scrambling_distance;
+ /* Closure filter. */
+ int filter_closures;
+
/* padding */
+ int pad1, pad2, pad3;
} KernelIntegrator;
static_assert_align(KernelIntegrator, 16);