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