@rr0/ufoathome 0.189.0 → 0.190.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-scene/{BeamEditor-Cu6NLBA7.js → BeamEditor-BLtQJ7dq.js} +1 -1
- package/dist-embed-scene/{BirdEditor-BxlHc4L5.js → BirdEditor-C6dn5_wS.js} +1 -1
- package/dist-embed-scene/DroneEditor-iXr-XzB2.js +16 -0
- package/dist-embed-scene/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-scene/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-scene/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-scene/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-scene/DroneFlight-D0-Y_wej.js +1 -0
- package/dist-embed-scene/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-scene/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-scene/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-scene/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-scene/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-scene/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-scene/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-scene/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-scene/{LanternEditor-CpNWWMyY.js → LanternEditor-CHkp6fvG.js} +1 -1
- package/dist-embed-scene/{LaunchEditor-fuFCnkV4.js → LaunchEditor-C2XidkVF.js} +1 -1
- package/dist-embed-scene/{ModuleSession-Dd9RVc7I.js → ModuleSession-CnHhUFre.js} +2 -2
- package/dist-embed-scene/ModuleThree-BzKlu4H2.js +1 -0
- package/dist-embed-scene/{ParameterForm-DP2rnIe1.js → ParameterForm-liNpnZ93.js} +11 -11
- package/dist-embed-scene/{ReentryEditor-DGLg57vB.js → ReentryEditor-DqSDU-se.js} +1 -1
- package/dist-embed-scene/rr0-scene.mjs +314 -314
- package/dist-embed-scene/sightingSchema-CLXF9VE3.js +1 -0
- package/dist-embed-sighting/{BeamEditor-B1s17C_I.js → BeamEditor-Bl_2xUBv.js} +1 -1
- package/dist-embed-sighting/{BeamSystem-DTraCa17.js → BeamSystem-BdJfIbJy.js} +1 -1
- package/dist-embed-sighting/{BirdEditor-B__-UnpK.js → BirdEditor-DAw14Ex2.js} +1 -1
- package/dist-embed-sighting/{CaseReportExport-Dq8QfB_9.js → CaseReportExport-pqKd-0cF.js} +1 -1
- package/dist-embed-sighting/DroneEditor-C6uGwJCK.js +16 -0
- package/dist-embed-sighting/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-sighting/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-sighting/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-sighting/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-sighting/DroneFlight-BPuws32_.js +1 -0
- package/dist-embed-sighting/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-sighting/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-sighting/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-sighting/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-sighting/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-sighting/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-sighting/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-sighting/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-sighting/{GLTFLoader-61IhKnLS.js → GLTFLoader-BPxbcVGH.js} +1 -1
- package/dist-embed-sighting/{LanternEditor-C6tHr2lo.js → LanternEditor-2qGw33iQ.js} +1 -1
- package/dist-embed-sighting/{LaserBeam-R7ItI6m-.js → LaserBeam-DotCCB1U.js} +1 -1
- package/dist-embed-sighting/{LaunchEditor-CbQXmqaL.js → LaunchEditor-QW4_Sx3j.js} +1 -1
- package/dist-embed-sighting/{LaunchPlume-uRfBKA0Y.js → LaunchPlume-CNTwnOG6.js} +1 -1
- package/dist-embed-sighting/{LaunchSimulation-DgsYJUKz.js → LaunchSimulation-CoJIQGLm.js} +1 -1
- package/dist-embed-sighting/{ModuleSession-YoBCzrOV.js → ModuleSession-CQnRKmzR.js} +2 -2
- package/dist-embed-sighting/ModuleThree-FBgB1-pu.js +1 -0
- package/dist-embed-sighting/{ParameterForm-CkZQ1FlH.js → ParameterForm-DviNoiD5.js} +1 -1
- package/dist-embed-sighting/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
- package/dist-embed-sighting/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
- package/dist-embed-sighting/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
- package/dist-embed-sighting/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
- package/dist-embed-sighting/{ReentryEditor-BzOyu6AB.js → ReentryEditor-MgbKtSa4.js} +1 -1
- package/dist-embed-sighting/{ReentrySimulation-BDnSb3zB.js → ReentrySimulation-BR0KO3U0.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +369 -367
- package/dist-embed-sighting/sightingSchema-CLXF9VE3.js +1 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CeyXntPc.js → BallesterGuaspAssessor-CapyLOHE.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-DQcdww5w.js → BeamEditor-8960brcL.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-d2pPAwht.js → BeamSystem-BoMHmOf3.js} +1 -1
- package/dist-embed-sighting-editor/{CaseReportExport-DQEJL9zL.js → CaseReportExport-CYUM0gPZ.js} +1 -1
- package/dist-embed-sighting-editor/{ContrailSystem-B4tXvQXF.js → ContrailSystem-teTrI30G.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-C2E5CKcL.js → ControlPasses-PiJOqNOu.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-DvVcSmz6.js → CoverageAssessor-Zh8Hw6yp.js} +1 -1
- package/dist-embed-sighting-editor/DroneEditor-CnlkmY64.js +16 -0
- package/dist-embed-sighting-editor/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-sighting-editor/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-sighting-editor/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-sighting-editor/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-sighting-editor/DroneFlight-D4RRsn4m.js +1 -0
- package/dist-embed-sighting-editor/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-sighting-editor/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-sighting-editor/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-sighting-editor/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-sighting-editor/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-sighting-editor/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-sighting-editor/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-sighting-editor/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-sighting-editor/{GLTFLoader-fTZft-Zt.js → GLTFLoader-DWambWcY.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-uWB_oNGK.js → HeadlightSystem-LL1DHYBg.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-D-u8nJfp.js → HynekAssessor-wtavw_WK.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-MBuptUl8.js → InterviewEditorElement-46F4WJC9.js} +2 -2
- package/dist-embed-sighting-editor/{LaserBeam-DOGz1dOz.js → LaserBeam-BcOjgC8-.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchEditor-0BCDGChg.js → LaunchEditor-CUw-IXhX.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchPlume-DdX9-Rlw.js → LaunchPlume-By8E1xvy.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-BkdI45NE.js → LaunchSimulation-gytH8ZVf.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-_3-3Kbbt.js → ModuleConformance-DRVG5aJw.js} +2 -2
- package/dist-embed-sighting-editor/{ModuleSession-mVLpd6IE.js → ModuleSession-o0MYjWCQ.js} +2 -2
- package/dist-embed-sighting-editor/ModuleThree-D1RGQ8X2.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-DZ7dkdsm.js → ModulesPanelElement-Uk66Ixvl.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-BDjtUet2.js → NearestApproach-CgC-W_0w.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-DrseSHg-.js → PoherAssessor-C0PuGZ7E.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-De5BYxNx.js → RailwaySystem-CzCL0bVV.js} +1 -1
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
- package/dist-embed-sighting-editor/{ReentryEditor-DWqXWztK.js → ReentryEditor-v66u2mvZ.js} +1 -1
- package/dist-embed-sighting-editor/{ReentrySimulation-DpIG9b07.js → ReentrySimulation-CLu3E046.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-BoCM4vB1.js → ReferenceSystem-BWEFysoI.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_en-Bt9dhchY.js → SightingEditorMessages_en-BgJRl09G.js} +2 -2
- package/dist-embed-sighting-editor/{SightingEditorMessages_es-BnoHmcFj.js → SightingEditorMessages_es-CK8yosal.js} +2 -2
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-CE7C8gk2.js → SightingEditorMessages_fr-CcBrcUd-.js} +2 -2
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-lqZ7QCHn.js → SightingEditorMessages_it-Dvnh7lnI.js} +2 -2
- package/dist-embed-sighting-editor/{SightingFileEditor-Dtz8Azd2.js → SightingFileEditor-CQtQqTVl.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-DdEd9Z5I.js → TraceSystem-DrdYmWMC.js} +2 -2
- package/dist-embed-sighting-editor/{WaterSystem-DntD2XIE.js → WaterSystem-DJVs_drg.js} +2 -2
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +381 -374
- package/dist-embed-sighting-editor/sightingSchema-CLXF9VE3.js +1 -0
- package/package.json +1 -1
- package/dist-embed-scene/ModuleThree-q18pyqmA.js +0 -1
- package/dist-embed-scene/sightingSchema-DjI7FV42.js +0 -1
- package/dist-embed-sighting/ModuleThree-BHRi7HrA.js +0 -1
- package/dist-embed-sighting/ReadingSensitivityMessages_en-CF6XauSj.js +0 -1
- package/dist-embed-sighting/ReadingSensitivityMessages_es-Ca-13TTT.js +0 -1
- package/dist-embed-sighting/ReadingSensitivityMessages_fr-Djdd6Hdq.js +0 -1
- package/dist-embed-sighting/ReadingSensitivityMessages_it-CPUXxMqD.js +0 -1
- package/dist-embed-sighting/sightingSchema-DjI7FV42.js +0 -1
- package/dist-embed-sighting-editor/ModuleThree-cXvmWIn4.js +0 -1
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_en-CF6XauSj.js +0 -1
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_es-Ca-13TTT.js +0 -1
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_fr-Djdd6Hdq.js +0 -1
- package/dist-embed-sighting-editor/ReadingSensitivityMessages_it-CPUXxMqD.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-DjI7FV42.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{am as A,
|
|
1
|
+
import{am as A,b8 as F,aV as E,K as y,ax as D,V as M,b9 as I,ba as L,bb as R,n as N,ap as U,bc as C,bd as P,be as T,bf as B,aE as V,bg as O}from"./rr0-sighting-editor.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;static REFLECTION_SCALE=.5;group=new A;material=new F({color:new E(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});levels=new Map;reflectionTarget;reflectionUniforms={uWaterReflection:{value:null},uWaterReflectionMatrix:{value:new y},uWaterReflectionOn:{value:0}};mirrorCamera=new D;eye=new M;ahead=new M;up=new M;plane=new I;clip=new L;q=new L;size=new R;bias=new y().set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);constructor(){this.group.name="water",this.material.onBeforeCompile=t=>{Object.assign(t.uniforms,this.reflectionUniforms),t.vertexShader=t.vertexShader.replace("#include <common>",`#include <common>
|
|
2
2
|
varying vec3 vWaterWorld;`).replace("#include <project_vertex>",`#include <project_vertex>
|
|
3
3
|
vWaterWorld = (modelMatrix * vec4(transformed, 1.0)).xyz;`),t.fragmentShader=t.fragmentShader.replace("#include <common>",`#include <common>
|
|
4
4
|
varying vec3 vWaterWorld;
|
|
@@ -16,4 +16,4 @@ vWaterWorld = (modelMatrix * vec4(transformed, 1.0)).xyz;`),t.fragmentShader=t.f
|
|
|
16
16
|
outgoingLight = outgoingLight * (1.0 - mirrored.a * fresnel) + mirrored.rgb * fresnel;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
#include <opaque_fragment>`)}}set(t,o,e,f,i,s){this.clear();for(const l of t){const h=l.rings.map(n=>r.clip(n.map(u=>
|
|
19
|
+
#include <opaque_fragment>`)}}set(t,o,e,f,i,s){this.clear();for(const l of t){const h=l.rings.map(n=>r.clip(n.map(u=>N(u.lat,u.lng,o,e)),i)),c=h[0];if(!c||c.length<3)continue;const d=h.slice(1).filter(n=>n.length>=3),p=r.level(c,d,f,s);if(p===void 0)continue;const a=r.geometry(c,d,p+r.LIFT_M);if(!a)continue;const g=new U(a,this.material);g.name=`water ${l.id}`,g.renderOrder=r.RENDER_ORDER,g.receiveShadow=!0,this.group.add(g),this.levels.set(g,{y:p+r.LIFT_M,areaM2:Math.abs(C.area(c.map(n=>new R(n.x,n.z))))})}}get count(){return this.group.children.length}clear(){for(const t of[...this.group.children])t.geometry.dispose(),this.group.remove(t);this.levels.clear()}dispose(){this.clear(),this.material.dispose(),this.reflectionTarget?.dispose()}reflectBodies(t,o,e,f,i,s){const l=this.reflectionUniforms;l.uWaterReflectionOn.value=0;let h;for(const[v,b]of this.levels)v.visible&&(!h||b.areaM2>h.areaM2)&&(h=b);if(!i||!h)return;this.group.updateWorldMatrix(!0,!1);const c=h.y+this.group.position.y;if(e.updateMatrixWorld(),this.eye.setFromMatrixPosition(e.matrixWorld),this.eye.y<=c)return;t.getDrawingBufferSize(this.size);const d=Math.max(16,Math.round(this.size.x*r.REFLECTION_SCALE)),p=Math.max(16,Math.round(this.size.y*r.REFLECTION_SCALE));(!this.reflectionTarget||this.reflectionTarget.width!==d||this.reflectionTarget.height!==p)&&(this.reflectionTarget?.dispose(),this.reflectionTarget=new P(d,p,{type:B,minFilter:T,magFilter:T}));const a=this.mirrorCamera,g=v=>v.setY(2*c-v.y);a.position.copy(g(this.eye.clone())),e.getWorldDirection(this.ahead);const n=g(this.eye.clone().add(this.ahead));this.up.set(0,1,0).applyQuaternion(e.quaternion),a.up.set(this.up.x,-this.up.y,this.up.z),a.lookAt(n),a.fov=s??e.fov,a.aspect=e.aspect,a.near=e.near,a.far=e.far,a.updateProjectionMatrix(),a.updateMatrixWorld(),this.clipAtLevel(a,c),l.uWaterReflectionMatrix.value.copy(this.bias).multiply(a.projectionMatrix).multiply(a.matrixWorldInverse),o.traverseVisible(v=>{v.isLight&&v.layers.enable(f)});const u=t.getRenderTarget(),m=t.autoClear,x=t.shadowMap.autoUpdate,w=o.background,z=t.getClearAlpha();t.getClearColor(r.clearColor),o.background=null,t.shadowMap.autoUpdate=!1,t.setRenderTarget(this.reflectionTarget),t.setClearColor(0,0),t.autoClear=!0,a.layers.set(f),t.render(o,a),t.setRenderTarget(u),t.setClearColor(r.clearColor,z),t.autoClear=m,t.shadowMap.autoUpdate=x,o.background=w,l.uWaterReflection.value=this.reflectionTarget.texture,l.uWaterReflectionOn.value=1}static clearColor=new E;clipAtLevel(t,o){this.plane.setFromNormalAndCoplanarPoint(new M(0,1,0),new M(0,o,0)).applyMatrix4(t.matrixWorldInverse),this.clip.set(this.plane.normal.x,this.plane.normal.y,this.plane.normal.z,this.plane.constant);const e=t.projectionMatrix.elements;this.q.set((Math.sign(this.clip.x)+e[8])/e[0],(Math.sign(this.clip.y)+e[9])/e[5],-1,(1+e[10])/e[14]),this.clip.multiplyScalar(2/this.clip.dot(this.q)),e[2]=this.clip.x,e[6]=this.clip.y,e[10]=this.clip.z+1,e[14]=this.clip.w}static level(t,o,e,f){const i=t.map(n=>n.x),s=t.map(n=>n.z),[l,h,c,d]=[Math.min(...i),Math.max(...i),Math.min(...s),Math.max(...s)],p=Math.max(f,(h-l)/r.MAX_SAMPLES,(d-c)/r.MAX_SAMPLES,.5),a=[];for(let n=c+p/2;n<d;n+=p)for(let u=l+p/2;u<h;u+=p){const m={x:u,z:n};if(!r.contains(t,m)||o.some(w=>r.contains(w,m)))continue;const x=e(u,n);Number.isFinite(x)&&a.push(x)}if(a.length===0)for(const n of t)a.push(e(n.x,n.z));const g=a.filter(Number.isFinite).sort((n,u)=>n-u);if(g.length!==0)return g[Math.floor((g.length-1)*r.LEVEL_QUANTILE)]}static clip(t,o){let e=t;const f=[{inside:i=>i.x>=-o,cross:(i,s)=>r.atX(i,s,-o)},{inside:i=>i.x<=o,cross:(i,s)=>r.atX(i,s,o)},{inside:i=>i.z>=-o,cross:(i,s)=>r.atZ(i,s,-o)},{inside:i=>i.z<=o,cross:(i,s)=>r.atZ(i,s,o)}];for(const i of f){const s=[];for(let l=0;l<e.length;l++){const h=e[l],c=e[(l+e.length-1)%e.length];i.inside(h)?(i.inside(c)||s.push(i.cross(c,h)),s.push(h)):i.inside(c)&&s.push(i.cross(c,h))}if(e=s,e.length===0)break}return e}static atX(t,o,e){return{x:e,z:t.z+(o.z-t.z)*(e-t.x)/(o.x-t.x)}}static atZ(t,o,e){return{x:t.x+(o.x-t.x)*(e-t.z)/(o.z-t.z),z:e}}static contains(t,o){let e=!1;for(let f=0,i=t.length-1;f<t.length;i=f++){const s=t[f],l=t[i];s.z>o.z!=l.z>o.z&&o.x<(l.x-s.x)*(o.z-s.z)/(l.z-s.z)+s.x&&(e=!e)}return e}static geometry(t,o,e){const f=a=>new R(a.x,a.z),i=t.map(f),s=o.map(a=>a.map(f)),l=C.triangulateShape(i,s);if(l.length===0)return;const h=[...i,...s.flat()],c=[];for(const[a,g,n]of l){const[u,m,x]=[h[a],h[g],h[n]],w=(m.y-u.y)*(x.x-u.x)-(m.x-u.x)*(x.y-u.y)>0;for(const z of w?[u,m,x]:[u,x,m])c.push(z.x,e,z.y)}const d=new V;d.setAttribute("position",new O(c,3));const p=new Float32Array(c.length);for(let a=1;a<p.length;a+=3)p[a]=1;return d.setAttribute("normal",new O(p,3)),d.computeBoundingSphere(),d}}export{r as WaterSystem};
|