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:
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index f5e71ae59a9..76ec74f5c37 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -227,6 +227,11 @@ typedef struct SceneRenderLayer {
int passflag; /* pass_xor has to be after passflag */
int pass_xor;
+ int denoiseflag;
+ int denoise_half_window;
+ float denoise_strength;
+ float denoise_weighting;
+
int samples;
float pass_alpha_threshold;
@@ -250,6 +255,22 @@ typedef struct SceneRenderLayer {
#define SCE_LAY_ZMASK 0x40000
#define SCE_LAY_NEG_ZMASK 0x80000
+typedef enum SceneDenoiseFlag {
+ SCE_DENOISE_RESULT = (1 << 0),
+ SCE_DENOISE_STORE_PASSES = (1 << 1),
+ SCE_DENOISE_PASS_DIFFDIR = (1 << 2),
+ SCE_DENOISE_PASS_DIFFIND = (1 << 3),
+ SCE_DENOISE_PASS_GLOSSDIR = (1 << 4),
+ SCE_DENOISE_PASS_GLOSSIND = (1 << 5),
+ SCE_DENOISE_PASS_TRANSDIR = (1 << 6),
+ SCE_DENOISE_PASS_TRANSIND = (1 << 7),
+ SCE_DENOISE_PASS_SUBDIR = (1 << 8),
+ SCE_DENOISE_PASS_SUBIND = (1 << 9),
+ SCE_DENOISE_NLM_WEIGHTS = (1 << 10),
+ SCE_DENOISE_GRADIENTS = (1 << 11),
+ SCE_DENOISE_CROSS = (1 << 12),
+} SceneDenoiseFlag;
+
/* srl->passflag */
typedef enum ScenePassType {
SCE_PASS_COMBINED = (1 << 0),
@@ -286,6 +307,21 @@ typedef enum ScenePassType {
SCE_PASS_DEBUG = (1 << 31), /* This is a virtual pass. */
} ScenePassType;
+/* MSVC doesn't like 64-bit enum values. */
+#define SCE_PASS_DENOISE_NORMAL (((uint64_t) 1) << 32)
+#define SCE_PASS_DENOISE_NORMAL_VAR (((uint64_t) 1) << 33)
+#define SCE_PASS_DENOISE_ALBEDO (((uint64_t) 1) << 34)
+#define SCE_PASS_DENOISE_ALBEDO_VAR (((uint64_t) 1) << 35)
+#define SCE_PASS_DENOISE_DEPTH (((uint64_t) 1) << 36)
+#define SCE_PASS_DENOISE_DEPTH_VAR (((uint64_t) 1) << 37)
+#define SCE_PASS_DENOISE_SHADOW_A (((uint64_t) 1) << 38)
+#define SCE_PASS_DENOISE_SHADOW_B (((uint64_t) 1) << 39)
+#define SCE_PASS_DENOISE_NOISY (((uint64_t) 1) << 40) /* The original noisy image (only the components that are denoised). */
+#define SCE_PASS_DENOISE_NOISY_VAR (((uint64_t) 1) << 41)
+#define SCE_PASS_DENOISE_CLEAN (((uint64_t) 1) << 42) /* If present, these image components are added to the denoised image. */
+#define SCE_PASS_DENOISE_NOISY_B (((uint64_t) 1) << 43)
+#define SCE_PASS_DENOISE_NOISY_B_VAR (((uint64_t) 1) << 44)
+
/* note, srl->passflag is treestore element 'nr' in outliner, short still... */
/* View - MultiView */