Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/shade_background.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if (!shader_constant_emission_eval(kg, shader, &L)) { | ||||
| shader_setup_from_background(kg, | shader_setup_from_background(kg, | ||||
| emission_sd, | emission_sd, | ||||
| INTEGRATOR_STATE(state, ray, P), | INTEGRATOR_STATE(state, ray, P), | ||||
| INTEGRATOR_STATE(state, ray, D), | INTEGRATOR_STATE(state, ray, D), | ||||
| INTEGRATOR_STATE(state, ray, time)); | INTEGRATOR_STATE(state, ray, time)); | ||||
| PROFILING_SHADER(emission_sd->object, emission_sd->shader); | PROFILING_SHADER(emission_sd->object, emission_sd->shader); | ||||
| PROFILING_EVENT(PROFILING_SHADE_LIGHT_EVAL); | PROFILING_EVENT(PROFILING_SHADE_LIGHT_EVAL); | ||||
| shader_eval_surface<KERNEL_FEATURE_NODE_MASK_SURFACE_LIGHT>( | shader_eval_surface<KERNEL_FEATURE_NODE_MASK_SURFACE_BACKGROUND>( | ||||
| kg, state, emission_sd, render_buffer, path_flag | PATH_RAY_EMISSION); | kg, state, emission_sd, render_buffer, path_flag | PATH_RAY_EMISSION); | ||||
| L = shader_background_eval(emission_sd); | L = shader_background_eval(emission_sd); | ||||
| } | } | ||||
| /* Background MIS weights. */ | /* Background MIS weights. */ | ||||
| # ifdef __BACKGROUND_MIS__ | # ifdef __BACKGROUND_MIS__ | ||||
| /* Check if background light exists or if we should skip pdf. */ | /* Check if background light exists or if we should skip pdf. */ | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||