mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 20:32:02 +08:00
13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
import { MeshLambertMaterial } from 'three';
|
|
import { propsValues } from '../tools.js';
|
|
import Material from './Material';
|
|
|
|
export default {
|
|
extends: Material,
|
|
setup(props) {
|
|
const material = new MeshLambertMaterial(propsValues(props, ['id']));
|
|
return { material };
|
|
},
|
|
__hmrId: 'LambertMaterial',
|
|
};
|