Blender V5.3
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
14
15#ifndef GPU_SHADER
16namespace blender::eevee {
17#endif
18
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. */
25 /* Copies of the matrices above but without jittering. Used for re-projection. */
28 /* Previous render sample copy of winmat_stable. */
30 /* Transform from current view space to previous render sample view space. */
32 /* Size of the froxel grid texture. */
34 /* Maximum light intensity during volume lighting evaluation. */
36 /* Inverse of size of the froxel grid. */
38 /* Maximum light intensity during volume lighting evaluation. */
40 /* 2D scaling factor to make froxel squared. */
42 /* Extent and inverse extent of the main shading view (render extent, not film extent). */
45 /* Size in main view pixels of one froxel in XY. */
47 /* Hi-Z LOD to use during volume shadow tagging. */
49 /* Depth to froxel mapping. */
51 float depth_far;
53 /* Previous render sample copy of the depth mapping parameters. */
57 /* Amount of history to blend during the scatter phase. */
59
60 float _pad1;
61};
62
63#ifndef GPU_SHADER
64} // namespace blender::eevee
65#endif
#define host_shared
MatBase< float, 4, 4 > float4x4
VecBase< float, 2 > float2