From cf96136ec6cf9ec9753a2ea568d3f233b5152e4d Mon Sep 17 00:00:00 2001 From: Alaska Date: Mon, 15 Jul 2024 16:23:45 +0200 Subject: [PATCH] Fix #124705: Incorrect SSS method used in OptiX OSL Update the string hashs in SSS OSL closure setup so they match the strings being used by the SSS node. This fixes two issues in OptiX OSL: - SSS Random Walk would render as Random Walk Skin. - Random Walk Skin wouldn't render at all. Pull Request: https://projects.blender.org/blender/blender/pulls/124707 --- intern/cycles/kernel/osl/closures_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/kernel/osl/closures_setup.h b/intern/cycles/kernel/osl/closures_setup.h index cf072f7c7bd..ed173533a84 100644 --- a/intern/cycles/kernel/osl/closures_setup.h +++ b/intern/cycles/kernel/osl/closures_setup.h @@ -880,10 +880,10 @@ ccl_device void osl_closure_bssrdf_setup(KernelGlobals kg, if (closure->method == make_string("burley", 186330084368958868ull)) { type = CLOSURE_BSSRDF_BURLEY_ID; } - else if (closure->method == make_string("random_walk", 5695810351010063150ull)) { + else if (closure->method == make_string("random_walk", 11360609267673527222ull)) { type = CLOSURE_BSSRDF_RANDOM_WALK_ID; } - else if (closure->method == make_string("random_walk_skin", 11360609267673527222ull)) { + else if (closure->method == make_string("random_walk_skin", 3096325052680726300ull)) { type = CLOSURE_BSSRDF_RANDOM_WALK_SKIN_ID; } else {