diff options
author | Bastiaan Olij <mux213@gmail.com> | 2021-08-26 11:23:22 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 11:23:22 +1000 |
commit | 6e87d628735cb201cb3de49a723baaf60d9c942d (patch) | |
tree | d8f9295249f87bd0e62b1d680cc42e05ace335a0 /servers/rendering/renderer_rd/effects_rd.h | |
parent | 5b01a3b3be2c352caea9b024fc11b0eec950ad8a (diff) | |
parent | d22163c6571f98d25fa639c3a2378663db4e6f91 (diff) |
Merge pull request #50883 from BastiaanOlij/mobile_hdr
Scale color output in the mobile renderer to provide HDR support
Diffstat (limited to 'servers/rendering/renderer_rd/effects_rd.h')
-rw-r--r-- | servers/rendering/renderer_rd/effects_rd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/effects_rd.h b/servers/rendering/renderer_rd/effects_rd.h index c8d4cb7ad4..0db0919dbc 100644 --- a/servers/rendering/renderer_rd/effects_rd.h +++ b/servers/rendering/renderer_rd/effects_rd.h @@ -255,7 +255,7 @@ private: float exposure; // 4 - 84 float white; // 4 - 88 float auto_exposure_grey; // 4 - 92 - uint32_t pad2; // 4 - 96 + float luminance_multiplier; // 4 - 96 float pixel_size[2]; // 8 - 104 uint32_t use_fxaa; // 4 - 108 @@ -308,7 +308,7 @@ private: float exposure_adjust; float min_luminance; float max_luminance; - float pad[1]; + uint32_t pad1; }; struct LuminanceReduceFragment { @@ -818,6 +818,7 @@ public: bool use_auto_exposure = false; float auto_exposure_grey = 0.5; RID exposure_texture; + float luminance_multiplier = 1.0; bool use_bcs = false; float brightness = 1.0; |