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.
44 lines
702 B
44 lines
702 B
2 years ago
|
import { PointsMaterial } from 'three';
|
||
|
|
||
|
class PointsNodeMaterial extends PointsMaterial {
|
||
|
|
||
|
constructor( parameters ) {
|
||
|
|
||
|
super( parameters );
|
||
|
|
||
|
this.colorNode = null;
|
||
|
this.opacityNode = null;
|
||
|
|
||
|
this.alphaTestNode = null;
|
||
|
|
||
|
this.lightNode = null;
|
||
|
|
||
|
this.sizeNode = null;
|
||
|
|
||
|
this.positionNode = null;
|
||
|
|
||
|
}
|
||
|
|
||
|
copy( source ) {
|
||
|
|
||
|
this.colorNode = source.colorNode;
|
||
|
this.opacityNode = source.opacityNode;
|
||
|
|
||
|
this.alphaTestNode = source.alphaTestNode;
|
||
|
|
||
|
this.lightNode = source.lightNode;
|
||
|
|
||
|
this.sizeNode = source.sizeNode;
|
||
|
|
||
|
this.positionNode = source.positionNode;
|
||
|
|
||
|
return super.copy( source );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
PointsNodeMaterial.prototype.isNodeMaterial = true;
|
||
|
|
||
|
export default PointsNodeMaterial;
|