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:
authorLukas Stockner <lukas.stockner@freenet.de>2016-05-27 19:46:21 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2016-05-27 22:42:43 +0300
commit2d0bfbd6f628cc80c777f81832f5011f419d870a (patch)
treed729708f66f8a8ca9a2517d67441602e164399e7 /source/blender/makesdna/DNA_scene_types.h
parente855dede3881106194cb8fdfdaced0dde0b4ac01 (diff)
Cycles Denoising: Add RenderLayer options
This commit adds the necessary parameters to the RenderLayer panel and syncs them to Cycles. It would be nicer to define the RNA properties from Cycles Python code like most other ones, but since that's not possible for RenderLayers, it has to be added in the DNA :/
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 39508e17be5..d7a949d6559 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -190,6 +190,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;
+ int pad;
+
int samples;
float pass_alpha_threshold;
@@ -213,6 +218,19 @@ typedef struct SceneRenderLayer {
#define SCE_LAY_ZMASK 0x40000
#define SCE_LAY_NEG_ZMASK 0x80000
+typedef enum SceneDenoiseFlag {
+ SCE_DENOISE_RESULT = (1 << 0),
+ SCE_DENOISE_PASSES = (1 << 1),
+ SCE_DENOISE_DIFFDIR = (1 << 2),
+ SCE_DENOISE_DIFFIND = (1 << 3),
+ SCE_DENOISE_GLOSSDIR = (1 << 4),
+ SCE_DENOISE_GLOSSIND = (1 << 5),
+ SCE_DENOISE_TRANSDIR = (1 << 6),
+ SCE_DENOISE_TRANSIND = (1 << 7),
+ SCE_DENOISE_SUBDIR = (1 << 8),
+ SCE_DENOISE_SUBIND = (1 << 9),
+} SceneDenoiseFlag;
+
/* srl->passflag */
typedef enum ScenePassType {
SCE_PASS_COMBINED = (1 << 0),