glsl - Dynamic indexing into uniform array of sampler2D doesn't work - Stack Overflow
A sampler2D uniform with certain hints, followed by another hintless sampler2D, crashes the editor with "Index is out of bounds" · Issue #67493 · godotengine/godot · GitHub