diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2020-05-05 14:55:24 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2020-06-02 08:27:14 +0300 |
commit | c7280ce65b856d26d6807c1b7a081ffc6311bfdc (patch) | |
tree | f1dc9453d24b0352cc87cf45bf7b5848da86d6d4 /intern/cycles/kernel/kernel_types.h | |
parent | 18cda8be8768b1e4ad9c359295142272e7aac6bf (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/kernel/kernel_types.h')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index 304835a1685..630d00a4e71 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -1480,6 +1480,9 @@ typedef struct KernelObject { float cryptomatte_object; float cryptomatte_asset; + + float shadow_terminator_offset; + float pad1, pad2, pad3; } KernelObject; static_assert_align(KernelObject, 16); |