New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impossible to use uniform array for shaders #183

Jackovic opened this Issue Dec 17, 2017 · 2 comments


None yet
2 participants

Jackovic commented Dec 17, 2017

It is not possible to pass a uniform variable as array to shaders.

For exemple, declaring in a shader :
uniform float pos_square[4];

and sending a message to [glsl_program] :
pos_square 0.2 0.4 0.6 0.7

return in Pd console :
[glsl_program]: no method for 'pos_square' (it's not uniform variable)

I tested my fragment shader with Processing and it works fine.


This comment has been minimized.

fdch commented Dec 17, 2017

perhaps try uniform vec4 pos_square


This comment has been minimized.

Jackovic commented Dec 17, 2017

I can also use a mat4, but i need to pass more than 16 values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment