Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_accumulate.h
| Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | #ifdef __PASSES__ | ||||
| /* Denoising albedo. */ | /* Denoising albedo. */ | ||||
| # ifdef __DENOISING_FEATURES__ | # ifdef __DENOISING_FEATURES__ | ||||
| if (path_flag & PATH_RAY_DENOISING_FEATURES) { | if (path_flag & PATH_RAY_DENOISING_FEATURES) { | ||||
| if (kernel_data.film.pass_denoising_albedo != PASS_UNUSED) { | if (kernel_data.film.pass_denoising_albedo != PASS_UNUSED) { | ||||
| const float3 denoising_feature_throughput = INTEGRATOR_STATE(path, | const float3 denoising_feature_throughput = INTEGRATOR_STATE(path, | ||||
| denoising_feature_throughput); | denoising_feature_throughput); | ||||
| const float3 denoising_albedo = denoising_feature_throughput * contribution; | const float3 denoising_albedo = denoising_feature_throughput * contribution; | ||||
| kernel_write_pass_float3_unaligned(buffer + kernel_data.film.pass_denoising_albedo, | kernel_write_pass_float3(buffer + kernel_data.film.pass_denoising_albedo, denoising_albedo); | ||||
| denoising_albedo); | |||||
| } | } | ||||
| } | } | ||||
| # endif /* __DENOISING_FEATURES__ */ | # endif /* __DENOISING_FEATURES__ */ | ||||
| if (!(path_flag & PATH_RAY_ANY_PASS)) { | if (!(path_flag & PATH_RAY_ANY_PASS)) { | ||||
| /* Directly visible, write to emission or background pass. */ | /* Directly visible, write to emission or background pass. */ | ||||
| pass_offset = pass; | pass_offset = pass; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines | |||||