Blender
V5.3
source
blender
draw
engines
eevee
eevee_volume_shared.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11
#pragma once
12
13
#include "
GPU_shader_shared_utils.hh
"
14
15
#ifndef GPU_SHADER
16
namespace
blender::eevee
{
17
#endif
18
19
struct
[[
host_shared
]]
VolumesInfoData
{
20
/* During object voxelization, we need to use an infinite projection matrix to avoid clipping
21
* faces. But they cannot be used for recovering the view position from froxel position as they
22
* are not invertible. We store the finite projection matrix and use it for this purpose. */
23
float4x4
winmat_finite
;
24
float4x4
wininv_finite
;
25
/* Copies of the matrices above but without jittering. Used for re-projection. */
26
float4x4
wininv_stable
;
27
float4x4
winmat_stable
;
28
/* Previous render sample copy of winmat_stable. */
29
float4x4
history_winmat_stable
;
30
/* Transform from current view space to previous render sample view space. */
31
float4x4
curr_view_to_past_view
;
32
/* Size of the froxel grid texture. */
33
packed_int3
tex_size
;
34
/* Maximum light intensity during volume lighting evaluation. */
35
float
light_clamp
;
36
/* Inverse of size of the froxel grid. */
37
packed_float3
inv_tex_size
;
38
/* Maximum light intensity during volume lighting evaluation. */
39
float
shadow_steps
;
40
/* 2D scaling factor to make froxel squared. */
41
float2
coord_scale
;
42
/* Extent and inverse extent of the main shading view (render extent, not film extent). */
43
float2
main_view_extent
;
44
float2
main_view_extent_inv
;
45
/* Size in main view pixels of one froxel in XY. */
46
int
tile_size
;
47
/* Hi-Z LOD to use during volume shadow tagging. */
48
int
tile_size_lod
;
49
/* Depth to froxel mapping. */
50
float
depth_near
;
51
float
depth_far
;
52
float
depth_distribution
;
53
/* Previous render sample copy of the depth mapping parameters. */
54
float
history_depth_near
;
55
float
history_depth_far
;
56
float
history_depth_distribution
;
57
/* Amount of history to blend during the scatter phase. */
58
float
history_opacity
;
59
60
float
_pad1
;
61
};
62
63
#ifndef GPU_SHADER
64
}
// namespace blender::eevee
65
#endif
GPU_shader_shared_utils.hh
host_shared
#define host_shared
Definition
GPU_shader_shared_utils.hh:144
blender::eevee
Definition
eevee_ambient_occlusion.cc:29
blender::float4x4
MatBase< float, 4, 4 > float4x4
Definition
BLI_math_matrix_types.hh:1024
blender::float2
VecBase< float, 2 > float2
Definition
BLI_math_vector_types.hh:798
blender::eevee::VolumesInfoData
Definition
eevee_volume_shared.hh:19
blender::eevee::VolumesInfoData::depth_distribution
float depth_distribution
Definition
eevee_volume_shared.hh:52
blender::eevee::VolumesInfoData::light_clamp
float light_clamp
Definition
eevee_volume_shared.hh:35
blender::eevee::VolumesInfoData::winmat_stable
float4x4 winmat_stable
Definition
eevee_volume_shared.hh:27
blender::eevee::VolumesInfoData::main_view_extent
float2 main_view_extent
Definition
eevee_volume_shared.hh:43
blender::eevee::VolumesInfoData::tile_size
int tile_size
Definition
eevee_volume_shared.hh:46
blender::eevee::VolumesInfoData::coord_scale
float2 coord_scale
Definition
eevee_volume_shared.hh:41
blender::eevee::VolumesInfoData::history_depth_far
float history_depth_far
Definition
eevee_volume_shared.hh:55
blender::eevee::VolumesInfoData::history_depth_near
float history_depth_near
Definition
eevee_volume_shared.hh:54
blender::eevee::VolumesInfoData::_pad1
float _pad1
Definition
eevee_volume_shared.hh:60
blender::eevee::VolumesInfoData::wininv_stable
float4x4 wininv_stable
Definition
eevee_volume_shared.hh:26
blender::eevee::VolumesInfoData::winmat_finite
float4x4 winmat_finite
Definition
eevee_volume_shared.hh:23
blender::eevee::VolumesInfoData::main_view_extent_inv
float2 main_view_extent_inv
Definition
eevee_volume_shared.hh:44
blender::eevee::VolumesInfoData::depth_near
float depth_near
Definition
eevee_volume_shared.hh:50
blender::eevee::VolumesInfoData::history_opacity
float history_opacity
Definition
eevee_volume_shared.hh:58
blender::eevee::VolumesInfoData::history_winmat_stable
float4x4 history_winmat_stable
Definition
eevee_volume_shared.hh:29
blender::eevee::VolumesInfoData::depth_far
float depth_far
Definition
eevee_volume_shared.hh:51
blender::eevee::VolumesInfoData::history_depth_distribution
float history_depth_distribution
Definition
eevee_volume_shared.hh:56
blender::eevee::VolumesInfoData::tile_size_lod
int tile_size_lod
Definition
eevee_volume_shared.hh:48
blender::eevee::VolumesInfoData::tex_size
packed_int3 tex_size
Definition
eevee_volume_shared.hh:33
blender::eevee::VolumesInfoData::shadow_steps
float shadow_steps
Definition
eevee_volume_shared.hh:39
blender::eevee::VolumesInfoData::inv_tex_size
packed_float3 inv_tex_size
Definition
eevee_volume_shared.hh:37
blender::eevee::VolumesInfoData::wininv_finite
float4x4 wininv_finite
Definition
eevee_volume_shared.hh:24
blender::eevee::VolumesInfoData::curr_view_to_past_view
float4x4 curr_view_to_past_view
Definition
eevee_volume_shared.hh:31
packed_float3
Definition
types_float3.h:176
packed_int3
Definition
types_int3.h:111
Generated on
for Blender by
doxygen
1.18.0