|
Blender V5.0
|
#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 |
| float4x4 | wininv |
| float3x4 | world_to_object_transposed |
| packed_float3 | normal |
| int | layer_id |
Definition at line 169 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.
Definition at line 191 of file eevee_lightprobe.hh.
References clipping_offset, blender::math::dot(), blender::eevee::PlanarProbeData::normal, 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::math::dot(), blender::math::from_scale(), blender::math::invert(), blender::eevee::PlanarProbeData::layer_id, blender::eevee::PlanarProbeData::normal, normalize, plane_to_world, transpose, view, blender::eevee::PlanarProbeData::viewmat, blender::eevee::PlanarProbeData::wininv, blender::eevee::PlanarProbeData::winmat, blender::eevee::PlanarProbeData::world_to_object_transposed, and world_to_plane.
| float blender::eevee::PlanarProbe::clipping_offset |
Definition at line 174 of file eevee_lightprobe.hh.
Referenced by reflection_clip_plane_get().
| float4x4 blender::eevee::PlanarProbe::plane_to_world |
Definition at line 171 of file eevee_lightprobe.hh.
Referenced by reflection_clip_plane_get(), and set_view().
| int blender::eevee::PlanarProbe::resource_index |
Definition at line 176 of file eevee_lightprobe.hh.
| float4x4 blender::eevee::PlanarProbe::world_to_plane |
Definition at line 172 of file eevee_lightprobe.hh.
Referenced by set_view().