node-ejs-renderer/node_modules/three/examples/jsm/nodes/materials/PointsNodeMaterial.js
2024-06-09 13:55:01 -04:00

40 lines
653 B
JavaScript

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 );