2020-10-03 18:34:14 +08:00
|
|
|
import { MeshPhysicalMaterial } from 'three';
|
2020-10-02 00:22:01 +08:00
|
|
|
import { propsValues } from '../tools.js';
|
|
|
|
import StandardMaterial from './StandardMaterial';
|
2020-09-14 22:57:11 +08:00
|
|
|
|
|
|
|
export default {
|
2020-10-02 00:22:01 +08:00
|
|
|
extends: StandardMaterial,
|
2020-10-03 18:34:14 +08:00
|
|
|
methods: {
|
|
|
|
createMaterial() {
|
2021-03-07 06:14:22 +08:00
|
|
|
this.material = new MeshPhysicalMaterial(propsValues(this.$props));
|
2020-10-03 18:34:14 +08:00
|
|
|
},
|
2020-09-14 22:57:11 +08:00
|
|
|
},
|
2020-09-19 23:00:29 +08:00
|
|
|
__hmrId: 'PhysicalMaterial',
|
2020-09-14 22:57:11 +08:00
|
|
|
};
|