We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
is it possible to load a shader in a external file? any example on how to do that?
thanks, J
The text was updated successfully, but these errors were encountered:
Hello, would the following code fit your use case?
const sandbox = new GlslCanvas(document.querySelector('#app')) fetch('/path/to/shader.frag') .then(response => { return response.text() }) .then(fragment => { sandbox.load(fragment) })
Sorry, something went wrong.
No branches or pull requests
Hello,
is it possible to load a shader in a external file? any example on how to do that?
thanks,
J
The text was updated successfully, but these errors were encountered: