Blender V5.3
blender::eevee::VolumeProbeModule Class Reference

#include <eevee_lightprobe_volume.hh>

Public Member Functions

 VolumeProbeModule (Instance &inst)
 ~VolumeProbeModule ()
void update_world_irradiance ()
template<typename PassType>
void bind_resources (PassType &pass)

Public Attributes

IrradianceBake bake

Friends

class SphereProbeModule

Interface

void init ()
void sync ()
void set_view (View &view)
void viewport_draw (View &view, gpu::FrameBuffer *view_fb)
Vector< IrradianceBrickPacked > bricks_alloc (int brick_len)
void bricks_free (Vector< IrradianceBrickPacked > &bricks)

Detailed Description

Runtime container of diffuse indirect lighting. Also have debug and baking components.

Definition at line 206 of file eevee_lightprobe_volume.hh.

Constructor & Destructor Documentation

◆ VolumeProbeModule()

blender::eevee::VolumeProbeModule::VolumeProbeModule ( Instance & inst)
inline

Definition at line 247 of file eevee_lightprobe_volume.hh.

References bake.

◆ ~VolumeProbeModule()

blender::eevee::VolumeProbeModule::~VolumeProbeModule ( )
inline

Definition at line 248 of file eevee_lightprobe_volume.hh.

Member Function Documentation

◆ bind_resources()

template<typename PassType>
void blender::eevee::VolumeProbeModule::bind_resources ( PassType & pass)
inline

◆ bricks_alloc()

Vector< IrradianceBrickPacked > blender::eevee::VolumeProbeModule::bricks_alloc ( int brick_len)

◆ bricks_free()

◆ init()

◆ set_view()

void blender::eevee::VolumeProbeModule::set_view ( View & view)

Definition at line 153 of file eevee_lightprobe_volume.cc.

References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), b, blender::LightProbeGridCacheFrame::baking, blender::eevee::VolumeProbeData::brick_offset, bricks_alloc(), blender::eevee::VolumeProbe::cache, blender::draw::Texture::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::LightProbeGridCacheFrame::connectivity, blender::math::determinant(), blender::eevee::VolumeProbe::dilation_radius, blender::eevee::VolumeProbe::dilation_threshold, blender::math::divide_ceil(), blender::eevee::VolumeProbe::do_update, blender::draw::Texture::ensure_3d(), blender::eevee::VolumeProbeData::facing_bias, blender::draw::Texture::free(), blender::math::from_location(), blender::math::from_scale(), blender::GPU_BARRIER_SHADER_STORAGE, blender::GPU_BARRIER_TEXTURE_FETCH, blender::GPU_DATA_UBYTE, blender::GPU_texture_swizzle_set(), blender::GPU_texture_update_sub(), blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::eevee::VolumeProbe::grid_index, blender::eevee::VolumeProbeData::grid_size_padded, blender::LightProbeObjectCache::grid_static_cache, blender::grid_to_world(), blender::MatBase< float, 3, 4 >::identity(), blender::eevee::VolumeProbe::intensity, blender::math::invert(), blender::LightProbeGridCacheFrame::irradiance, IRRADIANCE_GRID_BRICK_SIZE, blender::draw::Texture::is_valid(), blender::LightProbeBakingData::L0, blender::LightProbeIrradianceData::L0, blender::LightProbeVisibilityData::L0, blender::LightProbeBakingData::L1_a, blender::LightProbeIrradianceData::L1_a, blender::LightProbeVisibilityData::L1_a, blender::LightProbeBakingData::L1_b, blender::LightProbeIrradianceData::L1_b, blender::LightProbeVisibilityData::L1_b, blender::LightProbeBakingData::L1_c, blender::LightProbeIrradianceData::L1_c, blender::LightProbeVisibilityData::L1_c, blender::eevee::LIGHTPROBE_IRRADIANCE_LOAD, blender::eevee::LIGHTPROBE_IRRADIANCE_WORLD, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::eevee::VolumeProbeData::normal_bias, blender::eevee::VolumeProbe::object_to_world, blender::Vector< T, InlineBufferCapacity, Allocator >::rbegin(), blender::Vector< T, InlineBufferCapacity, Allocator >::rend(), blender::LightProbeGridCacheFrame::size, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::math::transpose(), UNPACK3, blender::LightProbeBakingData::validity, blender::LightProbeConnectivityData::validity, blender::eevee::VolumeProbe::validity_threshold, blender::eevee::VolumeProbeData::view_bias, blender::LightProbeGridCacheFrame::visibility, and blender::eevee::VolumeProbeData::world_to_grid_transposed.

◆ sync()

void blender::eevee::VolumeProbeModule::sync ( )

◆ update_world_irradiance()

void blender::eevee::VolumeProbeModule::update_world_irradiance ( )
inline

Definition at line 254 of file eevee_lightprobe_volume.hh.

◆ viewport_draw()

void blender::eevee::VolumeProbeModule::viewport_draw ( View & view,
gpu::FrameBuffer * view_fb )

Definition at line 495 of file eevee_lightprobe_volume.cc.

◆ SphereProbeModule

friend class SphereProbeModule
friend

Definition at line 276 of file eevee_lightprobe_volume.hh.

References SphereProbeModule.

Referenced by SphereProbeModule.

Member Data Documentation

◆ bake

IrradianceBake blender::eevee::VolumeProbeModule::bake

The documentation for this class was generated from the following files: