feat(noise): preserve segment lengths during displacement

The noise node previously displaced each path point's XYZ independently,
which stretched/compressed segments and produced kinked edges. After
displacement, re-project each point onto the sphere of radius
seg_lens[i-1] centered at the previous point — same pattern used by the
gravity node. Total path length is now preserved; noise bends the path
rather than stretching it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-07 23:43:44 +02:00
parent 49746c6079
commit 68ae62527f
3 changed files with 62 additions and 13 deletions
Generated
+1
View File
@@ -117,6 +117,7 @@ dependencies = [
name = "noise"
version = "0.1.0"
dependencies = [
"glam",
"nodarium_macros",
"nodarium_utils",
"noise 0.9.0",