Skip to content

Conversation

@davepagurek
Copy link
Contributor

Resolves #8226

Changes:

  • Adds better input handling for vector arguments to noise() in p5.strands. Previously, it assumed a vector argument was a vec3, meaning vec2s or single numbers broke. Now, it checks the input dimensions and pads with zeros to fit the GLSL noise function signature.

The example in the issue no longer throws an error!

Live: https://editor.p5js.org/davepagurek/sketches/KnM2XDydb

PR Checklist

@davepagurek davepagurek merged commit 77f803a into dev-2.0 Nov 3, 2025
5 checks passed
@davepagurek davepagurek deleted the fix/noise-vector-input branch November 3, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants