From dfbf4390816bee93b373549afc125969d9f13d17 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Fri, 3 Feb 2023 15:40:19 -0800 Subject: Avoid shading CanvasGroup nodes twice --- servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers') diff --git a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp index bd8c11186e..f102bc0650 100644 --- a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp @@ -2634,6 +2634,7 @@ RendererCanvasRenderRD::RendererCanvasRenderRD() { // Default CanvasGroup shader. shader_type canvas_item; +render_mode unshaded; uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest; @@ -2661,6 +2662,7 @@ void fragment() { // Default clip children shader. shader_type canvas_item; +render_mode unshaded; uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest; -- cgit v1.2.3