solid-three
solid-three copied to clipboard
solidified `solid-three`
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 aroundcreateResource
. - 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.
-