Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/shade_volume.h
| Show First 20 Lines • Show All 656 Lines • ▼ Show 20 Lines | # endif | ||||
| /* Stop if at the end of the volume. */ | /* Stop if at the end of the volume. */ | ||||
| vstate.tmin = vstate.tmax; | vstate.tmin = vstate.tmax; | ||||
| if (vstate.tmin == ray->tmax) { | if (vstate.tmin == ray->tmax) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| if (result.direct_scatter && result.indirect_scatter) { | |||||
| path_automata_emit_volume_scatter_event(kg, state, -1); | |||||
| } | |||||
| if (sd->flag & SD_EMISSION) { | |||||
| path_automata_emit_emissive_object_event(kg, state, -1); | |||||
| } | |||||
| /* Write accumulated emission. */ | /* Write accumulated emission. */ | ||||
| if (!is_zero(accum_emission)) { | if (!is_zero(accum_emission)) { | ||||
| film_write_volume_emission( | film_write_volume_emission( | ||||
| kg, state, accum_emission, render_buffer, object_lightgroup(kg, sd->object)); | kg, state, accum_emission, render_buffer, object_lightgroup(kg, sd->object)); | ||||
| } | } | ||||
| # ifdef __DENOISING_FEATURES__ | # ifdef __DENOISING_FEATURES__ | ||||
| /* Write denoising features. */ | /* Write denoising features. */ | ||||
| ▲ Show 20 Lines • Show All 380 Lines • Show Last 20 Lines | |||||