solid-three icon indicating copy to clipboard operation
solid-three copied to clipboard

solidified `solid-three`

Open bigmistqke opened this issue 10 months ago • 3 comments

Implementation of proxy-based threejs renderer, based on the exploration done in the zustand-to-store branch.

This branch deviates from the previous goal of staying close to r3f's codebase in favor of simplification and solidification

Similarities

  • Props management
  • Children/scene graph management

Differences

  • Custom event handling.
  • We only store the props of the component in the threejs instance (behind $S3C symbol)
  • No central store.
  • useThree returns canvas, threejs' webgl-renderer, camera, raycaster and scene.
  • useLoader is a very minimal wrapper around createResource.
  • Current implementation defaults the catalogue to {}.
    • extend(THREE) if you do not want to think about treeshaking.
    • I am working on a babel-plugin to create automatic extend calls.

bigmistqke avatar Apr 11 '24 20:04 bigmistqke