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

Jack jack at rybn.org
Tue Jan 14 12:27:04 CET 2014


I found this information on the web from Claude :
"More fractal juggling synced to generative techno, made with Pd, Gem
(lightly patched to support arrays of uniforms), Lua, and GLSL fragment
shader. source code"

Please Claude, can you share your patch ? If I understand, I need it to
run my program...
++

Jack



Le 13/01/2014 13:15, Jack a écrit :
> 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
>
>
>
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev




More information about the GEM-dev mailing list