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 lintpasses