Avoid shading CanvasGroup nodes twice

This commit is contained in:
clayjohn 2023-02-03 15:40:19 -08:00
parent b0598dcdb7
commit dfbf439081
4 changed files with 6 additions and 1 deletions

View file

@ -2684,6 +2684,7 @@ RasterizerCanvasGLES3::RasterizerCanvasGLES3() {
// Default CanvasGroup shader.
shader_type canvas_item;
render_mode unshaded;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
@ -2711,6 +2712,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;

View file

@ -645,7 +645,7 @@ void main() {
#ifdef MODE_LIGHT_ONLY
color = vec4(0.0);
#else
#elif !defined(MODE_UNSHADED)
color *= canvas_modulation;
#endif