Sparky icon indicating copy to clipboard operation
Sparky copied to clipboard

GLSL dynamic indexing

Open LPeter1997 opened this issue 10 years ago • 2 comments

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; .... }

LPeter1997 avatar Jul 10 '15 15:07 LPeter1997

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

crisis641 avatar Aug 07 '15 21:08 crisis641

Fixed the problem on my old AMD Radeon 6670.

Gogsi avatar Sep 09 '15 12:09 Gogsi