Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_renderpasses.c
| Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| EEVEE_PassList *psl = vedata->psl; | EEVEE_PassList *psl = vedata->psl; | ||||
| EEVEE_TextureList *txl = vedata->txl; | EEVEE_TextureList *txl = vedata->txl; | ||||
| EEVEE_FramebufferList *fbl = vedata->fbl; | EEVEE_FramebufferList *fbl = vedata->fbl; | ||||
| EEVEE_StorageList *stl = vedata->stl; | EEVEE_StorageList *stl = vedata->stl; | ||||
| EEVEE_PrivateData *g_data = stl->g_data; | EEVEE_PrivateData *g_data = stl->g_data; | ||||
| EEVEE_EffectsInfo *effects = stl->effects; | EEVEE_EffectsInfo *effects = stl->effects; | ||||
| const int current_sample = effects->taa_current_sample; | /* Compensate for taa_current_sample being incremented after last drawing in | ||||
| * EEVEE_temporal_sampling_draw. */ | |||||
| const int current_sample = effects->taa_current_sample - 1; | |||||
| g_data->renderpass_current_sample = current_sample; | g_data->renderpass_current_sample = current_sample; | ||||
| 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; | ||||
| ▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines | |||||