diff --git a/src/webgl/p5.Shader.js b/src/webgl/p5.Shader.js index 8408609ce0..1e835fe95c 100644 --- a/src/webgl/p5.Shader.js +++ b/src/webgl/p5.Shader.js @@ -256,7 +256,7 @@ class Shader { * sketch.setup = function() { * sketch.createCanvas(200, 200, sketch.WEBGL); * myShader = sketch.baseMaterialShader().modify(({ sketch }) => { - * let b = uniformFloat('b'); + * let b = sketch.uniformFloat('b'); * sketch.getPixelInputs((inputs) => { * inputs.color = [inputs.texCoord, b, 1]; * return inputs;