Thank you both! When I tried the vec2 array[] = { vec2(0.0, 1.0), vec2(2.0, 3.0) };
this didn’t work and the GLSL Syntax Validator reported an error. Does anyone know since which driver version GLSL 1.2 is supported by the ATI and nVidia cards?
The 97 series drivers from NVIDIA support version 1.2 in beta form. It can be enabled under Windows with NVEmulate, and under unix-like operating systems by editing a config file (see the GLSL release notes). The links to NVemulate and the GLSL release notes are below:
As a quick note of caution, NVIDIA has not yet released a 97 series driver for pre-8800 cards on Windows, and with special branches it might be possible to run across a 97 series driver without the beta 1.2 support. The GLSL release notes point out the versions recommended for use at this time.
Thanks. Then I will probably wait Only have an 6800GT.
Is it possible to do something like thing in an uniform array? Calculate the values on the CPU and pass an array of the sort: uniform vec2 uarray[100];
to the glsl shaders?