# ✨ VueJS 3 + ViteJS + ThreeJS ⚡ I wanted to try to write a lib similar to [react-three-fiber](https://github.com/react-spring/react-three-fiber) but for VueJS.

Demos : https://troisjs.github.io/trois/ I started from scratch... I don't know if I will have time to maintain this, but feel free to participate :) I will try to rewrite some of my [WebGL demos](https://codepen.io/collection/AGZywR) to see if this little toy can do the job. *Trois* is a french word, it means *Three*. ## Features - [ ] Lights - [x] AmbientLight - [x] PointLight - [x] SpotLight - [ ] ... - [ ] Materials - [x] Basic - [x] Phong - [x] Lambert - [x] Standard - [x] Sub Surface Scattering - [ ] ... - [ ] Geometries - [x] Box - [x] Sphere - [ ] ... - [ ] Meshes - [x] Box - [x] Plane - [x] Sphere - [x] Text - [x] InstancedMesh - [ ] ... - [ ] Post Processing - [x] EffectComposer - [x] Renderpass - [x] UnrealBloomPass - [ ] ... - [ ] Watch props - [ ] Improve HMR ## Installation yarn add troisjs ## PoC I first made a simple *Proof of Concept*, take a look at [Demo1.vue](/src/components/demos/Demo1.vue) : ```html ``` ## InstancedMesh Take a look at [Demo2.vue](/src/components/demos/Demo2.vue). ### Template ```html ``` ## GLTF Take a look at [DemoGLTF.vue](/src/components/demos/DemoGLTF.vue). ```html ``` ## Dev git clone https://github.com/troisjs/trois cd trois yarn yarn dev