mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 12:22:03 +08:00
14 lines
310 B
JavaScript
14 lines
310 B
JavaScript
import { MeshBasicMaterial } from 'three';
|
|
import { propsValues } from '../tools.js';
|
|
import Material from './Material';
|
|
|
|
export default {
|
|
extends: Material,
|
|
methods: {
|
|
createMaterial() {
|
|
this.material = new MeshBasicMaterial(propsValues(this.$props));
|
|
},
|
|
},
|
|
__hmrId: 'BasicMaterial',
|
|
};
|