1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00
This commit is contained in:
Kevin Levron 2020-10-05 23:09:55 +02:00
parent 3b807fdb0f
commit b800071f93
3 changed files with 6 additions and 48 deletions

View File

@ -31,9 +31,12 @@ Thanks to VueJS/ViteJS, **TroisJS use watchers and HMR to update ThreeJS objects
- [ ] Materials
- [x] Basic
- [x] Lambert
- [x] Mapcat
- [x] Phong
- [x] Standard
- [x] Physical
- [x] Standard
- [x] SubSurface
- [x] Toon
- [ ] ...
- [ ] Geometries
- [x] Box
@ -52,34 +55,14 @@ Thanks to VueJS/ViteJS, **TroisJS use watchers and HMR to update ThreeJS objects
- [x] TorusKnot
- [x] Tube
- [ ] ...
- [ ] Meshes
- [x] Box
- [x] Circle
- [x] Cone
- [x] Cylinder
- [x] Dodecahedron
- [x] Icosahedron
- [x] Image
- [x] InstancedMesh
- [x] Lathe
- [x] Octahedron
- [x] Plane
- [x] Polyhedron
- [x] Ring
- [x] Sphere
- [x] Sprite
- [x] Tetrahedron
- [x] Text
- [x] Torus
- [x] TorusKnot
- [x] Tube
- [ ] ...
- [ ] Post Processing
- [x] EffectComposer
- [x] BokehPass
- [x] FilmPass
- [x] FXAAPass
- [x] HalftonePass
- [x] Renderpass
- [x] SMAAPass
- [x] UnrealBloomPass
- [ ] ...
- [ ] ...

View File

@ -14,7 +14,6 @@ export default {
},
methods: {
createMaterial() {
console.log(this.$props);
this.material = new MeshPhongMaterial(propsValues(this.$props, ['id']));
},
addWatchers() {

View File

@ -1,24 +0,0 @@
import { CubeRefractionMapping } from 'three';
import CubeTexture from '../core/CubeTexture';
export default {
extends: CubeTexture,
inject: ['material'],
props: {
refractionRatio: { type: Number, default: 0.98 },
},
created() {
this.texture.mapping = CubeRefractionMapping;
this.material.setRefractionMap(this.texture, this.refractionRatio);
},
unmounted() {
this.material.setEnvMap(null);
},
methods: {
refreshTexture() {
this.createTexture();
this.material.setRefractionMap(this.texture, this.refractionRatio);
},
},
__hmrId: 'RefractionMap',
};