Hey, so I’m using a sampler2D array for using multiple textures on my geometry. In GLSL 330 and below it turns out that we can’t use a variable to index into sampler2D arrays.
Does anybody have clever ideas or workarounds for this? I am perfectly willing to write another shader, I just would like to avoid some crazy if-else block if at all possible.