learning-webgl
learning-webgl copied to clipboard
Experiment 04 · Refactor WebComponents to extract generics
Extract the generics of setting up a 3D scene from the WebComponents and isolate them in Mixins and dedicated non-visible components:
- [ ] Create canvas in
three-app - [ ] Have
three-appregister the THREE library in window context - [ ] Create scene in
three-scene - [ ] Create camera in
three-camera - [ ] Call
update()method automatically (setuprequestAnimationFrame()in a mixin)