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
531 B
29 lines
531 B
6 months ago
|
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
||
|
|
||
|
import { LineBasicMaterial } from 'three';
|
||
|
|
||
|
const defaultValues = new LineBasicMaterial();
|
||
|
|
||
|
class LineBasicNodeMaterial extends NodeMaterial {
|
||
|
|
||
|
constructor( parameters ) {
|
||
|
|
||
|
super();
|
||
|
|
||
|
this.isLineBasicNodeMaterial = true;
|
||
|
|
||
|
this.lights = false;
|
||
|
this.normals = false;
|
||
|
|
||
|
this.setDefaultValues( defaultValues );
|
||
|
|
||
|
this.setValues( parameters );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default LineBasicNodeMaterial;
|
||
|
|
||
|
addNodeMaterial( 'LineBasicNodeMaterial', LineBasicNodeMaterial );
|