From 87cff57207ca05602794e5dd1d7f08cd7818fbb6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 25 Mar 2015 02:30:43 +0500 Subject: Fix T44123: Cycles SSS renders black in recent builds Issue was introduced in 01ee21f where i didn't notice *_setup() function only doing partial initialization, and some of parameters are expected to be initialized by callee function. This was hitting only some setups, so tests with benchmark scenes didn't unleash issues. Now it should all be fine. This is to go to the 2.74 branch and we actually might re-AHOY. --- intern/cycles/kernel/closure/volume.h | 1 - 1 file changed, 1 deletion(-) (limited to 'intern/cycles/kernel/closure/volume.h') diff --git a/intern/cycles/kernel/closure/volume.h b/intern/cycles/kernel/closure/volume.h index 4143980f2cd..439610546e5 100644 --- a/intern/cycles/kernel/closure/volume.h +++ b/intern/cycles/kernel/closure/volume.h @@ -35,7 +35,6 @@ ccl_device int volume_henyey_greenstein_setup(ShaderClosure *sc) /* clamp anisotropy to avoid delta function */ sc->data0 = signf(sc->data0) * min(fabsf(sc->data0), 1.0f - 1e-3f); - sc->data1 = 0.0f; return SD_SCATTER; } -- cgit v1.2.3