Should this code work?
uniform sampler2D leafTextures[2] : source_color;
It does work, but when this code is in my shader my app won't close. The game stops, but the window freezes and hangs at this method:
godotsharp_internal_refcounted_disposed
When I change the shader so it's not longer an array everything works as expected.