Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_bake.h
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | else { | ||||
| if(is_combined || is_ao) { | if(is_combined || is_ao) { | ||||
| kernel_branched_path_ao(kg, sd, &L_sample, &state, &rng, throughput); | kernel_branched_path_ao(kg, sd, &L_sample, &state, &rng, throughput); | ||||
| } | } | ||||
| #ifdef __SUBSURFACE__ | #ifdef __SUBSURFACE__ | ||||
| /* sample subsurface scattering */ | /* sample subsurface scattering */ | ||||
| if((is_combined || is_sss_sample) && (sd->flag & SD_BSSRDF)) { | 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 */ | /* when mixing BSSRDF and BSDF closures we should skip BSDF lighting if scattering was successful */ | ||||
| kernel_branched_path_subsurface_scatter(kg, sd, &L_sample, &state, &rng, throughput); | kernel_branched_path_subsurface_scatter(kg, sd, &L_sample, &state, &rng, &ray, throughput); | ||||
| } | } | ||||
| #endif | #endif | ||||
| /* sample light and BSDF */ | /* sample light and BSDF */ | ||||
| if((!is_sss_sample) && (!is_ao)) { | if((!is_sss_sample) && (!is_ao)) { | ||||
| if(sd->flag & SD_EMISSION) { | if(sd->flag & SD_EMISSION) { | ||||
| float3 emission = indirect_primitive_emission(kg, sd, 0.0f, state.flag, state.ray_pdf); | float3 emission = indirect_primitive_emission(kg, sd, 0.0f, state.flag, state.ray_pdf); | ||||
| ▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines | |||||