diff --git a/README.md b/README.md index 5018689..348b6b3 100644 --- a/README.md +++ b/README.md @@ -74,9 +74,13 @@ Thanks to VueJS/ViteJS, **TroisJS use watchers and HMR to update ThreeJS objects - [ ] ... - [ ] Post Processing - [x] EffectComposer - - [x] Renderpass - - [x] UnrealBloomPass - - [ ] ... + - [x] BokehPass + - [x] FilmPass + - [x] HalftonePass + - [x] Renderpass + - [x] UnrealBloomPass + - [ ] ... +- [ ] ... ## Installation diff --git a/src/components/demos/Demo1.vue b/src/components/demos/Demo1.vue index 6378100..23cbd98 100644 --- a/src/components/demos/Demo1.vue +++ b/src/components/demos/Demo1.vue @@ -1,10 +1,10 @@ @@ -14,10 +14,9 @@ export default { mounted() { const renderer = this.$refs.renderer; const box = this.$refs.box.mesh; - renderer.onBeforeRender(() => { box.rotation.x += 0.01; }); }, }; - \ No newline at end of file + diff --git a/src/components/demos/Demo2.vue b/src/components/demos/Demo2.vue index 5f9b78f..c14a99c 100644 --- a/src/components/demos/Demo2.vue +++ b/src/components/demos/Demo2.vue @@ -1,18 +1,30 @@ diff --git a/src/components/demos/Demo3.vue b/src/components/demos/Demo3.vue index 27778ee..0316e83 100644 --- a/src/components/demos/Demo3.vue +++ b/src/components/demos/Demo3.vue @@ -1,17 +1,17 @@ @@ -22,7 +22,7 @@ import { Object3D, MathUtils } from 'three'; export default { setup() { return { - NUM_INSTANCES: 500, + NUM_INSTANCES: 2000, }; }, mounted() { @@ -31,7 +31,7 @@ export default { const dummy = new Object3D(); const { randFloat: rnd, randFloatSpread: rndFS } = MathUtils; for (let i = 0; i < this.NUM_INSTANCES; i++) { - dummy.position.set(rndFS(100), rndFS(100), rndFS(100)); + dummy.position.set(rndFS(200), rndFS(200), rndFS(200)); const scale = rnd(0.2, 1); dummy.scale.set(scale, scale, scale); dummy.updateMatrix(); diff --git a/src/components/demos/Demo4.vue b/src/components/demos/Demo4.vue index 3c35486..7988c9b 100644 --- a/src/components/demos/Demo4.vue +++ b/src/components/demos/Demo4.vue @@ -1,7 +1,7 @@