1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 20:32:02 +08:00
trois/src/materials/BasicMaterial.js
2020-09-19 17:00:29 +02:00

13 lines
244 B
JavaScript

import { MeshBasicMaterial } from 'three';
import Material from './Material';
export default {
extends: Material,
created() {
this.material = new MeshBasicMaterial({
color: this.color,
});
},
__hmrId: 'BasicMaterial',
};