|
Blender V5.3
|
#include <eevee_pipeline.hh>
Public Member Functions | |
| ForwardPipeline (Instance &inst) | |
Forward Pass | |
Handles alpha blended surfaces and NPR materials (using Closure to RGBA). | |
| void | sync () |
| void | end_sync () |
| PassMain::Sub * | prepass_opaque_add (blender::Material *blender_mat, GPUMaterial *gpumat, bool has_motion) |
| PassMain::Sub * | material_opaque_add (const Object *ob, blender::Material *blender_mat, GPUMaterial *gpumat) |
| void | transparent_add (const Object *ob, const float3 &ob_location, blender::Material *blender_mat, GPUMaterial *gpumat, PassMain::Sub *&r_prepass_subpass, PassMain::Sub *&r_material_subpass) |
| bool | use_colored_transparency () const |
| void | render (View &view, gpu::Texture *depth_tx, Framebuffer &prepass_fb, Framebuffer &transparent_fb, Framebuffer &combined_fb, int2 extent) |
Definition at line 199 of file eevee_pipeline.hh.
|
inline |
Definition at line 242 of file eevee_pipeline.hh.
| void blender::eevee::ForwardPipeline::end_sync | ( | ) |
Definition at line 488 of file eevee_pipeline.cc.
References use_colored_transparency().
Referenced by blender::eevee::PipelineModule::end_sync().
| PassMain::Sub * blender::eevee::ForwardPipeline::material_opaque_add | ( | const Object * | ob, |
| blender::Material * | blender_mat, | ||
| GPUMaterial * | gpumat ) |
Definition at line 510 of file eevee_pipeline.cc.
References blender::Object::base_flag, blender::BASE_HOLDOUT, BLI_assert_msg, blender::GPU_material_flag_get(), blender::GPU_material_get_name(), blender::GPU_MATFLAG_HOLDOUT, blender::GPU_MATFLAG_TRANSPARENT, blender::OB_HOLDOUT, blender::draw::detail::PassBase< DrawCommandBufType >::sub(), and blender::Object::visibility_flag.
Referenced by blender::eevee::PipelineModule::material_add().
| PassMain::Sub * blender::eevee::ForwardPipeline::prepass_opaque_add | ( | blender::Material * | blender_mat, |
| GPUMaterial * | gpumat, | ||
| bool | has_motion ) |
Definition at line 494 of file eevee_pipeline.cc.
References BLI_assert_msg, blender::GPU_material_flag_get(), and blender::GPU_MATFLAG_TRANSPARENT.
Referenced by blender::eevee::PipelineModule::material_add().
| void blender::eevee::ForwardPipeline::render | ( | View & | view, |
| gpu::Texture * | depth_tx, | ||
| Framebuffer & | prepass_fb, | ||
| Framebuffer & | transparent_fb, | ||
| Framebuffer & | combined_fb, | ||
| int2 | extent ) |
| void blender::eevee::ForwardPipeline::sync | ( | ) |
Definition at line 402 of file eevee_pipeline.cc.
References blender::draw::detail::PassBase< DrawCommandBufType >::bind_resources(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), blender::DRW_STATE_BLEND_CUSTOM, blender::DRW_STATE_CLIP_CONTROL_UNIT_RANGE, blender::DRW_STATE_CULL_BACK, blender::DRW_STATE_DEPTH_EQUAL, blender::DRW_STATE_WRITE_COLOR, FLT_MAX, blender::GPU_PRIM_TRIS, blender::gpu::Shader::init(), OBJECT_ID_TEX_SLOT, PREPASS_NORMAL_TEX_SLOT, RAYCAST_DEPTH_TEX_SLOT, RBUFS_UTILITY_TEX_SLOT, state, blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), blender::draw::detail::PassBase< DrawCommandBufType >::sub(), and blender::eevee::TRANSPARENCY_RESOLVE.
Referenced by blender::eevee::PipelineModule::begin_sync().
| void blender::eevee::ForwardPipeline::transparent_add | ( | const Object * | ob, |
| const float3 & | ob_location, | ||
| blender::Material * | blender_mat, | ||
| GPUMaterial * | gpumat, | ||
| PassMain::Sub *& | r_prepass_subpass, | ||
| PassMain::Sub *& | r_material_subpass ) |
Definition at line 524 of file eevee_pipeline.cc.
References blender::Object::base_flag, blender::BASE_HOLDOUT, blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), blender::math::dot(), blender::DRW_STATE_BLEND_TRANSPARENCY, blender::DRW_STATE_CLIP_CONTROL_UNIT_RANGE, blender::DRW_STATE_CULL_BACK, blender::DRW_STATE_WRITE_COLOR, blender::DRW_STATE_WRITE_DEPTH, blender::GPU_material_flag_get(), blender::GPU_material_get_name(), blender::GPU_MATFLAG_HOLDOUT, blender::GPU_MATFLAG_RAYCAST, blender::GPU_MATFLAG_TRANSPARENT, blender::GPU_MATFLAG_TRANSPARENT_MAYBE_COLORED, HIZ_PREVIOUS_LAYER_TEX_SLOT, blender::MA_BL_CULL_BACKFACE, blender::MA_BL_HIDE_BACKFACE, blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), blender::OB_HOLDOUT, OBJECT_ID_TEX_SLOT, PREPASS_NORMAL_TEX_SLOT, RADIANCE_PREVIOUS_LAYER_TEX_SLOT, RAYCAST_DEPTH_TEX_SLOT, blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), and blender::Object::visibility_flag.
| bool blender::eevee::ForwardPipeline::use_colored_transparency | ( | ) | const |
Definition at line 623 of file eevee_pipeline.cc.
Referenced by end_sync(), and render().