diff options
Diffstat (limited to 'intern/cycles/kernel/integrator/subsurface.h')
-rw-r--r-- | intern/cycles/kernel/integrator/subsurface.h | 4 |
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; |