From bf74de869180c58f4350a5575164af99314f3d10 Mon Sep 17 00:00:00 2001 From: aashu2006 Date: Fri, 30 Jan 2026 19:06:04 +0530 Subject: [PATCH] Fix instance mode usage of uniformFloat() in shader.modify() example --- src/webgl/p5.Shader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/p5.Shader.js b/src/webgl/p5.Shader.js index 98556410fb..de0849b7a3 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;