Skip to content

Commit 4fc91bf

Browse files
authored
Merge pull request #8470 from aashu2006/fix-instance-mode-uniformfloat
Fix instance mode usage of uniformFloat() in shader.modify() example
2 parents 8bf815c + 45294f1 commit 4fc91bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webgl/p5.Shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class Shader {
256256
* sketch.setup = function() {
257257
* sketch.createCanvas(200, 200, sketch.WEBGL);
258258
* myShader = sketch.baseMaterialShader().modify(({ sketch }) => {
259-
* let b = uniformFloat('b');
259+
* let b = sketch.uniformFloat('b');
260260
* sketch.getPixelInputs((inputs) => {
261261
* inputs.color = [inputs.texCoord, b, 1];
262262
* return inputs;

0 commit comments

Comments
 (0)