Skip to content

feat: add ShaderViewWithPanGesture with drag + momentum, TouchField demo - #16

Merged
blazejkustra merged 1 commit into
mainfrom
feat/shader-view-pan-gesture
Jun 6, 2026
Merged

feat: add ShaderViewWithPanGesture with drag + momentum, TouchField demo#16
blazejkustra merged 1 commit into
mainfrom
feat/shader-view-pan-gesture

Conversation

@blazejkustra

Copy link
Copy Markdown
Owner
  • ShaderViewWithPanGesture: feeds a relative pan into u.params1 entirely on the UI thread (gesture worklets write the synchronizable directly, never the JS thread), with release momentum/inertia, a remembered position, and an optional initialParamsSynchronizable seed
  • useParamsSynchronizable: hook for the u.params1 live channel, optional initial value
  • TouchField example: draggable liquid-light orb with position-driven hue shift
  • ScrollReactive example: scroll-driven procedural contour map
  • fix: ShaderView render loop no longer duplicates on Metro reload (per-run cancellation token tears down the superseded worklet loop)

- ShaderViewWithPanGesture: feeds a relative pan into u.params1 entirely on
  the UI thread (gesture worklets write the synchronizable directly, never the
  JS thread), with release momentum/inertia, a remembered position, and an
  optional initialParamsSynchronizable seed
- useParamsSynchronizable: hook for the u.params1 live channel, optional initial value
- TouchField example: draggable liquid-light orb with position-driven hue shift
- ScrollReactive example: scroll-driven procedural contour map
- fix: ShaderView render loop no longer duplicates on Metro reload (per-run
  cancellation token tears down the superseded worklet loop)
@blazejkustra
blazejkustra merged commit aec4b78 into main Jun 6, 2026
2 checks passed
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.

1 participant