summaryrefslogtreecommitdiff
path: root/servers/rendering/rendering_server_wrap_mt.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-04-20 23:34:47 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-08-14 23:12:33 +0200
commit88915790681c7a76c4b6b76aca6b811b17055a33 (patch)
treeebfcf46557c2a0eb51a4a3b00f78b86b0cf32c4f /servers/rendering/rendering_server_wrap_mt.h
parentaded76cb84fd1081279d2ed11fd73b553c6e6b4e (diff)
Add a debanding property to Viewport
It can be enabled in the Project Settings (`rendering/quality/screen_filters/use_debanding`). It's disabled by default as it has a small performance impact and can make PNG screenshots much larger (due to how dithering works). It will also slightly brighten the scene's dark areas. As a result, it should be enabled only when banding is noticeable enough. This closes #17006.
Diffstat (limited to 'servers/rendering/rendering_server_wrap_mt.h')
-rw-r--r--servers/rendering/rendering_server_wrap_mt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/rendering_server_wrap_mt.h b/servers/rendering/rendering_server_wrap_mt.h
index fb5c161c8a..5d49f795d5 100644
--- a/servers/rendering/rendering_server_wrap_mt.h
+++ b/servers/rendering/rendering_server_wrap_mt.h
@@ -418,6 +418,7 @@ public:
FUNC3(viewport_set_shadow_atlas_quadrant_subdivision, RID, int, int)
FUNC2(viewport_set_msaa, RID, ViewportMSAA)
FUNC2(viewport_set_screen_space_aa, RID, ViewportScreenSpaceAA)
+ FUNC2(viewport_set_use_debanding, RID, bool)
//this passes directly to avoid stalling, but it's pretty dangerous, so don't call after freeing a viewport
virtual int viewport_get_render_info(RID p_viewport, ViewportRenderInfo p_info) {