Skip to content

Conversation

@adicirstei
Copy link

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant