Blender V5.3
eevee_uniform_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#include "eevee_film_shared.hh"
20
21#ifndef GPU_SHADER
22namespace blender::eevee {
23#endif
24
25/* This should be inside "eevee_light_shared.hh" but it would pull a huge header that is not
26 * essential for most shaders. This could be moved back if including "eevee_bxdf_lib.glsl" is used
27 * only for shading shaders. */
33 /* WORKAROUND: Special value used to tag translucent BSDF with thickness.
34 * Fall back to LIGHT_DIFFUSE. */
36};
37
39 /* Number of shadow rays to shoot for each light. */
41 /* Number of shadow samples to take for each shadow ray. */
43 /* Bounding radius for a film pixel at 1 unit from the camera. */
45 /* Global switch for jittered shadows. */
47 /* Output atomic counter instead of depth. */
49 int _pad0;
50 int _pad1;
51 int _pad2;
52};
53
55 float time;
56 float frame;
59};
60
61/* Light Clamping. */
72
73/* Emulation of the light path node. */
80
84 /* True if the main camera view has inverted handedness.
85 * This is the case if the camera has negative scale on one axis. */
87 /* WORKAROUND: Usually we would use imageSize to get the number of layers and get this id.
88 * However, some implementation return the number of layers from the base texture instead of the
89 * texture view (see #146132). So we always pass the correct layer index manually to avoid any
90 * platform inconsistency. */
92 /* Use monochromatic transmittance for the forward pipeline. */
94 /* True if the pipeline can use the raycast node.
95 * The value is valid only if `MAT_RAYCAST` is defined. */
99};
100
101/* Combines data from several modules to avoid wasting binding slots. */
113
121
122#ifndef GPU_SHADER
123} // namespace blender::eevee
124#endif
#define host_shared
int32_t bool32_t
unsigned int uint
Definition BKE_text.h:55
VecBase< float, 4 > float4
unsigned int uint32_t
Definition BKE_text.h:81
struct RenderBuffersInfoData render_pass