p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

createShader() documentation missing on correct usage with createGraphics()

Open itsgalo opened this issue 3 years ago • 1 comments

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

itsgalo avatar Jun 08 '22 20:06 itsgalo

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.

welcome[bot] avatar Jun 08 '22 20:06 welcome[bot]