glsl-canvas icon indicating copy to clipboard operation
glsl-canvas copied to clipboard

added support for `uniform1fv`

Open adicirstei opened this issue 3 years ago • 0 comments

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

adicirstei avatar Feb 22 '22 09:02 adicirstei