glsl-canvas
glsl-canvas copied to clipboard
added support for `uniform1fv`
Hi,
I noticed that when passing arbitrary length array uniforms the library is throwing an error.
glsl.setUniform('u_rands', 1.0,0.2,0.3,1,0.5);
I looked around and found that uniform1fv
method expects a single argument with the array:
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform
void gl.uniform1fv(location, value);
Best regards, Adrian