Fix T50937: baking with OpenCL and CPU have slightly different brightness
OpenCL baking with SSS and Volume are not supported.
This commit is contained in:
parent
24676b535a
commit
40e6f65ea1
Notes:
blender-bot
2023-02-14 07:08:28 +01:00
Referenced by issue #50937, baking with OpenCL and CPU have slightly different brightness
|
@ -407,7 +407,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
|
|||
}
|
||||
#endif /* __SUBSURFACE__ */
|
||||
|
||||
#if defined(__EMISSION__) && defined(__BRANCHED_PATH__)
|
||||
#if defined(__EMISSION__)
|
||||
if(kernel_data.integrator.use_direct_light) {
|
||||
int all = (kernel_data.integrator.sample_all_lights_indirect) ||
|
||||
(state->flag & PATH_RAY_SHADOW_CATCHER);
|
||||
|
@ -421,7 +421,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
|
|||
L,
|
||||
all);
|
||||
}
|
||||
#endif /* defined(__EMISSION__) && defined(__BRANCHED_PATH__) */
|
||||
#endif /* defined(__EMISSION__) */
|
||||
|
||||
if(!kernel_path_surface_bounce(kg, rng, sd, &throughput, state, L, ray))
|
||||
break;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
#if defined(__BRANCHED_PATH__) || defined(__SUBSURFACE__) || defined(__SHADOW_TRICKS__)
|
||||
#if defined(__BRANCHED_PATH__) || defined(__SUBSURFACE__) || defined(__SHADOW_TRICKS__) || defined(__BAKING__)
|
||||
/* branched path tracing: connect path directly to position on one or more lights and add it to L */
|
||||
ccl_device_noinline void kernel_branched_path_surface_connect_light(
|
||||
KernelGlobals *kg,
|
||||
|
|
Loading…
Reference in New Issue