Skip to content

OpenGL: TextureArrays and Texture3D samplers not implemented yet #71029

@jmdejong

Description

@jmdejong

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:
texturearray_opengl3

vulkan:
texturearray_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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions