[GEM-dev] Array with GLSL and Pd/Gem

Jack jack at rybn.org
Mon Jan 13 13:15:00 CET 2014


Hello,

I would like to know if it is possible to use uniform array with Pd/Gem
and GLSL ?

For example :

In Pd :
[posX 0.5 0.3 0.6 0.7 0.9(
|
[glsl_program]

In fragment shader :
uniform float posX[5]
void main (void)
{
    gl_FragColor =  vec4(posX[0], posX[2], posX[4], 1.0);
}

++

Jack





More information about the GEM-dev mailing list