9 years, 3 months ago
Highlights
If the amount of light is fixed, then the static indexing for arrays shouldn't be that much of an issue. But G41 not :(
9 years, 3 months ago
9 years, 4 months ago
Look this: .... struct Light { ... } uniform Light u_lights[4]; for(int i = 0 ; i<4 ;i++) { ... //Then use i index u_lights array. totalSpecularColor += u_lights[i].s…
9 years, 4 months ago
The G41 is a very old OpenGL 2.0 era GPU, and there were many limitations in that era. One common limitation is the inability to dynamically index arrays from within fragment sh…
9 years, 4 months ago
Latest Activity
If the amount of light is fixed, then the static indexing for arrays shouldn't be that much of an issue. …
9 years, 3 months ago
The G41 is a very old OpenGL 2.0 era GPU, and there were many limitations in that era. One common …
9 years, 4 months ago
Look this: .... struct Light { ... } uniform Light u_lights[4]; for(int i = 0 ; i<4 ;i++) { ... …
9 years, 4 months ago