Fix #32205: Holdout shader + transparent background stays black with Alpha = 1
[blender.git] / intern / cycles / kernel / kernel_path.h
index 98ab9169c21351a4602db1dabab1fe5556446ab9..f5188345948de24bf972a01173c1c252fa1ef118 100644 (file)
@@ -288,7 +288,7 @@ __device float4 kernel_path_progressive(KernelGlobals *kg, RNG *rng, int sample,
                                if(sd.flag & SD_HOLDOUT_MASK)
                                        holdout_weight = make_float3(1.0f, 1.0f, 1.0f);
                                else
-                                       shader_holdout_eval(kg, &sd);
+                                       holdout_weight = shader_holdout_eval(kg, &sd);
 
                                /* any throughput is ok, should all be identical here */
                                L_transparent += average(holdout_weight*throughput);
@@ -655,7 +655,7 @@ __device float4 kernel_path_non_progressive(KernelGlobals *kg, RNG *rng, int sam
                                if(sd.flag & SD_HOLDOUT_MASK)
                                        holdout_weight = make_float3(1.0f, 1.0f, 1.0f);
                                else
-                                       shader_holdout_eval(kg, &sd);
+                                       holdout_weight = shader_holdout_eval(kg, &sd);
 
                                /* any throughput is ok, should all be identical here */
                                L_transparent += average(holdout_weight*throughput);