Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/shade_volume.h
| Show First 20 Lines • Show All 967 Lines • ▼ Show 20 Lines | # endif | ||||
| if (kernel_data.kernel_features & KERNEL_FEATURE_LIGHT_PASSES) { | if (kernel_data.kernel_features & KERNEL_FEATURE_LIGHT_PASSES) { | ||||
| INTEGRATOR_STATE_WRITE(state, path, pass_diffuse_weight) = one_spectrum(); | INTEGRATOR_STATE_WRITE(state, path, pass_diffuse_weight) = one_spectrum(); | ||||
| INTEGRATOR_STATE_WRITE(state, path, pass_glossy_weight) = zero_spectrum(); | INTEGRATOR_STATE_WRITE(state, path, pass_glossy_weight) = zero_spectrum(); | ||||
| } | } | ||||
| /* Update path state */ | /* Update path state */ | ||||
| INTEGRATOR_STATE_WRITE(state, path, mis_ray_pdf) = phase_pdf; | INTEGRATOR_STATE_WRITE(state, path, mis_ray_pdf) = phase_pdf; | ||||
| INTEGRATOR_STATE_WRITE(state, path, mis_origin_n) = zero_float3(); | |||||
| INTEGRATOR_STATE_WRITE(state, path, min_ray_pdf) = fminf( | INTEGRATOR_STATE_WRITE(state, path, min_ray_pdf) = fminf( | ||||
| unguided_phase_pdf, INTEGRATOR_STATE(state, path, min_ray_pdf)); | unguided_phase_pdf, INTEGRATOR_STATE(state, path, min_ray_pdf)); | ||||
| path_state_next(kg, state, label, sd->flag); | path_state_next(kg, state, label, sd->flag); | ||||
| return true; | return true; | ||||
| } | } | ||||
| /* get the volume attenuation and emission over line segment defined by | /* get the volume attenuation and emission over line segment defined by | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||