"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const i=require("../../../../utils/mini3d/components/Particles.js");require("lodash");function n(e,r){const a=e.scene.getObjectByName("Particles");a&&e.scene.remove(a),e.particles=new i.Particles(e,{num:r.num,range:r.range,dir:r.dir,speed:r.speed,material:new t.PointsMaterial({map:i.Particles.createTexture(),size:r.material.size,color:new t.Color(r.material.color||"#00eeee"),transparent:!0,opacity:r.material.opacity,depthTest:!1,depthWrite:!1,vertexColors:!0,blending:t.AdditiveBlending,sizeAttenuation:!0})}),e.particles.name="particle",e.particles.instance.position.set(0,0,0),e.particles.instance.rotation.x=-Math.PI/2,e.particles.setParent(e.scene),e.particles.enable=!0,e.particles.instance.visible=r.show}exports.createParticles=n;
