Commit: a92805bf24f52e1764a5f930bbe9e4e8fcc7e24d Author: Mikhail Matrosov Date: Tue Dec 7 18:48:41 2021 +0100 Branches: master https://developer.blender.org/rBa92805bf24f52e1764a5f930bbe9e4e8fcc7e24d
Fix T93418: Cycles shadow terminator Geometry Offset artifacts with translucency Differential Revision: https://developer.blender.org/D13468 =================================================================== M intern/cycles/kernel/light/sample.h =================================================================== diff --git a/intern/cycles/kernel/light/sample.h b/intern/cycles/kernel/light/sample.h index ff5d43ed8cd..83f6d733d3a 100644 --- a/intern/cycles/kernel/light/sample.h +++ b/intern/cycles/kernel/light/sample.h @@ -200,6 +200,9 @@ ccl_device_inline float3 shadow_ray_offset(KernelGlobals kg, if (offset_cutoff > 0.0f) { float NgL = dot(Ng, L); float offset_amount = 0.0f; + if (NL < 0) { + NL = -NL; + } if (NL < offset_cutoff) { offset_amount = clamp(2.0f - (NgL + NL) / offset_cutoff, 0.0f, 1.0f); } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
