mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 20:32:02 +08:00
16 lines
252 B
JavaScript
16 lines
252 B
JavaScript
|
import Texture from '../core/Texture';
|
||
|
|
||
|
export default {
|
||
|
extends: Texture,
|
||
|
inject: ['material'],
|
||
|
created() {
|
||
|
this.material.setMap(this.texture);
|
||
|
},
|
||
|
unmounted() {
|
||
|
this.material.setMap(null);
|
||
|
},
|
||
|
methods: {
|
||
|
},
|
||
|
__hmrId: 'Map',
|
||
|
};
|