[Bf-blender-cvs] [63178bde55f] cycles-x: Fix broken GPU subsurface scattering

Brecht Van Lommel noreply at git.blender.org
Wed Jun 2 15:43:57 CEST 2021


Commit: 63178bde55f1bec58cbd41e1f0ffd3d9dbd62f50
Author: Brecht Van Lommel
Date:   Wed Jun 2 15:38:42 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB63178bde55f1bec58cbd41e1f0ffd3d9dbd62f50

Fix broken GPU subsurface scattering

===================================================================

M	intern/cycles/kernel/integrator/integrator_subsurface.h

===================================================================

diff --git a/intern/cycles/kernel/integrator/integrator_subsurface.h b/intern/cycles/kernel/integrator/integrator_subsurface.h
index 11f0b940214..47ffe51dcce 100644
--- a/intern/cycles/kernel/integrator/integrator_subsurface.h
+++ b/intern/cycles/kernel/integrator/integrator_subsurface.h
@@ -532,7 +532,7 @@ ccl_device_inline bool subsurface_random_walk(INTEGRATOR_STATE_ARGS)
 
   const int shader = intersection_get_shader(kg, &ss_isect.hits[0]);
   const int next_kernel = DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE;
-  INTEGRATOR_PATH_NEXT_SORTED(DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST, next_kernel, shader);
+  INTEGRATOR_PATH_NEXT_SORTED(DEVICE_KERNEL_INTEGRATOR_INTERSECT_SUBSURFACE, next_kernel, shader);
 
   return true;
 }



More information about the Bf-blender-cvs mailing list