InstancedPoints.js 453 B

123456789101112131415161718192021
  1. import { Mesh } from 'three';
  2. import { InstancedPointsNodeMaterial } from 'three/tsl';
  3. import InstancedPointsGeometry from '../geometries/InstancedPointsGeometry.js';
  4. class InstancedPoints extends Mesh {
  5. constructor( geometry = new InstancedPointsGeometry(), material = new InstancedPointsNodeMaterial() ) {
  6. super( geometry, material );
  7. this.isInstancedPoints = true;
  8. this.type = 'InstancedPoints';
  9. }
  10. }
  11. export default InstancedPoints;
粤ICP备19079148号