1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 12:22:03 +08:00
trois/src/materials/PhysicalMaterial.js

13 lines
253 B
JavaScript
Raw Normal View History

2020-09-14 22:57:11 +08:00
import { MeshPhysicalMaterial } from 'three';
import Material from './Material';
export default {
extends: Material,
created() {
this.material = new MeshPhysicalMaterial({
color: this.color,
});
},
2020-09-19 23:00:29 +08:00
__hmrId: 'PhysicalMaterial',
2020-09-14 22:57:11 +08:00
};