Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_renderpasses.c
| Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | void EEVEE_renderpasses_postprocess(EEVEE_ViewLayerData *UNUSED(sldata), | ||||
| g_data->renderpass_type = renderpass_type; | g_data->renderpass_type = renderpass_type; | ||||
| g_data->renderpass_postprocess = PASS_POST_UNDEFINED; | g_data->renderpass_postprocess = PASS_POST_UNDEFINED; | ||||
| const bool volumetric_active = eevee_renderpasses_volumetric_active(effects, g_data); | const bool volumetric_active = eevee_renderpasses_volumetric_active(effects, g_data); | ||||
| eRenderPassPostProcessType default_color_pass_type = | eRenderPassPostProcessType default_color_pass_type = | ||||
| volumetric_active ? PASS_POST_ACCUMULATED_TRANSMITTANCE_COLOR : PASS_POST_ACCUMULATED_COLOR; | volumetric_active ? PASS_POST_ACCUMULATED_TRANSMITTANCE_COLOR : PASS_POST_ACCUMULATED_COLOR; | ||||
| g_data->renderpass_transmittance_input = volumetric_active ? txl->volume_transmittance_accum : | g_data->renderpass_transmittance_input = volumetric_active ? txl->volume_transmittance_accum : | ||||
| txl->color; | txl->color; | ||||
| printf("renderpass_current_sample %d\n", g_data->renderpass_current_sample); | |||||
| if (!volumetric_active && renderpass_type == EEVEE_RENDER_PASS_VOLUME_LIGHT) { | if (!volumetric_active && renderpass_type == EEVEE_RENDER_PASS_VOLUME_LIGHT) { | ||||
| /* Early exit: Volumetric effect is off, but the volume light pass was requested. */ | /* Early exit: Volumetric effect is off, but the volume light pass was requested. */ | ||||
| static float clear_col[4] = {0.0f}; | static float clear_col[4] = {0.0f}; | ||||
| GPU_framebuffer_bind(fbl->renderpass_fb); | GPU_framebuffer_bind(fbl->renderpass_fb); | ||||
| GPU_framebuffer_clear_color(fbl->renderpass_fb, clear_col); | GPU_framebuffer_clear_color(fbl->renderpass_fb, clear_col); | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines | |||||