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:
authorBrecht Van Lommel <brecht@blender.org>2021-11-16 21:34:13 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-16 21:44:45 +0300
commit7293c1b3578e015a00e8b1e282baa62f51c5b4c4 (patch)
treea72d457bbd40f9286af8a046a388c447d0d65bce /intern/cycles/kernel/integrator/subsurface.h
parent1572c4d3d3317209bb846ca2d05cafeed06d1ead (diff)
Fix T93106: Cycles SSS not working with normals pointing inside
Diffstat (limited to 'intern/cycles/kernel/integrator/subsurface.h')
-rw-r--r--intern/cycles/kernel/integrator/subsurface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/kernel/integrator/subsurface.h b/intern/cycles/kernel/integrator/subsurface.h
index 9010318257f..59b0cd2596c 100644
--- a/intern/cycles/kernel/integrator/subsurface.h
+++ b/intern/cycles/kernel/integrator/subsurface.h
@@ -71,6 +71,10 @@ ccl_device int subsurface_bounce(KernelGlobals kg,
}
# endif
+ if (sd->flag & SD_BACKFACING) {
+ path_flag |= PATH_RAY_SUBSURFACE_BACKFACING;
+ }
+
INTEGRATOR_STATE_WRITE(state, path, throughput) *= weight;
INTEGRATOR_STATE_WRITE(state, path, flag) = path_flag;