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>2018-01-11 22:03:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-12 03:34:28 +0300
commit322f0223d04ac36ecc72cd01c371234da6de643c (patch)
treec1295dc50a4efd3e0a68d460267345fc5f673fba /intern/cycles/render/background.h
parentcce280dd6767bb4588a301f2b966d1b959b01f6b (diff)
Cycles: option to make background visible through glass transparent.
This can be enabled in the Film panel, with an option to control the transmisison roughness below which glass becomes transparent. Differential Revision: https://developer.blender.org/D2904
Diffstat (limited to 'intern/cycles/render/background.h')
-rw-r--r--intern/cycles/render/background.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/background.h b/intern/cycles/render/background.h
index db20b6ebf87..145c05f1c18 100644
--- a/intern/cycles/render/background.h
+++ b/intern/cycles/render/background.h
@@ -42,6 +42,9 @@ public:
Shader *shader;
bool transparent;
+ bool transparent_glass;
+ float transparent_roughness_threshold;
+
bool need_update;
Background();