Godot version
Godot Engine v4.0.beta10
System information
archlinux; vulkan on dedicated NVIDIA GeForce RTX 3060 Laptop GPU; opengl3 on integrated AMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)
Issue description
With the opengl3 backend a shader will read a Samper2dArray uniform as being completely black.
opengl3:

vulkan:

used shader:
shader_type spatial;
uniform sampler2DArray textures : source_color, filter_linear_mipmap;
void fragment() {
ALBEDO = texture(textures, vec3(UV, 1.0)).xyz;
}
Steps to reproduce
Create a scene with a meshinstance3d with the shader above as a material.
Give that shader a Texture2DArray as parameter.
With the vulkan renderer this will run fine, but with opengl3 the texture is read as being completely black.
Minimal reproduction project
sampler2darray.zip
Godot version
Godot Engine v4.0.beta10
System information
archlinux; vulkan on dedicated
NVIDIA GeForce RTX 3060 Laptop GPU; opengl3 on integratedAMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.49, 6.1.1-arch1-1)Issue description
With the opengl3 backend a shader will read a Samper2dArray uniform as being completely black.
opengl3:

vulkan:

used shader:
Steps to reproduce
Create a scene with a meshinstance3d with the shader above as a material.
Give that shader a Texture2DArray as parameter.
With the vulkan renderer this will run fine, but with opengl3 the texture is read as being completely black.
Minimal reproduction project
sampler2darray.zip