Sparky
Sparky copied to clipboard
GLSL dynamic indexing
In GLSL standards dynamic indexing of arrays is not allowed, so basicly textures[tid] won't work everywhere. Even on a few modern cards this could be an issue, but on older ones definetly. A switch statement could resolve this (but will also drain performance): switch (tid) { case 0: .... textures[0] ... break; .... }
I am using an older nvidia quadro 770 and this is not working for me. It works on my newer amd 6790 card. I have been trying to figure out a workaround for my quadro machine. I will try the switch
Fixed the problem on my old AMD Radeon 6670.