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:
authorManuel Castilla <manzanillawork@gmail.com>2021-09-19 21:12:53 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-09-19 22:13:51 +0300
commit276eebb274744d819dcdab8a95770dd7382c0664 (patch)
tree2f1ab6ee7c3b87eb297143c32f4a2c09bd714f0c /source/blender/makesdna
parentf256bfb3e26c32af12c82dbd32d4b3bcfba252f3 (diff)
Compositor: Add OIDN prefiltering option to Denoise node
It's equivalent to the OpenImageDenoise prefiltering option in Cycles. See D12043. Prefilter modes: - None: No prefiltering, use when guiding passes are noise-free. - Fast: Denoise image and guiding passes together. Improves quality when guiding passes are noisy using least amount of extra processing time. - Accurate: Prefilter noisy guiding passes before denoising image. Improves quality when guiding passes are noisy using extra processing time. Reviewed By: #compositing, jbakker, sergey Differential Revision: https://developer.blender.org/D12342
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_node_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index ee1da6be3f2..74ed22ecafd 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -1167,6 +1167,7 @@ typedef struct NodeCryptomatte {
typedef struct NodeDenoise {
char hdr;
+ char prefilter;
} NodeDenoise;
typedef struct NodeAttributeClamp {
@@ -1840,6 +1841,14 @@ typedef enum CMPNodeSetAlphaMode {
CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA = 1,
} CMPNodeSetAlphaMode;
+/* Denoise Node. */
+/* `NodeDenoise.prefilter` */
+typedef enum CMPNodeDenoisePrefilter {
+ CMP_NODE_DENOISE_PREFILTER_FAST = 0,
+ CMP_NODE_DENOISE_PREFILTER_NONE = 1,
+ CMP_NODE_DENOISE_PREFILTER_ACCURATE = 2
+} CMPNodeDenoisePrefilter;
+
#define CMP_NODE_PLANETRACKDEFORM_MBLUR_SAMPLES_MAX 64
/* Point Density shader node */