var THREEx=THREEx||{};THREEx.addSsLensFlare2DatGui=function(l,a){var u=l.passes[1].uniforms,e=l.passes[2].uniforms,s=l.passes[3].uniforms,t=l.passes[4].uniforms,o=l.passes[5].uniforms,r=l.passes[6].uniforms,i=a.passes[0].uniforms,n={threshold:.9,uGhostDispersal:e.uGhostDispersal.value,uHaloWidth:e.uHaloWidth.value,uDistortion:e.uDistortion.value,artefactScale:10,blendRatio:.5,blendLensOnly:function(){n.blendRatio=1,v()},blendDefault:function(){n.blendRatio=.5,v()},horizontalBlur:s.h.value,verticalBlur:t.v.value,blurNone:function(){n.horizontalBlur=0,n.verticalBlur=0,v()},blurLow:function(){n.horizontalBlur=.002,n.verticalBlur=.006,v()},blurHigh:function(){n.horizontalBlur=.006,n.verticalBlur=.01,v()}},v=function(){var l=1/(1-n.threshold),a=-n.threshold;u.uScale.value.set(l,l,l,1),u.uBias.value.set(a,a,a,0),e.uGhostDispersal.value=n.uGhostDispersal,e.uHaloWidth.value=n.uHaloWidth,e.uDistortion.value=n.uDistortion,s.h.value=n.horizontalBlur,t.v.value=n.verticalBlur,o.h.value=n.horizontalBlur,r.v.value=n.verticalBlur,i.artefactScale.value=n.artefactScale,i.mixRatio.value=n.blendRatio};v()};