Skip to content
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

Added ability to use setUniform for textures by texture slot rather than by p5.Texture #7395

Merged

Conversation

RandomGamingDev
Copy link
Contributor

Resolves #7394

Changes:

Adds the option to use setUniform by texture slot instead of by p5.Texture.

PR Checklist

@RandomGamingDev
Copy link
Contributor Author

If the stewards would be ok with it, I could also use this same system to quickly add support for other SAMPLER types shown here
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants

src/webgl/p5.Shader.js Outdated Show resolved Hide resolved
@davepagurek davepagurek merged commit 47a8225 into processing:main Dec 1, 2024
2 checks passed
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.

Add better support/integration for WebGL code textures
2 participants