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.
22 lines
488 B
22 lines
488 B
6 months ago
|
import {
|
||
|
Mesh
|
||
|
} from 'three';
|
||
|
import InstancedPointsGeometry from '../geometries/InstancedPointsGeometry.js';
|
||
|
import InstancedPointsNodeMaterial from '../nodes/materials/InstancedPointsNodeMaterial.js';
|
||
|
|
||
|
class InstancedPoints extends Mesh {
|
||
|
|
||
|
constructor( geometry = new InstancedPointsGeometry(), material = new InstancedPointsNodeMaterial() ) {
|
||
|
|
||
|
super( geometry, material );
|
||
|
|
||
|
this.isInstancedPoints = true;
|
||
|
|
||
|
this.type = 'InstancedPoints';
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default InstancedPoints;
|