import { Material } from './Material.js'; import { Color } from '../math/Color.js'; /** * parameters = { * color: , * opacity: , * map: new THREE.Texture( ), * alphaMap: new THREE.Texture( ), * * size: , * sizeAttenuation: * * morphTargets: * } */ class PointsMaterial extends Material { constructor( parameters ) { super(); this.type = 'PointsMaterial'; this.color = new Color( 0xffffff ); this.map = null; this.alphaMap = null; this.size = 1; this.sizeAttenuation = true; this.morphTargets = false; this.setValues( parameters ); } copy( source ) { super.copy( source ); this.color.copy( source.color ); this.map = source.map; this.alphaMap = source.alphaMap; this.size = source.size; this.sizeAttenuation = source.sizeAttenuation; this.morphTargets = source.morphTargets; return this; } } PointsMaterial.prototype.isPointsMaterial = true; export { PointsMaterial };