Blender V4.3
blender::eevee::PlanarProbe Struct Reference

#include <eevee_lightprobe.hh>

Inherits blender::eevee::LightProbe, and blender::eevee::PlanarProbeData.

Public Member Functions

float4 reflection_clip_plane_get ()
 
Planar Probe
void set_view (const draw::View &view, int layer_id)
 

Public Attributes

float4x4 plane_to_world
 
float4x4 world_to_plane
 
float clipping_offset
 
int resource_index
 
- Public Attributes inherited from blender::eevee::LightProbe
bool used = false
 
bool initialized = false
 
bool updated = false
 
bool viewport_display = false
 
float viewport_display_size = 0.0f
 
- Public Attributes inherited from blender::eevee::PlanarProbeData
float4x4 viewmat
 
float4x4 winmat
 
float3x4 world_to_object_transposed
 
packed_float3 normal
 
int layer_id
 

Detailed Description

Definition at line 162 of file eevee_lightprobe.hh.

Member Function Documentation

◆ reflection_clip_plane_get()

float4 blender::eevee::PlanarProbe::reflection_clip_plane_get ( )
inline

Create the reflection clip plane equation that clips along the XY plane of the given transform. The clip_offset will push the clip plane a bit further to avoid missing pixels in reflections. The transform does not need to be normalized but is expected to be orthogonal.

Note
Only works after set_view was called.

Definition at line 184 of file eevee_lightprobe.hh.

References clipping_offset, blender::math::dot(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), and plane_to_world.

◆ set_view()

Member Data Documentation

◆ clipping_offset

float blender::eevee::PlanarProbe::clipping_offset

Definition at line 167 of file eevee_lightprobe.hh.

Referenced by reflection_clip_plane_get().

◆ plane_to_world

float4x4 blender::eevee::PlanarProbe::plane_to_world

Definition at line 164 of file eevee_lightprobe.hh.

Referenced by reflection_clip_plane_get(), and set_view().

◆ resource_index

int blender::eevee::PlanarProbe::resource_index

Definition at line 169 of file eevee_lightprobe.hh.

◆ world_to_plane

float4x4 blender::eevee::PlanarProbe::world_to_plane

Definition at line 165 of file eevee_lightprobe.hh.

Referenced by set_view().


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