import{d as t,A as e,s as a,F as r,r as o,o as s,c as n,w as i,a as d}from"./vendor.6afcf1a6.js";import{_ as p}from"./OrbitControlsWrapper.8e39b8e4.js";var l=t({components:{OrbitControlsWrapper:p},props:{count:{type:Number,default:1e4},opacity:{type:Number,default:.35},size:{type:Number,default:.2}},data:()=>({AdditiveBlending:e}),methods:{geoReady({instance:t}){const e=this.count,o=[],s=[];for(let r=0;r<e;r++)o.push(a.randFloatSpread(3),a.randFloatSpread(3),a.randFloatSpread(3)),s.push(1,1,1);t.setAttribute("position",new r(o,3)),t.setAttribute("color",new r(s,3)),this.update()},update(){var t;requestAnimationFrame(this.update);const e=null==(t=this.$refs.points)?void 0:t.$el.instance;if(!e)return;e.rotation.y-=.005;const a=(Math.sin(5e-4*Date.now())+1)/2;e.material.color.setHSL(a,.7,.1)}}});l.render=function(t,e,a,r,p,l){const u=o("bufferGeometry"),c=o("pointsMaterial"),f=o("points");return s(),n(f,{ref:"points",args:["$attached.geometry","$attached.material"]},{default:i((()=>[d(u,{onReady:t.geoReady},null,8,["onReady"]),d(c,{args:[{color:16777215,size:t.size,blending:t.AdditiveBlending,transparent:!0,opacity:t.opacity}]},null,8,["args"])])),_:1},8,["args"])};export{l as _};
