mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 12:22:03 +08:00
12 lines
216 B
JavaScript
12 lines
216 B
JavaScript
|
import { MeshPhongMaterial } from 'three';
|
||
|
import Material from './Material';
|
||
|
|
||
|
export default {
|
||
|
extends: Material,
|
||
|
created() {
|
||
|
this.material = new MeshPhongMaterial({
|
||
|
color: this.color,
|
||
|
});
|
||
|
},
|
||
|
};
|