|
Blender V4.3
|
#include <eevee_lightprobe_sphere.hh>
Public Member Functions | |
| SphereProbeModule (Instance &instance) | |
| template<typename PassType > | |
| void | bind_resources (PassType &pass) |
| StorageBuffer< SphereProbeHarmonic, true > & | spherical_harmonics_buf () |
Friends | |
| class | CaptureView |
| class | Instance |
Reflection Probe Module | |
| void | init () |
| void | begin_sync () |
| void | end_sync () |
| void | viewport_draw (View &view, GPUFrameBuffer *view_fb) |
| void | set_view (View &view) |
| int | probe_render_extent () const |
Definition at line 28 of file eevee_lightprobe_sphere.hh.
|
inline |
Definition at line 111 of file eevee_lightprobe_sphere.hh.
| void blender::eevee::SphereProbeModule::begin_sync | ( | ) |
Definition at line 30 of file eevee_lightprobe_sphere.cc.
References blender::eevee::SphereProbeData::atlas_coord, blender::eevee::Sampling::bind_resources(), blender::eevee::VolumeProbeModule::bind_resources(), GPU_BARRIER_SHADER_STORAGE, GPU_BARRIER_TEXTURE_FETCH, GPU_BARRIER_UNIFORM, blender::draw::detail::Pass< DrawCommandBufType >::init(), blender::eevee::Instance::light_probes, blender::eevee::Instance::sampling, blender::eevee::Instance::shaders, blender::eevee::SPHERE_PROBE_CONVOLVE, blender::eevee::SPHERE_PROBE_IRRADIANCE, blender::eevee::SPHERE_PROBE_REMAP, blender::eevee::SPHERE_PROBE_SELECT, blender::eevee::SPHERE_PROBE_SUNLIGHT, blender::eevee::ShaderModule::static_shader_get(), blender::eevee::World::sunlight, blender::eevee::Instance::uniform_data, blender::eevee::Instance::volume_probes, and blender::eevee::Instance::world.
Referenced by blender::eevee::Instance::begin_sync().
|
inline |
Definition at line 119 of file eevee_lightprobe_sphere.hh.
References SPHERE_PROBE_BUF_SLOT, and SPHERE_PROBE_TEX_SLOT.
| void blender::eevee::SphereProbeModule::end_sync | ( | ) |
Definition at line 131 of file eevee_lightprobe_sphere.cc.
References blender::eevee::Instance::do_lightprobe_sphere_sync(), blender::eevee::SphereProbe::do_render, DRW_viewport_request_redraw(), blender::eevee::Instance::light_probes, blender::eevee::Sampling::reset(), and blender::eevee::Instance::sampling.
Referenced by blender::eevee::Instance::end_sync().
| void blender::eevee::SphereProbeModule::init | ( | ) |
Definition at line 19 of file eevee_lightprobe_sphere.cc.
References DEG_id_type_any_exists(), blender::eevee::Instance::depsgraph, ID_LP, and blender::eevee::Instance::is_viewport().
Referenced by blender::eevee::Instance::init(), and blender::eevee::Instance::init_light_bake().
| int blender::eevee::SphereProbeModule::probe_render_extent | ( | ) | const |
Get the resolution of a single cube-map side when rendering probes.
The cube-maps are rendered half size of the size of the octahedral texture.
Definition at line 14 of file eevee_lightprobe_sphere.cc.
References Scene::eevee, SceneEEVEE::gi_cubemap_resolution, and blender::eevee::Instance::scene.
Referenced by blender::eevee::LightModule::end_sync(), and blender::eevee::HiZBuffer::sync().
| void blender::eevee::SphereProbeModule::set_view | ( | View & | view | ) |
Select which probes are used for rendering. NOTE: Must run after volume_probe.set_view as it reads the volume probe data.
Definition at line 252 of file eevee_lightprobe_sphere.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), b, blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), blender::eevee::Instance::light_probes, and SPHERE_PROBE_MAX.
Referenced by blender::eevee::VolumeModule::draw_compute(), blender::eevee::DeferredLayer::render(), blender::eevee::DeferredProbePipeline::render(), blender::eevee::ForwardPipeline::render(), and blender::eevee::PlanarProbePipeline::render().
|
inline |
Definition at line 138 of file eevee_lightprobe_sphere.hh.
| void blender::eevee::SphereProbeModule::viewport_draw | ( | View & | view, |
| GPUFrameBuffer * | view_fb ) |
Definition at line 337 of file eevee_lightprobe_sphere.cc.
References blender::eevee::DISPLAY_PROBE_SPHERE, DRW_STATE_CULL_BACK, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, and GPU_PRIM_TRIS.
Referenced by blender::eevee::ShadingView::render().
|
friend |
Definition at line 31 of file eevee_lightprobe_sphere.hh.
|
friend |
Definition at line 33 of file eevee_lightprobe_sphere.hh.