|
Blender V5.3
|
#include <eevee_pipeline.hh>
Public Member Functions | |
| VolumeLayer (Instance &inst) | |
Volume Layer | |
| PassMain::Sub * | occupancy_add (const Object *ob, const blender::Material *blender_mat, GPUMaterial *gpumat) |
| PassMain::Sub * | material_add (const Object *ob, const blender::Material *blender_mat, GPUMaterial *gpumat) |
| bool | bounds_overlaps (const VolumeObjectBounds &object_bounds) const |
| void | add_object_bound (const VolumeObjectBounds &object_bounds) |
| void | sync () |
| void | render (View &view, Texture &occupancy_tx) |
Public Attributes | |
| bool | use_hit_list = false |
| bool | is_empty = true |
| bool | finalized = false |
| bool | has_scatter = false |
| bool | has_absorption = false |
A volume layer contains a list of non-overlapping volume objects.
Definition at line 541 of file eevee_pipeline.hh.
|
inline |
Definition at line 562 of file eevee_pipeline.hh.
References sync().
| void blender::eevee::VolumeLayer::add_object_bound | ( | const VolumeObjectBounds & | object_bounds | ) |
Definition at line 1383 of file eevee_pipeline.cc.
References blender::bounds::merge(), and blender::eevee::VolumeObjectBounds::screen_bounds.
| bool blender::eevee::VolumeLayer::bounds_overlaps | ( | const VolumeObjectBounds & | object_bounds | ) | const |
Definition at line 1368 of file eevee_pipeline.cc.
References blender::bounds::intersect(), and blender::eevee::VolumeObjectBounds::screen_bounds.
| PassMain::Sub * blender::eevee::VolumeLayer::material_add | ( | const Object * | ob, |
| const blender::Material * | blender_mat, | ||
| GPUMaterial * | gpumat ) |
Definition at line 1349 of file eevee_pipeline.cc.
References BLI_assert_msg, blender::GPU_material_flag_get(), blender::GPU_material_get_name(), blender::GPU_material_has_volume_output(), blender::GPU_MATFLAG_VOLUME_ABSORPTION, blender::GPU_MATFLAG_VOLUME_SCATTER, has_absorption, has_scatter, blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), blender::OB_VOLUME, blender::draw::detail::PassBase< DrawCommandBufType >::sub(), blender::Object::type, and UNUSED_VARS_NDEBUG.
| PassMain::Sub * blender::eevee::VolumeLayer::occupancy_add | ( | const Object * | ob, |
| const blender::Material * | blender_mat, | ||
| GPUMaterial * | gpumat ) |
Definition at line 1332 of file eevee_pipeline.cc.
References BLI_assert_msg, blender::GPU_material_get_name(), blender::GPU_material_has_volume_output(), is_empty, blender::MA_VOLUME_ISECT_FAST, blender::draw::detail::PassBase< DrawCommandBufType >::material_set(), blender::OB_VOLUME, blender::draw::detail::PassBase< DrawCommandBufType >::push_constant(), blender::draw::detail::PassBase< DrawCommandBufType >::sub(), blender::Object::type, and use_hit_list.
Definition at line 1389 of file eevee_pipeline.cc.
References blender::draw::Texture::clear(), finalized, blender::GPU_BARRIER_SHADER_IMAGE_ACCESS, blender::GPU_PRIM_TRIS, is_empty, use_hit_list, and blender::eevee::VOLUME_OCCUPANCY_CONVERT.
| void blender::eevee::VolumeLayer::sync | ( | ) |
Definition at line 1296 of file eevee_pipeline.cc.
References blender::draw::detail::PassBase< DrawCommandBufType >::barrier(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_resources(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_stencil(), blender::DRW_STATE_STENCIL_NEQUAL, blender::DRW_STATE_WRITE_DEPTH, blender::DRW_STATE_WRITE_STENCIL, finalized, blender::GPU_BARRIER_SHADER_IMAGE_ACCESS, has_absorption, has_scatter, blender::draw::detail::Pass< DrawCommandBufType >::init(), is_empty, RBUFS_UTILITY_TEX_SLOT, blender::draw::detail::PassBase< DrawCommandBufType >::state_set(), blender::draw::detail::PassBase< DrawCommandBufType >::state_stencil(), blender::draw::detail::PassBase< DrawCommandBufType >::sub(), and use_hit_list.
Referenced by VolumeLayer().
| bool blender::eevee::VolumeLayer::finalized = false |
Definition at line 545 of file eevee_pipeline.hh.
| bool blender::eevee::VolumeLayer::has_absorption = false |
Definition at line 547 of file eevee_pipeline.hh.
Referenced by material_add(), and sync().
| bool blender::eevee::VolumeLayer::has_scatter = false |
Definition at line 546 of file eevee_pipeline.hh.
Referenced by material_add(), and sync().
| bool blender::eevee::VolumeLayer::is_empty = true |
Definition at line 544 of file eevee_pipeline.hh.
Referenced by occupancy_add(), render(), and sync().
| bool blender::eevee::VolumeLayer::use_hit_list = false |
Definition at line 543 of file eevee_pipeline.hh.
Referenced by occupancy_add(), render(), and sync().