Merge pull request #80215 from clayjohn/HDR-2D

Add option to enable HDR rendering in 2D
This commit is contained in:
Rémi Verschelde
2023-08-08 16:57:33 +02:00
40 changed files with 309 additions and 105 deletions

View File

@ -243,6 +243,7 @@ private:
Rect2 last_vp_rect;
bool transparent_bg = false;
bool use_hdr_2d = false;
bool gen_mipmaps = false;
bool snap_controls_to_pixels = true;
@ -526,6 +527,9 @@ public:
void set_transparent_background(bool p_enable);
bool has_transparent_background() const;
void set_use_hdr_2d(bool p_enable);
bool is_using_hdr_2d() const;
Ref<ViewportTexture> get_texture() const;
void set_positional_shadow_atlas_size(int p_size);