You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
565 B

6 months ago
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 );