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:
authorStefan Werner <stefan.werner@tangent-animation.com>2020-05-05 14:55:24 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2020-06-02 08:27:14 +0300
commitc7280ce65b856d26d6807c1b7a081ffc6311bfdc (patch)
treef1dc9453d24b0352cc87cf45bf7b5848da86d6d4 /intern/cycles/render/object.h
parent18cda8be8768b1e4ad9c359295142272e7aac6bf (diff)
Cycles: Added shadow terminator offset parameter.
A new user parameter can be used to shift the shadow terminator towards the light source. With it, one can hide some of the artifacts that appear on coarse meshes with smooth shading. Note that this technique is not engery conserving. This is based on the work by the Appleseed renderer team. Differential Revision: https://developer.blender.org/D7634
Diffstat (limited to 'intern/cycles/render/object.h')
-rw-r--r--intern/cycles/render/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h
index 7c84c2de4fb..ac9b4c331f5 100644
--- a/intern/cycles/render/object.h
+++ b/intern/cycles/render/object.h
@@ -59,6 +59,7 @@ class Object : public Node {
bool hide_on_missing_motion;
bool use_holdout;
bool is_shadow_catcher;
+ float shadow_terminator_offset;
float3 dupli_generated;
float2 dupli_uv;