-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Fixed uniform shader reset #7207
base: main
Are you sure you want to change the base?
Fixed uniform shader reset #7207
Conversation
Hello @davepagurek . I am using a set data struckure to keep track of bounded textures. Please have a look at my PR. I also tested it on 5921 and it works as expected. There are some recordings of the changes in both cases. |
I think we still want to be setting the bound texture back to an empty texture in most cases (like you mentioned in #7030 (comment), this could just when a framebuffer is bound, but we can do it in all cases to be safe too.) With the current code, I made a copy of the test case from #5921 and it shows the same behaviour in Firefox on my mac where it just shows wireframes: https://editor.p5js.org/davepagurek/sketches/CMFeoUlHE The problem is pretty platform- and driver-dependent, so it might be a harder one to test depending on your hardware. For me, Chrome displays that sketch just fine, but Firefox shows just wireframes and logs this warning:
I think the challenge here will be to store two separate values on the uniform:
Some logic to do that:
|
Hi @davepagurek, it's been hard for me to get this value . Please for a few hints |
Keeping track of bounded textures for later reuse thus , fixing uniform shader reset
Resolves #7030
Changes:
Screenshots of the change:
Before:
Apex_1725369970370.mp4
After:
Apex_1725371131798.mp4
PR Checklist
npm run lint
passes