Blender
V3.3
|
#include "DRW_engine.h"
#include "DRW_render.h"
#include "DNA_world_types.h"
#include "BLI_string_utils.h"
#include "eevee_private.h"
Go to the source code of this file.
Functions | |
void | EEVEE_mist_output_init (EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) |
void | EEVEE_mist_output_accumulate (EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *vedata) |
Implementation of Blender Mist pass. IMPORTANT: This is a "post process" of the Z depth so it will lack any transparent objects.
Definition in file eevee_mist.c.
void EEVEE_mist_output_accumulate | ( | EEVEE_ViewLayerData * | UNUSEDsldata, |
EEVEE_Data * | vedata | ||
) |
Definition at line 78 of file eevee_mist.c.
References clear(), DRW_draw_pass(), EEVEE_StorageList::effects, EEVEE_Data::fbl, GPU_framebuffer_bind(), EEVEE_FramebufferList::main_fb, EEVEE_FramebufferList::mist_accum_fb, EEVEE_PassList::mist_accum_ps, NULL, EEVEE_Data::psl, EEVEE_Data::stl, and EEVEE_EffectsInfo::taa_current_sample.
Referenced by EEVEE_renderpasses_output_accumulate().
void EEVEE_mist_output_init | ( | EEVEE_ViewLayerData * | sldata, |
EEVEE_Data * | vedata | ||
) |
Definition at line 20 of file eevee_mist.c.
References EEVEE_ViewLayerData::combined, EEVEE_ViewLayerData::common_ubo, DefaultTextureList::depth, DRW_cache_fullscreen_quad_get(), DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture_ref(), DRW_shgroup_uniform_vec3(), DRW_STATE_BLEND_ADD, DRW_STATE_WRITE_COLOR, DRW_texture_ensure_fullscreen_2d(), DRW_view_far_distance_get(), DRW_view_near_distance_get(), DRW_viewport_texture_list_get(), EEVEE_shaders_effect_mist_sh_get(), fabsf, EEVEE_Data::fbl, EEVEE_StorageList::g_data, g_data, GPU_R32F, EEVEE_TextureList::mist_accum, EEVEE_FramebufferList::mist_accum_fb, EEVEE_PassList::mist_accum_ps, World::mistdist, World::miststa, World::mistype, NULL, EEVEE_Data::psl, EEVEE_ViewLayerData::renderpass_ubo, scene, DRWContextState::scene, EEVEE_Data::stl, EEVEE_Data::txl, WO_MIST_INVERSE_QUADRATIC, WO_MIST_LINEAR, WO_MIST_QUADRATIC, and Scene::world.
Referenced by EEVEE_renderpasses_output_init().