Skip to content

Add uniformEffect for GPU bindings - #3800

Open
mattgperry wants to merge 4 commits into
mainfrom
add-uniform-effect
Open

Add uniformEffect for GPU bindings#3800
mattgperry wants to merge 4 commits into
mainfrom
add-uniform-effect

Conversation

@mattgperry

Copy link
Copy Markdown
Collaborator

Summary

  • add a typed uniformEffect adapter for binding MotionValues to GPU uniform setters
  • batch changed uniforms once per frame in preRender, including across multiple bindings on the same subject
  • export the adapter from motion-dom and cover batching, ordering, and cleanup

Test plan

  • Run the full motion-dom Jest suite (514 passing)
  • Type-check motion-dom
  • Lint the changed source and tests
  • Build motion-dom and validate its bundle

Made with Cursor

mattgperry and others added 4 commits August 29, 2026 21:08
Bind MotionValues to uniform setters while batching GPU writes before the render step.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep GPU integrations out of the main bundle while supporting both vgpu setter bags and Three.js uniform objects.

Co-authored-by: Cursor <cursoragent@cursor.com>
Let vgpu and Three.js subjects animate through their registered MotionValues, with Three.js dispatching between uniform and object effects.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow Three.js targets to animate directly and let vgpu uniforms animate from explicit keyframes without requiring prior effect registration.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant