mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
readme : hmr
This commit is contained in:
parent
2f278a912b
commit
a93693cba3
30
README.md
30
README.md
@ -16,19 +16,32 @@ I will try to rewrite some of my [WebGL demos](https://codepen.io/collection/AG
|
|||||||
|
|
||||||
*Trois* is a french word, it means *Three*.
|
*Trois* is a french word, it means *Three*.
|
||||||
|
|
||||||
|
## HMR
|
||||||
|
|
||||||
|
Thanks to VueJS/ViteJS, **TroisJS use watchers and HMR to update ThreeJS objects when you update a template**. This means the result in your browser will be automatically updated without reloading all the stuff. **This is really helpful when you are creating a TroisJS Scene**.
|
||||||
|
|
||||||
|
- [ ] HMR
|
||||||
|
- [x] Camera : position
|
||||||
|
- [x] Light : position
|
||||||
|
- [x] Material : color
|
||||||
|
- [x] Mesh : position, rotation ,scale
|
||||||
|
- [ ] ...
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- [ ] Lights
|
- [ ] Lights
|
||||||
- [x] AmbientLight
|
- [x] AmbientLight
|
||||||
|
- [x] DirectionalLight
|
||||||
- [x] PointLight
|
- [x] PointLight
|
||||||
- [x] SpotLight
|
- [x] SpotLight
|
||||||
- [ ] ...
|
- [ ] ...
|
||||||
- [ ] Materials
|
- [ ] Materials
|
||||||
- [x] Basic
|
- [x] Basic
|
||||||
- [x] Phong
|
|
||||||
- [x] Lambert
|
- [x] Lambert
|
||||||
|
- [x] Phong
|
||||||
- [x] Standard
|
- [x] Standard
|
||||||
- [x] Sub Surface Scattering
|
- [x] Physical
|
||||||
|
- [x] SubSurface
|
||||||
- [ ] ...
|
- [ ] ...
|
||||||
- [ ] Geometries
|
- [ ] Geometries
|
||||||
- [x] Box
|
- [x] Box
|
||||||
@ -36,23 +49,30 @@ I will try to rewrite some of my [WebGL demos](https://codepen.io/collection/AG
|
|||||||
- [ ] ...
|
- [ ] ...
|
||||||
- [ ] Meshes
|
- [ ] Meshes
|
||||||
- [x] Box
|
- [x] Box
|
||||||
|
- [ ] Image (wip)
|
||||||
|
- [x] InstancedMesh
|
||||||
- [x] Plane
|
- [x] Plane
|
||||||
- [x] Sphere
|
- [x] Sphere
|
||||||
|
- [x] Sprite
|
||||||
- [x] Text
|
- [x] Text
|
||||||
- [x] InstancedMesh
|
|
||||||
- [ ] ...
|
- [ ] ...
|
||||||
- [ ] Post Processing
|
- [ ] Post Processing
|
||||||
- [x] EffectComposer
|
- [x] EffectComposer
|
||||||
- [x] Renderpass
|
- [x] Renderpass
|
||||||
- [x] UnrealBloomPass
|
- [x] UnrealBloomPass
|
||||||
- [ ] ...
|
- [ ] ...
|
||||||
- [ ] Watch props
|
|
||||||
- [ ] Improve HMR
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
yarn add troisjs
|
yarn add troisjs
|
||||||
|
|
||||||
|
## Vue plugin
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { TroisJSVuePlugin } from 'troisjs';
|
||||||
|
app.use(TroisJSVuePlugin);
|
||||||
|
```
|
||||||
|
|
||||||
## PoC
|
## PoC
|
||||||
|
|
||||||
I first made a simple *Proof of Concept*, take a look at [Demo1.vue](/src/components/demos/Demo1.vue) :
|
I first made a simple *Proof of Concept*, take a look at [Demo1.vue](/src/components/demos/Demo1.vue) :
|
||||||
|
Loading…
Reference in New Issue
Block a user