Repository navigation
Conversation
Keep named example scripts from main, and still allow a script URL plus the WebGPU addon for the Body Field sketch.
Use the variable name as the uniform name, and drop whole-number .0 suffixes inside the shader.
ksen0
approved these changes
Nov 9, 2026
A copied sketch also needs the p5 WebGPU addon and ml5.js, which the example page loads outside the editor.
Member
|
Hi @pearmini ! Could you add a sensible fallback behavior and/or explanation please for browsers that do not have WebGPU support please? As long as it's clear that it's not a bug that the sketch doesn't load! |
Browsers without WebGPU see an explanation on the canvas and do not start the camera, so a blank sketch is not mistaken for a bug.
Bring in the p5 2.4.0 update and point the WebGPU script note at that version.
Author
|
@ksen0 I've updated it! I'm not sure if this is what you had in mind! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This continues #1636, which closed when
strands-exampleswas deleted in #1635. The branch is updated onto currentmain.