1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 12:22:03 +08:00
trois/src/materials/PhongMaterial.js
2020-10-01 18:22:01 +02:00

13 lines
310 B
JavaScript

import { MeshPhongMaterial } from 'three';
import { propsValues } from '../tools.js';
import Material from './Material';
export default {
extends: Material,
setup(props) {
const material = new MeshPhongMaterial(propsValues(props, ['id']));
return { material };
},
__hmrId: 'PhongMaterial',
};