Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/shade_volume.h
| Show First 20 Lines • Show All 832 Lines • ▼ Show 20 Lines | # endif | ||||
| INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 0, prim) = ray.self.prim; | INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 0, prim) = ray.self.prim; | ||||
| INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 1, object) = ray.self.light_object; | INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 1, object) = ray.self.light_object; | ||||
| INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 1, prim) = ray.self.light_prim; | INTEGRATOR_STATE_ARRAY_WRITE(shadow_state, shadow_isect, 1, prim) = ray.self.light_prim; | ||||
| /* Copy state from main path to shadow path. */ | /* Copy state from main path to shadow path. */ | ||||
| const uint16_t bounce = INTEGRATOR_STATE(state, path, bounce); | const uint16_t bounce = INTEGRATOR_STATE(state, path, bounce); | ||||
| const uint16_t transparent_bounce = INTEGRATOR_STATE(state, path, transparent_bounce); | const uint16_t transparent_bounce = INTEGRATOR_STATE(state, path, transparent_bounce); | ||||
| uint32_t shadow_flag = INTEGRATOR_STATE(state, path, flag); | uint32_t shadow_flag = INTEGRATOR_STATE(state, path, flag); | ||||
| shadow_flag |= (is_light) ? PATH_RAY_SHADOW_FOR_LIGHT : 0; | |||||
| const Spectrum throughput_phase = throughput * bsdf_eval_sum(&phase_eval); | const Spectrum throughput_phase = throughput * bsdf_eval_sum(&phase_eval); | ||||
| if (kernel_data.kernel_features & KERNEL_FEATURE_LIGHT_PASSES) { | if (kernel_data.kernel_features & KERNEL_FEATURE_LIGHT_PASSES) { | ||||
| PackedSpectrum pass_diffuse_weight; | PackedSpectrum pass_diffuse_weight; | ||||
| PackedSpectrum pass_glossy_weight; | PackedSpectrum pass_glossy_weight; | ||||
| if (shadow_flag & PATH_RAY_ANY_PASS) { | if (shadow_flag & PATH_RAY_ANY_PASS) { | ||||
| /* Indirect bounce, use weights from earlier surface or volume bounce. */ | /* Indirect bounce, use weights from earlier surface or volume bounce. */ | ||||
| ▲ Show 20 Lines • Show All 371 Lines • Show Last 20 Lines | |||||