summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-08 16:57:33 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-08 16:57:33 +0200
commit1163dac9e3fd0c1dcff10ad04024fdc02857e317 (patch)
tree156455b411ad5c67ff3b0bdea1dd805005ae80af /drivers
parentaf722e2bab0ffb719b7aab40f5550e070cef6462 (diff)
parent57eb762bae0a24a4fb33e825e57f1e100bd9d354 (diff)
downloadredot-engine-1163dac9e3fd0c1dcff10ad04024fdc02857e317.tar.gz
Merge pull request #80215 from clayjohn/HDR-2D
Add option to enable HDR rendering in 2D
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/shaders/canvas_uniforms_inc.glsl2
-rw-r--r--drivers/gles3/storage/texture_storage.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/canvas_uniforms_inc.glsl b/drivers/gles3/shaders/canvas_uniforms_inc.glsl
index d53c0fcb26..21fd4d3d9d 100644
--- a/drivers/gles3/shaders/canvas_uniforms_inc.glsl
+++ b/drivers/gles3/shaders/canvas_uniforms_inc.glsl
@@ -12,7 +12,7 @@
#define FLAGS_CLIP_RECT_UV uint(1 << 9)
#define FLAGS_TRANSPOSE_RECT uint(1 << 10)
-#define FLAGS_USING_LIGHT_MASK uint(1 << 11)
+// (1 << 11) is for FLAGS_CONVERT_ATTRIBUTES_TO_LINEAR in RD backends, unused here.
#define FLAGS_NINEPACH_DRAW_CENTER uint(1 << 12)
#define FLAGS_USING_PARTICLES uint(1 << 13)
diff --git a/drivers/gles3/storage/texture_storage.h b/drivers/gles3/storage/texture_storage.h
index bad2b31a31..c25dbef288 100644
--- a/drivers/gles3/storage/texture_storage.h
+++ b/drivers/gles3/storage/texture_storage.h
@@ -629,6 +629,8 @@ public:
void render_target_clear_used(RID p_render_target);
virtual void render_target_set_msaa(RID p_render_target, RS::ViewportMSAA p_msaa) override;
virtual RS::ViewportMSAA render_target_get_msaa(RID p_render_target) const override;
+ virtual void render_target_set_use_hdr(RID p_render_target, bool p_use_hdr_2d) override {}
+ virtual bool render_target_is_using_hdr(RID p_render_target) const override { return false; }
// new
void render_target_set_as_unused(RID p_render_target) override {