p5.js-website
p5.js-website copied to clipboard
createShader() documentation missing on correct usage with createGraphics()
Topic
It would be great to add a note and perhaps an example on the correct usage for createShader() on separate createGraphics() objects. It is not clear that to create a shader on non-main-canvas renderers, one has to call the function on the renderer object created by createGraphics(), as in: renderer.createShader(vert, frag). This would clarify the usage when using multiple shaders on different canvases.
See: https://p5js.org/reference/#/p5/createShader
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.