29 lines
565 B
JavaScript
29 lines
565 B
JavaScript
|
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
||
|
|
||
|
import { MeshBasicMaterial } from 'three';
|
||
|
|
||
|
const defaultValues = new MeshBasicMaterial();
|
||
|
|
||
|
class MeshBasicNodeMaterial extends NodeMaterial {
|
||
|
|
||
|
constructor( parameters ) {
|
||
|
|
||
|
super();
|
||
|
|
||
|
this.isMeshBasicNodeMaterial = true;
|
||
|
|
||
|
this.lights = false;
|
||
|
//this.normals = false; @TODO: normals usage by context
|
||
|
|
||
|
this.setDefaultValues( defaultValues );
|
||
|
|
||
|
this.setValues( parameters );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default MeshBasicNodeMaterial;
|
||
|
|
||
|
addNodeMaterial( 'MeshBasicNodeMaterial', MeshBasicNodeMaterial );
|