1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-25 04:42:01 +08:00
trois/src/materials/LambertMaterial.js
2020-10-03 12:34:14 +02:00

14 lines
324 B
JavaScript

import { MeshLambertMaterial } from 'three';
import { propsValues } from '../tools.js';
import Material from './Material';
export default {
extends: Material,
methods: {
createMaterial() {
this.material = new MeshLambertMaterial(propsValues(this.$props, ['id']));
},
},
__hmrId: 'LambertMaterial',
};