summaryrefslogtreecommitdiff
path: root/scene/main/viewport.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-10-19 14:15:44 -0300
committerGitHub <noreply@github.com>2020-10-19 14:15:44 -0300
commit85ebf40b6c2c08ea692b574d6221bce5e8021a31 (patch)
treef08104462d24394b4aa418b609c7b155a9b83761 /scene/main/viewport.h
parent5f65eba5c45e97b670a5b02bede10ee8cf085d2c (diff)
parent88915790681c7a76c4b6b76aca6b811b17055a33 (diff)
Merge pull request #38097 from Calinou/add-viewport-debanding
Add a debanding property to Viewport
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r--scene/main/viewport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h
index 878ac47bca..f7457f8ab2 100644
--- a/scene/main/viewport.h
+++ b/scene/main/viewport.h
@@ -279,6 +279,7 @@ private:
MSAA msaa;
ScreenSpaceAA screen_space_aa;
+ bool use_debanding;
Ref<ViewportTexture> default_texture;
Set<ViewportTexture *> viewport_textures;
@@ -521,6 +522,9 @@ public:
void set_screen_space_aa(ScreenSpaceAA p_screen_space_aa);
ScreenSpaceAA get_screen_space_aa() const;
+ void set_use_debanding(bool p_use_debanding);
+ bool is_using_debanding() const;
+
Vector2 get_camera_coords(const Vector2 &p_viewport_coords) const;
Vector2 get_camera_rect_size() const;