Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/shade_surface.h
| Show First 20 Lines • Show All 486 Lines • ▼ Show 20 Lines | if (!(path_flag & PATH_RAY_SUBSURFACE)) { | ||||
| INTEGRATOR_STATE_WRITE(state, path, throughput) /= probability; | INTEGRATOR_STATE_WRITE(state, path, throughput) /= probability; | ||||
| } | } | ||||
| } | } | ||||
| #ifdef __DENOISING_FEATURES__ | #ifdef __DENOISING_FEATURES__ | ||||
| kernel_write_denoising_features_surface(kg, state, &sd, render_buffer); | kernel_write_denoising_features_surface(kg, state, &sd, render_buffer); | ||||
| #endif | #endif | ||||
| #ifdef __SHADOW_CATCHER__ | |||||
| kernel_write_shadow_catcher_bounce_data(kg, state, &sd, render_buffer); | |||||
| #endif | |||||
| /* Direct light. */ | /* Direct light. */ | ||||
| PROFILING_EVENT(PROFILING_SHADE_SURFACE_DIRECT_LIGHT); | PROFILING_EVENT(PROFILING_SHADE_SURFACE_DIRECT_LIGHT); | ||||
| integrate_surface_direct_light(kg, state, &sd, &rng_state); | integrate_surface_direct_light(kg, state, &sd, &rng_state); | ||||
| #if defined(__AO__) | #if defined(__AO__) | ||||
| /* Ambient occlusion pass. */ | /* Ambient occlusion pass. */ | ||||
| if (kernel_data.kernel_features & KERNEL_FEATURE_AO) { | if (kernel_data.kernel_features & KERNEL_FEATURE_AO) { | ||||
| PROFILING_EVENT(PROFILING_SHADE_SURFACE_AO); | PROFILING_EVENT(PROFILING_SHADE_SURFACE_AO); | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||