mirror of
https://github.com/troisjs/trois.git
synced 2024-11-25 04:42:01 +08:00
12 lines
222 B
JavaScript
12 lines
222 B
JavaScript
|
import { MeshStandardMaterial } from 'three';
|
||
|
import Material from './Material';
|
||
|
|
||
|
export default {
|
||
|
extends: Material,
|
||
|
created() {
|
||
|
this.material = new MeshStandardMaterial({
|
||
|
color: this.color,
|
||
|
});
|
||
|
},
|
||
|
};
|