1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 20:32:02 +08:00
trois/src/materials/LambertMaterial.js
Kevin Levron 2b441f7cd7 wip
2021-03-06 23:14:22 +01:00

14 lines
316 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));
},
},
__hmrId: 'LambertMaterial',
};