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
path: root/source
diff options
context:
space:
mode:
authorLukas Stockner <lukas.stockner@freenet.de>2017-04-13 01:00:22 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2017-04-13 05:52:32 +0300
commit2eea3d1d29995aa7134a6002ada05806f822ee09 (patch)
treef934a94af7b1c82cbe2a748dc137b26fe18a6435 /source
parent199f8e9018a6baee89f3a43884dabed3edf6a116 (diff)
Cycles Denoising: Add back the feature strength option
Note: The control is now different, reusing old values might give surprising results
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h4
-rw-r--r--source/blender/makesrna/intern/rna_scene.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index c3e78993d15..47df1f9fbde 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -230,11 +230,11 @@ typedef struct SceneRenderLayer {
int denoising_flag;
int denoising_radius;
float denoising_weighting;
+ float denoising_feature_strength;
int samples;
float pass_alpha_threshold;
-
- int pad;
+
struct FreestyleConfig freestyleConfig;
} SceneRenderLayer;
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index a14db6c122a..b281a19958f 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -5141,6 +5141,12 @@ static void rna_def_scene_render_layer(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Denoising Strength Adjust", "Controls neighbor pixel weighting for the denoising filter (lower values preserve more detail, but aren't as smooth)");
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
+ prop = RNA_def_property(srna, "denoising_feature_strength", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_float_sdna(prop, NULL, "denoising_feature_strength");
+ RNA_def_property_range(prop, -4.0f, 4.0f);
+ RNA_def_property_ui_text(prop, "Denoising Feature Strength Adjust", "Controls removal of noisy image feature passes (lower values preserve more detail, but aren't as smooth)");
+ RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
+
prop = RNA_def_property(srna, "denoising_radius", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "denoising_radius");
RNA_def_property_range(prop, 1, 50);