-
Notifications
You must be signed in to change notification settings - Fork 184
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
setUniform not working #67
Comments
Yep, have the same issue. The js console says |
I have the same issue with setUniform, although I do not get errors. The value just does no transfre to the shader.
|
I'm having the same issue. The GlslCanvas is not correctly updating the list of uniforms for me (Chrome 106 - caching disabled). One quick thing that I noticed is that the canvas style's background color is being set to Will report any progress on this. |
I having the same issue. As a workaround, I noticed that setting uniforms works fine when loading the fragment manually using So for now to get around the issue, I'm doing something like this, which seems to work well for me:
|
Here is a minimal reproducible example of the issue. I should get just a gray canvas but it looks like u_gray uniform is always zero. Am I doing something wrong?
index.js
index.html
shader.frag
The text was updated successfully, but these errors were encountered: