Cycles: Fix missing indirect subsurface initialization in the bake code
This commit is contained in:
parent
c76fbf10e2
commit
299fae1838
@ -65,6 +65,7 @@ ccl_device void compute_light_pass(KernelGlobals *kg, ShaderData *sd, PathRadian
|
||||
if((is_combined || is_sss_sample) && (sd->flag & SD_BSSRDF)) {
|
||||
/* when mixing BSSRDF and BSDF closures we should skip BSDF lighting if scattering was successful */
|
||||
SubsurfaceIndirectRays ss_indirect;
|
||||
ss_indirect.num_rays = 0;
|
||||
if(kernel_path_subsurface_scatter(kg,
|
||||
sd,
|
||||
&L_sample,
|
||||
|
Loading…
Reference in New Issue
Block a user