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.
40 lines
653 B
40 lines
653 B
6 months ago
|
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
||
|
|
||
|
import { PointsMaterial } from 'three';
|
||
|
|
||
|
const defaultValues = new PointsMaterial();
|
||
|
|
||
|
class PointsNodeMaterial extends NodeMaterial {
|
||
|
|
||
|
constructor( parameters ) {
|
||
|
|
||
|
super();
|
||
|
|
||
|
this.isPointsNodeMaterial = true;
|
||
|
|
||
|
this.lights = false;
|
||
|
this.normals = false;
|
||
|
this.transparent = true;
|
||
|
|
||
|
this.sizeNode = null;
|
||
|
|
||
|
this.setDefaultValues( defaultValues );
|
||
|
|
||
|
this.setValues( parameters );
|
||
|
|
||
|
}
|
||
|
|
||
|
copy( source ) {
|
||
|
|
||
|
this.sizeNode = source.sizeNode;
|
||
|
|
||
|
return super.copy( source );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default PointsNodeMaterial;
|
||
|
|
||
|
addNodeMaterial( 'PointsNodeMaterial', PointsNodeMaterial );
|