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 --- doc/classes/CanvasGroup.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/classes') diff --git a/doc/classes/CanvasGroup.xml b/doc/classes/CanvasGroup.xml index 6eeff8fef3..45f77ba484 100644 --- a/doc/classes/CanvasGroup.xml +++ b/doc/classes/CanvasGroup.xml @@ -8,6 +8,7 @@ [b]Note:[/b] The [CanvasGroup] uses a custom shader to read from the backbuffer to draw its children. Assigning a [Material] to the [CanvasGroup] overrides the builtin shader. To duplicate the behavior of the builtin shader in a custom [Shader] use the following: [codeblock] shader_type canvas_item; + render_mode unshaded; uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest; -- cgit v1.2.3