ThreeJS-Webpack-ES6-Boilerp.../src/js/app/material.js

25 lines
501 B
JavaScript
Raw Normal View History

2016-09-12 19:54:07 +00:00
import THREE from 'three';
import Config from './../data/config';
export default class Material {
constructor() {
this.emissive = new THREE.MeshBasicMaterial({
color: 0xeeeeee,
side: THREE.DoubleSide,
fog: false
});
this.standard = new THREE.MeshStandardMaterial({
shading: THREE.FlatShading,
roughness: 1,
metalness: 0,
side: THREE.DoubleSide,
fog: false
});
this.wire = new THREE.MeshBasicMaterial({wireframe: true});
}
}