InstancedPoints.js 431 B

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