|
Blender V4.3
|
#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 |
Definition at line 162 of file eevee_lightprobe.hh.
|
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.
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.
| void blender::eevee::PlanarProbe::set_view | ( | const draw::View & | view, |
| int | layer_id ) |
Update the PlanarProbeData part of the struct. view is the view we want to render this probe with.
Definition at line 16 of file eevee_lightprobe_planar.cc.
References blender::eevee::PlanarProbeData::layer_id, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::eevee::PlanarProbeData::normal, normalize(), plane_to_world, transpose(), blender::draw::View::viewmat(), blender::eevee::PlanarProbeData::viewmat, blender::draw::View::winmat(), blender::eevee::PlanarProbeData::winmat, blender::eevee::PlanarProbeData::world_to_object_transposed, world_to_plane, and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
| float blender::eevee::PlanarProbe::clipping_offset |
Definition at line 167 of file eevee_lightprobe.hh.
Referenced by reflection_clip_plane_get().
| 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().
| int blender::eevee::PlanarProbe::resource_index |
Definition at line 169 of file eevee_lightprobe.hh.
| float4x4 blender::eevee::PlanarProbe::world_to_plane |
Definition at line 165 of file eevee_lightprobe.hh.
Referenced by set_view().