We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bf815c + 45294f1 commit 4fc91bfCopy full SHA for 4fc91bf
1 file changed
src/webgl/p5.Shader.js
@@ -256,7 +256,7 @@ class Shader {
256
* sketch.setup = function() {
257
* sketch.createCanvas(200, 200, sketch.WEBGL);
258
* myShader = sketch.baseMaterialShader().modify(({ sketch }) => {
259
- * let b = uniformFloat('b');
+ * let b = sketch.uniformFloat('b');
260
* sketch.getPixelInputs((inputs) => {
261
* inputs.color = [inputs.texCoord, b, 1];
262
* return inputs;
0 commit comments