import{r as j}from"./chunk-CuuP8Xz2.js";import{I as B}from"./chunk-ETf0-tW6.js";import{f as S}from"./chunk-CTGhZ228.js";import"./chunk-tuBEHo31.js";/* empty css              */import"./chunk-BXl3LOEh.js";function K({premultipliedAlpha:l,clock:o,autoUpdate:r,preUpdate:n,originDistance:d,maxStdDev:u,minPixelRadius:p,maxPixelRadius:m,minAlpha:c,enable2DGS:s,preBlurAmount:v,blurAmount:f,focalDistance:a,apertureSize:h,falloff:A,clipXY:x,focalAdjustment:D,view:G}){const b=S(i=>i.gl),P=S(i=>i.scene),R=S(i=>i.invalidate),U=(i,t)=>i===void 0||t===void 0||t<=0?0:2*Math.atan(.5*i/t),e=j.useMemo(()=>{let i=null;if(P.traverse(g=>{g instanceof B&&(i=g)}),i)return i;const t=new B({renderer:b,premultipliedAlpha:l,clock:o,autoUpdate:r,preUpdate:n,originDistance:d,maxStdDev:u,minPixelRadius:p,maxPixelRadius:m,minAlpha:c,enable2DGS:s,preBlurAmount:v,blurAmount:f,focalDistance:a,apertureAngle:U(h,a),falloff:A,clipXY:x,focalAdjustment:D,view:G});return P.add(t),t},[b]);return j.useEffect(()=>{l!==void 0&&(e.premultipliedAlpha=l),o!==void 0&&(e.clock=o),r!==void 0&&(e.autoUpdate=r),n!==void 0&&(e.preUpdate=n),d!==void 0&&(e.originDistance=d),u!==void 0&&(e.maxStdDev=u),p!==void 0&&(e.minPixelRadius=p),m!==void 0&&(e.maxPixelRadius=m),c!==void 0&&(e.minAlpha=c),s!==void 0&&(e.enable2DGS=s),v!==void 0&&(e.preBlurAmount=v),f!==void 0&&(e.blurAmount=f),a!==void 0&&(e.focalDistance=a),e.apertureAngle=U(h,a),A!==void 0&&(e.falloff=A),x!==void 0&&(e.clipXY=x),D!==void 0&&(e.focalAdjustment=D),R()},[e,R,l,o,r,n,d,u,p,m,c,s,v,f,a,h,A,x,D]),null}export{K as default};
