Merge branch 'master' into online

# Conflicts:
#	.fes.js
This commit is contained in:
hawk86104 2024-03-18 10:14:35 +08:00
commit 88b4bd6a5e
219 changed files with 349 additions and 267 deletions

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2023-10-16 10:53:09
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-03-12 11:17:04
* @LastEditTime: 2024-03-18 10:13:00
*/
// import { resolve } from 'path';
import { join } from 'path';

View File

@ -49,12 +49,13 @@
因项目经常更新编译,如发现访问错误,请清空浏览器缓存。
```
![展示](./preview/数字城市1.gif)
![展示](./public/plugins/simpleGIS/preview/mapBuildings.gif)
![展示](./preview/数字城市2.gif)
![展示](./public/plugins/digitalCity/preview/city2.gif)
![展示](./preview/地球3.gif)
![展示](./preview/热力图2.gif)
![展示](./preview/热力图.gif)
![展示](./preview/models.gif)
![展示](./preview/数字大脑.gif)
![展示](./preview/shadertoyMaterial.gif)

View File

@ -1 +1 @@
.svgCom>div:first-of-type{position:relative!important}.svgCom,.svgCom #outer{-webkit-user-select:none;user-select:none;pointer-events:none!important}.svgCom #outer #inner{cursor:pointer;-webkit-user-select:none;user-select:none}svg[data-v-a8e199ed]{width:300px;height:300px}svg circle[data-v-a8e199ed]{stroke:#fff}.circle[data-v-a8e199ed]{transform-origin:center}#arc1[data-v-a8e199ed]{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota-a8e199ed infinite linear}#arc3[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota-a8e199ed infinite linear}#arc4[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota-a8e199ed infinite linear reverse}#arc5[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear}#arc6[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota-a8e199ed infinite linear alternate}#arc7[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear reverse}text[data-v-a8e199ed]{fill:#fff;font:700 24px sans-serif}@keyframes rota-a8e199ed{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-0b7a8ccb]{font-family:sans-serif}.circleScale[data-v-0b7a8ccb]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-0b7a8ccb]{animation:circleScaleExpandOld-0b7a8ccb 1s ease-in forwards}.circleScaleAnimationNew[data-v-0b7a8ccb]{animation:circleScaleExpandNew-0b7a8ccb 1s ease-out forwards}@keyframes circleScaleExpandOld-0b7a8ccb{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-0b7a8ccb{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-0b7a8ccb]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-0b7a8ccb]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-0b7a8ccb]{background-image:url(../png/heatmap2.cUx8f8j51710511998162.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-0b7a8ccb]{list-style:none}
.svgCom>div:first-of-type{position:relative!important}.svgCom,.svgCom #outer{-webkit-user-select:none;user-select:none;pointer-events:none!important}.svgCom #outer #inner{cursor:pointer;-webkit-user-select:none;user-select:none}svg[data-v-a8e199ed]{width:300px;height:300px}svg circle[data-v-a8e199ed]{stroke:#fff}.circle[data-v-a8e199ed]{transform-origin:center}#arc1[data-v-a8e199ed]{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota-a8e199ed infinite linear}#arc3[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota-a8e199ed infinite linear}#arc4[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota-a8e199ed infinite linear reverse}#arc5[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear}#arc6[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota-a8e199ed infinite linear alternate}#arc7[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear reverse}text[data-v-a8e199ed]{fill:#fff;font:700 24px sans-serif}@keyframes rota-a8e199ed{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-0b7a8ccb]{font-family:sans-serif}.circleScale[data-v-0b7a8ccb]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-0b7a8ccb]{animation:circleScaleExpandOld-0b7a8ccb 1s ease-in forwards}.circleScaleAnimationNew[data-v-0b7a8ccb]{animation:circleScaleExpandNew-0b7a8ccb 1s ease-out forwards}@keyframes circleScaleExpandOld-0b7a8ccb{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-0b7a8ccb{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-0b7a8ccb]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-0b7a8ccb]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-0b7a8ccb]{background-image:url(../png/heatmap2.cUx8f8j51710727997925.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-0b7a8ccb]{list-style:none}

File diff suppressed because one or more lines are too long

10
dist/index.html vendored
View File

@ -3,7 +3,7 @@
<html lang="en">
<head>
<script type="module" crossorigin src="./js/polyfills.Y5XKHfn91710511998162.js"></script>
<script type="module" crossorigin src="./js/polyfills.Y5XKHfn91710727997925.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -21,10 +21,10 @@
})();
</script>
<script type="module" crossorigin src="./js/index.s9-5P9071710511998162.js"></script>
<link rel="modulepreload" crossorigin href="./js/vendor.N0szyCtn1710511998162.js">
<link rel="stylesheet" crossorigin href="./css/vendor.25MBa4FE1710511998162.css">
<link rel="stylesheet" crossorigin href="./css/index.7XCmxNsP1710511998162.css">
<script type="module" crossorigin src="./js/index.TLnLrkEE1710727997925.js"></script>
<link rel="modulepreload" crossorigin href="./js/vendor.Whz5JOL71710727997925.js">
<link rel="stylesheet" crossorigin href="./css/vendor.25MBa4FE1710727997925.css">
<link rel="stylesheet" crossorigin href="./css/index.7XCmxNsP1710727997925.css">
</head>
<body>

View File

@ -1 +1 @@
import{ar as y,as as T,bA as E,bB as b,bC as A}from"./vendor.N0szyCtn1710511998162.js";function x(i,a=!1){const r=i[0].index!==null,m=new Set(Object.keys(i[0].attributes)),s=new Set(Object.keys(i[0].morphAttributes)),f={},t={},d=i[0].morphTargetsRelative,u=new y;let g=0;for(let e=0;e<i.length;++e){const n=i[e];let l=0;if(r!==(n.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(const o in n.attributes){if(!m.has(o))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+'. All geometries must have compatible attributes; make sure "'+o+'" attribute exists among all geometries, or in none of them.'),null;f[o]===void 0&&(f[o]=[]),f[o].push(n.attributes[o]),l++}if(l!==m.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". Make sure all geometries have the same number of attributes."),null;if(d!==n.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const o in n.morphAttributes){if(!s.has(o))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphAttributes must be consistent throughout all geometries."),null;t[o]===void 0&&(t[o]=[]),t[o].push(n.morphAttributes[o])}if(a){let o;if(r)o=n.index.count;else if(n.attributes.position!==void 0)o=n.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". The geometry must have either an index or a position attribute"),null;u.addGroup(g,o,e),g+=o}}if(r){let e=0;const n=[];for(let l=0;l<i.length;++l){const o=i[l].index;for(let c=0;c<o.count;++c)n.push(o.getX(c)+e);e+=i[l].attributes.position.count}u.setIndex(n)}for(const e in f){const n=p(f[e]);if(!n)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" attribute."),null;u.setAttribute(e,n)}for(const e in t){const n=t[e][0].length;if(n===0)break;u.morphAttributes=u.morphAttributes||{},u.morphAttributes[e]=[];for(let l=0;l<n;++l){const o=[];for(let h=0;h<t[e].length;++h)o.push(t[e][h][l]);const c=p(o);if(!c)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" morphAttribute."),null;u.morphAttributes[e].push(c)}}return u}function p(i){let a,r,m,s=-1,f=0;for(let g=0;g<i.length;++g){const e=i[g];if(a===void 0&&(a=e.array.constructor),a!==e.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(r===void 0&&(r=e.itemSize),r!==e.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(m===void 0&&(m=e.normalized),m!==e.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(s===-1&&(s=e.gpuType),s!==e.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;f+=e.count*r}const t=new a(f),d=new T(t,r,m);let u=0;for(let g=0;g<i.length;++g){const e=i[g];if(e.isInterleavedBufferAttribute){const n=u/r;for(let l=0,o=e.count;l<o;l++)for(let c=0;c<r;c++){const h=e.getComponent(l,c);d.setComponent(l+n,c,h)}}else t.set(e.array,u);u+=e.count*r}return s!==void 0&&(d.gpuType=s),d}function B(i,a){if(a===E)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),i;if(a===b||a===A){let r=i.getIndex();if(r===null){const t=[],d=i.getAttribute("position");if(d!==void 0){for(let u=0;u<d.count;u++)t.push(u);i.setIndex(t),r=i.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),i}const m=r.count-2,s=[];if(a===b)for(let t=1;t<=m;t++)s.push(r.getX(0)),s.push(r.getX(t)),s.push(r.getX(t+1));else for(let t=0;t<m;t++)t%2===0?(s.push(r.getX(t)),s.push(r.getX(t+1)),s.push(r.getX(t+2))):(s.push(r.getX(t+2)),s.push(r.getX(t+1)),s.push(r.getX(t)));s.length/3!==m&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const f=i.clone();return f.setIndex(s),f.clearGroups(),f}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",a),i}export{x as m,B as t};
import{ar as y,as as T,bA as E,bB as b,bC as A}from"./vendor.Whz5JOL71710727997925.js";function x(i,a=!1){const r=i[0].index!==null,m=new Set(Object.keys(i[0].attributes)),s=new Set(Object.keys(i[0].morphAttributes)),f={},t={},d=i[0].morphTargetsRelative,u=new y;let g=0;for(let e=0;e<i.length;++e){const n=i[e];let l=0;if(r!==(n.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(const o in n.attributes){if(!m.has(o))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+'. All geometries must have compatible attributes; make sure "'+o+'" attribute exists among all geometries, or in none of them.'),null;f[o]===void 0&&(f[o]=[]),f[o].push(n.attributes[o]),l++}if(l!==m.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". Make sure all geometries have the same number of attributes."),null;if(d!==n.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const o in n.morphAttributes){if(!s.has(o))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphAttributes must be consistent throughout all geometries."),null;t[o]===void 0&&(t[o]=[]),t[o].push(n.morphAttributes[o])}if(a){let o;if(r)o=n.index.count;else if(n.attributes.position!==void 0)o=n.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". The geometry must have either an index or a position attribute"),null;u.addGroup(g,o,e),g+=o}}if(r){let e=0;const n=[];for(let l=0;l<i.length;++l){const o=i[l].index;for(let c=0;c<o.count;++c)n.push(o.getX(c)+e);e+=i[l].attributes.position.count}u.setIndex(n)}for(const e in f){const n=p(f[e]);if(!n)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" attribute."),null;u.setAttribute(e,n)}for(const e in t){const n=t[e][0].length;if(n===0)break;u.morphAttributes=u.morphAttributes||{},u.morphAttributes[e]=[];for(let l=0;l<n;++l){const o=[];for(let h=0;h<t[e].length;++h)o.push(t[e][h][l]);const c=p(o);if(!c)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" morphAttribute."),null;u.morphAttributes[e].push(c)}}return u}function p(i){let a,r,m,s=-1,f=0;for(let g=0;g<i.length;++g){const e=i[g];if(a===void 0&&(a=e.array.constructor),a!==e.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(r===void 0&&(r=e.itemSize),r!==e.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(m===void 0&&(m=e.normalized),m!==e.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(s===-1&&(s=e.gpuType),s!==e.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;f+=e.count*r}const t=new a(f),d=new T(t,r,m);let u=0;for(let g=0;g<i.length;++g){const e=i[g];if(e.isInterleavedBufferAttribute){const n=u/r;for(let l=0,o=e.count;l<o;l++)for(let c=0;c<r;c++){const h=e.getComponent(l,c);d.setComponent(l+n,c,h)}}else t.set(e.array,u);u+=e.count*r}return s!==void 0&&(d.gpuType=s),d}function B(i,a){if(a===E)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),i;if(a===b||a===A){let r=i.getIndex();if(r===null){const t=[],d=i.getAttribute("position");if(d!==void 0){for(let u=0;u<d.count;u++)t.push(u);i.setIndex(t),r=i.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),i}const m=r.count-2,s=[];if(a===b)for(let t=1;t<=m;t++)s.push(r.getX(0)),s.push(r.getX(t)),s.push(r.getX(t+1));else for(let t=0;t<m;t++)t%2===0?(s.push(r.getX(t)),s.push(r.getX(t+1)),s.push(r.getX(t+2))):(s.push(r.getX(t+2)),s.push(r.getX(t+1)),s.push(r.getX(t)));s.length/3!==m&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const f=i.clone();return f.setIndex(s),f.clearGroups(),f}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",a),i}export{x as m,B as t};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{b3 as r,au as t}from"./vendor.N0szyCtn1710511998162.js";import{P as o,F as n}from"./EffectComposer.QPH4y2V_1710511998162.js";const l={name:"FilmShader",uniforms:{tDiffuse:{value:null},time:{value:0},intensity:{value:.5},grayscale:{value:!1}},vertexShader:"\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n\n #include <common>\n\n uniform float intensity;\n uniform bool grayscale;\n uniform float time;\n\n uniform sampler2D tDiffuse;\n\n varying vec2 vUv;\n\n void main() {\n\n vec4 base = texture2D( tDiffuse, vUv );\n\n float noise = rand( fract( vUv + time ) );\n\n vec3 color = base.rgb + base.rgb * clamp( 0.1 + noise, 0.0, 1.0 );\n\n color = mix( base.rgb, color, intensity );\n\n if ( grayscale ) {\n\n color = vec3( luminance( color ) ); // assuming linear-srgb\n\n }\n\n gl_FragColor = vec4( color, base.a );\n\n }"};class c extends o{constructor(e=.5,s=!1){super();const a=l;this.uniforms=r.clone(a.uniforms),this.material=new t({name:a.name,uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}),this.uniforms.intensity.value=e,this.uniforms.grayscale.value=s,this.fsQuad=new n(this.material)}render(e,s,a,i){this.uniforms.tDiffuse.value=a.texture,this.uniforms.time.value+=i,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(s),this.clear&&e.clear(),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}export{c as F};
import{b3 as r,au as t}from"./vendor.Whz5JOL71710727997925.js";import{P as o,F as n}from"./EffectComposer.UsY08FOr1710727997925.js";const l={name:"FilmShader",uniforms:{tDiffuse:{value:null},time:{value:0},intensity:{value:.5},grayscale:{value:!1}},vertexShader:"\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n\n #include <common>\n\n uniform float intensity;\n uniform bool grayscale;\n uniform float time;\n\n uniform sampler2D tDiffuse;\n\n varying vec2 vUv;\n\n void main() {\n\n vec4 base = texture2D( tDiffuse, vUv );\n\n float noise = rand( fract( vUv + time ) );\n\n vec3 color = base.rgb + base.rgb * clamp( 0.1 + noise, 0.0, 1.0 );\n\n color = mix( base.rgb, color, intensity );\n\n if ( grayscale ) {\n\n color = vec3( luminance( color ) ); // assuming linear-srgb\n\n }\n\n gl_FragColor = vec4( color, base.a );\n\n }"};class c extends o{constructor(e=.5,s=!1){super();const a=l;this.uniforms=r.clone(a.uniforms),this.material=new t({name:a.name,uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}),this.uniforms.intensity.value=e,this.uniforms.grayscale.value=s,this.fsQuad=new n(this.material)}render(e,s,a,i){this.uniforms.tDiffuse.value=a.texture,this.uniforms.time.value+=i,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(s),this.clear&&e.clear(),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}export{c as F};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{d2 as z,b8 as B,aq as I,d3 as G,cE as Y,aF as V}from"./vendor.N0szyCtn1710511998162.js";class q extends z{constructor(g){super(g),this.type=B}parse(g){const _=function(r,e){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(e||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(e||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(e||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(e||""))}},u="\n",D=function(r,e,t){e=e||1024;let s=r.pos,i=-1,a=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&a<e&&s<r.byteLength;)l+=o,a+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=a+i+1),l+o.slice(0,i)):!1},N=function(r){const e=/^#\?(\S+)/,t=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,i=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,a={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,o;for((r.pos>=r.byteLength||!(l=D(r)))&&_(1,"no header found"),(o=l.match(e))||_(3,"bad initial token"),a.valid|=1,a.programtype=o[1],a.string+=l+"\n";l=D(r),l!==!1;){if(a.string+=l+"\n",l.charAt(0)==="#"){a.comments+=l+"\n";continue}if((o=l.match(t))&&(a.gamma=parseFloat(o[1])),(o=l.match(n))&&(a.exposure=parseFloat(o[1])),(o=l.match(s))&&(a.valid|=2,a.format=o[1]),(o=l.match(i))&&(a.valid|=4,a.height=parseInt(o[1],10),a.width=parseInt(o[2],10)),a.valid&2&&a.valid&4)break}return a.valid&2||_(3,"missing format specifier"),a.valid&4||_(3,"missing image size specifier"),a},v=function(r,e,t){const n=e;if(n<8||n>32767||r[0]!==2||r[1]!==2||r[2]&128)return new Uint8Array(r);n!==(r[2]<<8|r[3])&&_(3,"wrong scanline width");const s=new Uint8Array(4*e*t);s.length||_(4,"unable to allocate buffer space");let i=0,a=0;const l=4*n,o=new Uint8Array(4),E=new Uint8Array(l);let H=t;for(;H>0&&a<r.byteLength;){a+4>r.byteLength&&_(1),o[0]=r[a++],o[1]=r[a++],o[2]=r[a++],o[3]=r[a++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&a<r.byteLength;){c=r[a++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[a++];for(let U=0;U<c;U++)E[R++]=m}else E.set(r.subarray(a,a+c),R),R+=c,a+=c}const P=n;for(let h=0;h<P;h++){let m=0;s[i]=E[h+m],m+=n,s[i+1]=E[h+m],m+=n,s[i+2]=E[h+m],m+=n,s[i+3]=E[h+m],i+=4}H--}return s},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},C=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=G.toHalfFloat(Math.min(r[e+0]*i,65504)),t[n+1]=G.toHalfFloat(Math.min(r[e+1]*i,65504)),t[n+2]=G.toHalfFloat(Math.min(r[e+2]*i,65504)),t[n+3]=G.toHalfFloat(1)},w=new Uint8Array(g);w.pos=0;const d=N(w),f=d.width,k=d.height,y=v(w.subarray(w.pos),f,k);let L,F,p;switch(this.type){case I:p=y.length/4;const r=new Float32Array(p*4);for(let t=0;t<p;t++)x(y,t*4,r,t*4);L=r,F=I;break;case B:p=y.length/4;const e=new Uint16Array(p*4);for(let t=0;t<p;t++)C(y,t*4,e,t*4);L=e,F=B;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:d.string,gamma:d.gamma,exposure:d.exposure,type:F}}setDataType(g){return this.type=g,this}load(g,b,S,A){function M(_,T){switch(_.type){case I:case B:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,M,S,A)}}export{q as R};
import{d4 as z,b8 as B,aq as I,d5 as G,cH as Y,aF as V}from"./vendor.Whz5JOL71710727997925.js";class q extends z{constructor(g){super(g),this.type=B}parse(g){const _=function(r,e){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(e||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(e||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(e||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(e||""))}},u="\n",D=function(r,e,t){e=e||1024;let s=r.pos,i=-1,a=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&a<e&&s<r.byteLength;)l+=o,a+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=a+i+1),l+o.slice(0,i)):!1},N=function(r){const e=/^#\?(\S+)/,t=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,i=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,a={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,o;for((r.pos>=r.byteLength||!(l=D(r)))&&_(1,"no header found"),(o=l.match(e))||_(3,"bad initial token"),a.valid|=1,a.programtype=o[1],a.string+=l+"\n";l=D(r),l!==!1;){if(a.string+=l+"\n",l.charAt(0)==="#"){a.comments+=l+"\n";continue}if((o=l.match(t))&&(a.gamma=parseFloat(o[1])),(o=l.match(n))&&(a.exposure=parseFloat(o[1])),(o=l.match(s))&&(a.valid|=2,a.format=o[1]),(o=l.match(i))&&(a.valid|=4,a.height=parseInt(o[1],10),a.width=parseInt(o[2],10)),a.valid&2&&a.valid&4)break}return a.valid&2||_(3,"missing format specifier"),a.valid&4||_(3,"missing image size specifier"),a},v=function(r,e,t){const n=e;if(n<8||n>32767||r[0]!==2||r[1]!==2||r[2]&128)return new Uint8Array(r);n!==(r[2]<<8|r[3])&&_(3,"wrong scanline width");const s=new Uint8Array(4*e*t);s.length||_(4,"unable to allocate buffer space");let i=0,a=0;const l=4*n,o=new Uint8Array(4),d=new Uint8Array(l);let H=t;for(;H>0&&a<r.byteLength;){a+4>r.byteLength&&_(1),o[0]=r[a++],o[1]=r[a++],o[2]=r[a++],o[3]=r[a++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&a<r.byteLength;){c=r[a++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[a++];for(let U=0;U<c;U++)d[R++]=m}else d.set(r.subarray(a,a+c),R),R+=c,a+=c}const P=n;for(let h=0;h<P;h++){let m=0;s[i]=d[h+m],m+=n,s[i+1]=d[h+m],m+=n,s[i+2]=d[h+m],m+=n,s[i+3]=d[h+m],i+=4}H--}return s},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},C=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=G.toHalfFloat(Math.min(r[e+0]*i,65504)),t[n+1]=G.toHalfFloat(Math.min(r[e+1]*i,65504)),t[n+2]=G.toHalfFloat(Math.min(r[e+2]*i,65504)),t[n+3]=G.toHalfFloat(1)},w=new Uint8Array(g);w.pos=0;const E=N(w),f=E.width,k=E.height,y=v(w.subarray(w.pos),f,k);let L,F,p;switch(this.type){case I:p=y.length/4;const r=new Float32Array(p*4);for(let t=0;t<p;t++)x(y,t*4,r,t*4);L=r,F=I;break;case B:p=y.length/4;const e=new Uint16Array(p*4);for(let t=0;t<p;t++)C(y,t*4,e,t*4);L=e,F=B;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:E.string,gamma:E.gamma,exposure:E.exposure,type:F}}setDataType(g){return this.type=g,this}load(g,b,S,A){function M(_,T){switch(_.type){case I:case B:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,M,S,A)}}export{q as R};

View File

@ -1 +1 @@
import{at as k,bk as A,aw as R,a$ as z,b0 as c,bd as W,bl as P,ay as B,b8 as H,au as I,b3 as q}from"./vendor.N0szyCtn1710511998162.js";class w extends k{constructor(S,o={}){super(S),this.isReflector=!0,this.type="Reflector",this.camera=new A;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),_=o.textureWidth||512,F=o.textureHeight||512,T=o.clipBias||0,u=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new z,n=new c,i=new c,M=new c,d=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,F,{samples:j,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,C,x){if(i.setFromMatrixPosition(l.matrixWorld),M.setFromMatrixPosition(x.matrixWorld),d.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(d),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),d.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(d),v.add(M),b.subVectors(i,v),b.reflect(n).negate(),b.add(i),t.position.copy(m),t.up.set(0,1,0),t.up.applyMatrix4(d),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-T,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
import{at as k,bk as A,aw as R,a$ as z,b0 as c,bd as W,bl as P,ay as B,b8 as H,au as I,b3 as q}from"./vendor.Whz5JOL71710727997925.js";class w extends k{constructor(S,o={}){super(S),this.isReflector=!0,this.type="Reflector",this.camera=new A;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),_=o.textureWidth||512,F=o.textureHeight||512,T=o.clipBias||0,u=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new z,n=new c,i=new c,M=new c,d=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,F,{samples:j,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,C,x){if(i.setFromMatrixPosition(l.matrixWorld),M.setFromMatrixPosition(x.matrixWorld),d.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(d),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),d.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(d),v.add(M),b.subVectors(i,v),b.reflect(n).negate(),b.add(i),t.position.copy(m),t.up.set(0,1,0),t.up.applyMatrix4(d),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-T,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};

View File

@ -1 +1 @@
import{bu as c,bv as s,bw as m,bd as d,aw as t,bx as g,aE as M}from"./vendor.N0szyCtn1710511998162.js";import{d as x}from"./dither.glsl.y2WXw1t-1710511998162.js";const C="\nin vec3 position;\nin vec3 normal;\nin vec2 uv;\n\nuniform mat4 modelMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\n\nuniform mat3 uMapTransform;\nuniform mat4 uMatrix;\n\nout vec2 vUv;\nout vec4 vCoord;\nout vec3 vNormal;\nout vec3 vToEye;\n\nvoid main() {\n vUv = (uMapTransform * vec3(uv, 1.0)).xy;\n vCoord = uMatrix * vec4(position, 1.0);\n vNormal = normalMatrix * normal;\n\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n vToEye = cameraPosition - worldPosition.xyz;\n\n vec4 mvPosition = viewMatrix * worldPosition;\n gl_Position = projectionMatrix * mvPosition;\n}\n",F="\nprecision highp float;\n\nuniform sampler2D tReflect;\nuniform vec3 uColor;\nuniform float uReflectivity;\nuniform float uMirror;\nuniform float uMixStrength;\n\n#ifdef USE_MAP\n uniform sampler2D tMap;\n#endif\n\n#ifdef USE_NORMALMAP\n uniform sampler2D tNormalMap;\n uniform vec2 uNormalScale;\n#endif\n\n#ifdef USE_FOG\n uniform vec3 uFogColor;\n uniform float uFogNear;\n uniform float uFogFar;\n#endif\n\nin vec2 vUv;\nin vec4 vCoord;\nin vec3 vNormal;\nin vec3 vToEye;\n\nout vec4 FragColor;\n\n".concat(x,"\n\nvoid main() {\n #ifdef USE_MAP\n vec4 color = texture(tMap, vUv);\n #else\n vec4 color = vec4(uColor, 1.0);\n #endif\n\n #ifdef USE_NORMALMAP\n vec4 normalColor = texture(tNormalMap, vUv * uNormalScale);\n vec3 normal = normalize(vec3(normalColor.r * 2.0 - 1.0, normalColor.b, normalColor.g * 2.0 - 1.0));\n vec3 coord = vCoord.xyz / vCoord.w;\n vec2 uv = coord.xy + coord.z * normal.xz * 0.05;\n vec4 reflectColor = texture(tReflect, uv);\n #else\n vec3 normal = vNormal;\n vec4 reflectColor = textureProj(tReflect, vCoord);\n #endif\n\n // Fresnel term\n vec3 toEye = normalize(vToEye);\n float theta = max(dot(toEye, normal), 0.0);\n float reflectance = uReflectivity + (1.0 - uReflectivity) * pow((1.0 - theta), 5.0);\n\n reflectColor = mix(vec4(0), reflectColor, reflectance);\n\n FragColor.rgb = color.rgb * ((1.0 - min(1.0, uMirror)) + reflectColor.rgb * uMixStrength);\n\n #ifdef USE_FOG\n float fogDepth = gl_FragCoord.z / gl_FragCoord.w;\n float fogFactor = smoothstep(uFogNear, uFogFar, fogDepth);\n\n FragColor.rgb = mix(FragColor.rgb, uFogColor, fogFactor);\n #endif\n\n #ifdef DITHERING\n FragColor.rgb = dither(FragColor.rgb);\n #endif\n\n FragColor.a = 1.0;\n}\n");class S extends c{constructor({color:i=new t(1052688),map:e=null,normalMap:r=null,normalScale:l=new M(1,1),reflectivity:n=0,mirror:f=0,mixStrength:u=10,fog:a=null,dithering:v=!1}={}){const o={glslVersion:s,defines:{},uniforms:{tMap:{value:null},tReflect:{value:null},uMapTransform:{value:new m},uMatrix:{value:new d},uColor:{value:i instanceof t?i:new t(i)},uReflectivity:{value:n},uMirror:{value:f},uMixStrength:{value:u}},vertexShader:C,fragmentShader:F,blending:g};e&&(e.updateMatrix(),o.defines=Object.assign(o.defines,{USE_MAP:""}),o.uniforms=Object.assign(o.uniforms,{tMap:{value:e},uMapTransform:{value:e.matrix}})),r&&(o.defines=Object.assign(o.defines,{USE_NORMALMAP:""}),o.uniforms=Object.assign(o.uniforms,{tNormalMap:{value:r},uNormalScale:{value:l}}),e||(r.updateMatrix(),o.uniforms=Object.assign(o.uniforms,{uMapTransform:{value:r.matrix}}))),a&&(o.defines=Object.assign(o.defines,{USE_FOG:""}),o.uniforms=Object.assign(o.uniforms,{uFogColor:{value:a.color},uFogNear:{value:a.near},uFogFar:{value:a.far}})),v&&(o.defines=Object.assign(o.defines,{DITHERING:""})),super(o)}}export{S as R};
import{bu as c,bv as s,bw as m,bd as d,aw as t,bx as g,aE as M}from"./vendor.Whz5JOL71710727997925.js";import{d as x}from"./dither.glsl.y2WXw1t-1710727997925.js";const C="\nin vec3 position;\nin vec3 normal;\nin vec2 uv;\n\nuniform mat4 modelMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\n\nuniform mat3 uMapTransform;\nuniform mat4 uMatrix;\n\nout vec2 vUv;\nout vec4 vCoord;\nout vec3 vNormal;\nout vec3 vToEye;\n\nvoid main() {\n vUv = (uMapTransform * vec3(uv, 1.0)).xy;\n vCoord = uMatrix * vec4(position, 1.0);\n vNormal = normalMatrix * normal;\n\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n vToEye = cameraPosition - worldPosition.xyz;\n\n vec4 mvPosition = viewMatrix * worldPosition;\n gl_Position = projectionMatrix * mvPosition;\n}\n",F="\nprecision highp float;\n\nuniform sampler2D tReflect;\nuniform vec3 uColor;\nuniform float uReflectivity;\nuniform float uMirror;\nuniform float uMixStrength;\n\n#ifdef USE_MAP\n uniform sampler2D tMap;\n#endif\n\n#ifdef USE_NORMALMAP\n uniform sampler2D tNormalMap;\n uniform vec2 uNormalScale;\n#endif\n\n#ifdef USE_FOG\n uniform vec3 uFogColor;\n uniform float uFogNear;\n uniform float uFogFar;\n#endif\n\nin vec2 vUv;\nin vec4 vCoord;\nin vec3 vNormal;\nin vec3 vToEye;\n\nout vec4 FragColor;\n\n".concat(x,"\n\nvoid main() {\n #ifdef USE_MAP\n vec4 color = texture(tMap, vUv);\n #else\n vec4 color = vec4(uColor, 1.0);\n #endif\n\n #ifdef USE_NORMALMAP\n vec4 normalColor = texture(tNormalMap, vUv * uNormalScale);\n vec3 normal = normalize(vec3(normalColor.r * 2.0 - 1.0, normalColor.b, normalColor.g * 2.0 - 1.0));\n vec3 coord = vCoord.xyz / vCoord.w;\n vec2 uv = coord.xy + coord.z * normal.xz * 0.05;\n vec4 reflectColor = texture(tReflect, uv);\n #else\n vec3 normal = vNormal;\n vec4 reflectColor = textureProj(tReflect, vCoord);\n #endif\n\n // Fresnel term\n vec3 toEye = normalize(vToEye);\n float theta = max(dot(toEye, normal), 0.0);\n float reflectance = uReflectivity + (1.0 - uReflectivity) * pow((1.0 - theta), 5.0);\n\n reflectColor = mix(vec4(0), reflectColor, reflectance);\n\n FragColor.rgb = color.rgb * ((1.0 - min(1.0, uMirror)) + reflectColor.rgb * uMixStrength);\n\n #ifdef USE_FOG\n float fogDepth = gl_FragCoord.z / gl_FragCoord.w;\n float fogFactor = smoothstep(uFogNear, uFogFar, fogDepth);\n\n FragColor.rgb = mix(FragColor.rgb, uFogColor, fogFactor);\n #endif\n\n #ifdef DITHERING\n FragColor.rgb = dither(FragColor.rgb);\n #endif\n\n FragColor.a = 1.0;\n}\n");class S extends c{constructor({color:i=new t(1052688),map:e=null,normalMap:r=null,normalScale:l=new M(1,1),reflectivity:n=0,mirror:f=0,mixStrength:u=10,fog:a=null,dithering:v=!1}={}){const o={glslVersion:s,defines:{},uniforms:{tMap:{value:null},tReflect:{value:null},uMapTransform:{value:new m},uMatrix:{value:new d},uColor:{value:i instanceof t?i:new t(i)},uReflectivity:{value:n},uMirror:{value:f},uMixStrength:{value:u}},vertexShader:C,fragmentShader:F,blending:g};e&&(e.updateMatrix(),o.defines=Object.assign(o.defines,{USE_MAP:""}),o.uniforms=Object.assign(o.uniforms,{tMap:{value:e},uMapTransform:{value:e.matrix}})),r&&(o.defines=Object.assign(o.defines,{USE_NORMALMAP:""}),o.uniforms=Object.assign(o.uniforms,{tNormalMap:{value:r},uNormalScale:{value:l}}),e||(r.updateMatrix(),o.uniforms=Object.assign(o.uniforms,{uMapTransform:{value:r.matrix}}))),a&&(o.defines=Object.assign(o.defines,{USE_FOG:""}),o.uniforms=Object.assign(o.uniforms,{uFogColor:{value:a.color},uFogNear:{value:a.near},uFogFar:{value:a.far}})),v&&(o.defines=Object.assign(o.defines,{DITHERING:""})),super(o)}}export{S as R};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{$ as c,a4 as v,o as l,v as f,D as p,a7 as m,K as o,a8 as u,W as t,a as g,a9 as a,aa as r,ab as h,b1 as _,ax as x}from"./vendor.N0szyCtn1710511998162.js";const T="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",j={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},D=t("TresAmbientLight",{color:"#ffffff"},null,-1),V=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),b=["rotation-x"],k=t("TresPlaneGeometry",{args:[400,400]},null,-1),C=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),M=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),L=c({__name:"argestCircle",setup(P){const i={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:T,fragmentShader:y,side:_,blending:x,depthWrite:!1,transparent:!0},{onLoop:d}=v();return d(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,z)=>(l(),f(o(u),m(i,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(o(h),a(r(s)),null,16),D,V,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[k,t("TresShaderMaterial",a(r(e)),null,16)],8,b),C,M]),_:1},16))}});export{L as default};
import{$ as c,a4 as v,o as l,v as f,D as p,a7 as m,K as o,a8 as u,W as t,a as g,a9 as a,aa as r,ab as h,b1 as _,ax as x}from"./vendor.Whz5JOL71710727997925.js";const T="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",j={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},D=t("TresAmbientLight",{color:"#ffffff"},null,-1),V=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),b=["rotation-x"],k=t("TresPlaneGeometry",{args:[400,400]},null,-1),C=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),M=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),L=c({__name:"argestCircle",setup(P){const i={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:T,fragmentShader:y,side:_,blending:x,depthWrite:!1,transparent:!0},{onLoop:d}=v();return d(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,z)=>(l(),f(o(u),m(i,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(o(h),a(r(s)),null,16),D,V,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[k,t("TresShaderMaterial",a(r(e)),null,16)],8,b),C,M]),_:1},16))}});export{L as default};

View File

@ -1 +1 @@
import{$ as _,ak as B,a5 as k,a4 as y,o as w,v as P,K as c,aY as M,aC as N,aE as R,at as T,aI as V,b7 as z,D as F,a8 as G,a as f,ab as H,W as d}from"./vendor.N0szyCtn1710511998162.js";import{R as p,E as I}from"./EffectComposer.QPH4y2V_1710511998162.js";import{U as L}from"./UnrealBloomPass.FXxUxNIh1710511998162.js";import{F as S}from"./FilmPass.ZnmJQ8A-1710511998162.js";const U=_({__name:"bloomPass",setup(v){const{camera:n,renderer:i,scene:g,sizes:s}=B(),l={threshold:0,strength:.972,radius:.21};let e=null;const b=(a,t,m,h,u)=>{const o=new p(a,t),r=new L(new R(h,u),l.strength,l.radius,l.threshold);e=new I(m),e.addPass(o),e.addPass(r)},C=(a,t,m,h,u)=>{let o=new T(new V(1,1,1),new z);o.position.set(0,2,-4),a.add(o);var r=new p(a,t);r.clear=!1,e.addPass(r);const x=new S;e.addPass(x)};k(()=>{s.width.value&&(b(g.value,n.value,i.value,s.width.value,s.height.value),C(new N,n.value,i.value,s.width.value,s.height.value))});const{onLoop:E}=y();return E(()=>{e&&e.render()}),(a,t)=>(w(),P(c(M),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),$=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),A=d("TresAmbientLight",{intensity:1},null,-1),D=d("TresGridHelper",{args:[10,10]},null,-1),q=_({__name:"bloomPass",setup(v){return(n,i)=>(w(),P(c(G),{disableRender:"","window-size":""},{default:F(()=>[$,A,f(c(H)),D,f(U)]),_:1}))}});export{q as default};
import{$ as _,ak as B,a5 as k,a4 as y,o as w,v as P,K as c,aY as M,aC as N,aE as R,at as T,aI as V,b7 as z,D as F,a8 as G,a as f,ab as H,W as d}from"./vendor.Whz5JOL71710727997925.js";import{R as p,E as I}from"./EffectComposer.UsY08FOr1710727997925.js";import{U as L}from"./UnrealBloomPass.IdrmEScP1710727997925.js";import{F as S}from"./FilmPass.wEKuBbdr1710727997925.js";const U=_({__name:"bloomPass",setup(v){const{camera:n,renderer:i,scene:g,sizes:s}=B(),l={threshold:0,strength:.972,radius:.21};let e=null;const b=(a,t,m,h,u)=>{const o=new p(a,t),r=new L(new R(h,u),l.strength,l.radius,l.threshold);e=new I(m),e.addPass(o),e.addPass(r)},C=(a,t,m,h,u)=>{let o=new T(new V(1,1,1),new z);o.position.set(0,2,-4),a.add(o);var r=new p(a,t);r.clear=!1,e.addPass(r);const x=new S;e.addPass(x)};k(()=>{s.width.value&&(b(g.value,n.value,i.value,s.width.value,s.height.value),C(new N,n.value,i.value,s.width.value,s.height.value))});const{onLoop:E}=y();return E(()=>{e&&e.render()}),(a,t)=>(w(),P(c(M),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),$=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),A=d("TresAmbientLight",{intensity:1},null,-1),D=d("TresGridHelper",{args:[10,10]},null,-1),q=_({__name:"bloomPass",setup(v){return(n,i)=>(w(),P(c(G),{disableRender:"","window-size":""},{default:F(()=>[$,A,f(c(H)),D,f(U)]),_:1}))}});export{q as default};

View File

@ -1 +1 @@
import{$ as m,aA as b,K as l,o as a,c as n,W as s,E as h,G as f,t as g,X as r,ah as y,ai as v,bt as k,_ as w}from"./vendor.N0szyCtn1710511998162.js";/* empty css */const x=e=>(y("data-v-71e323b0"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-20 flex justify-center items-center text-black font-mono bg-black"},A={class:"text-white"},C={class:"g-container"},F=x(()=>s("div",{class:"g-circle"},null,-1)),I={class:"g-bubbles"},S={key:0,class:"pspan"},D=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const p=e,{hasFinishLoading:_,progress:o}=([t,c]=b(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return p.isDemo&&requestAnimationFrame(i),(d,L)=>l(_)?r("",!0):(a(),n("div",B,[s("div",A,[s("div",C,[F,s("ul",I,[(a(),n(h,null,f(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),d.showProgress?(a(),n("span",S,g(l(o))+" %",1)):r("",!0)])]))}}),N=w(D,[["__scopeId","data-v-71e323b0"]]);export{N as l};
import{$ as m,aA as b,K as l,o as a,c as n,W as s,E as h,G as f,t as g,X as r,ah as y,ai as v,bt as k,_ as w}from"./vendor.Whz5JOL71710727997925.js";/* empty css */const x=e=>(y("data-v-71e323b0"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-20 flex justify-center items-center text-black font-mono bg-black"},A={class:"text-white"},C={class:"g-container"},F=x(()=>s("div",{class:"g-circle"},null,-1)),I={class:"g-bubbles"},S={key:0,class:"pspan"},D=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const p=e,{hasFinishLoading:_,progress:o}=([t,c]=b(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return p.isDemo&&requestAnimationFrame(i),(d,L)=>l(_)?r("",!0):(a(),n("div",B,[s("div",A,[s("div",C,[F,s("ul",I,[(a(),n(h,null,f(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),d.showProgress?(a(),n("span",S,g(l(o))+" %",1)):r("",!0)])]))}}),N=w(D,[["__scopeId","data-v-71e323b0"]]);export{N as l};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{$ as _,k as u,aA as f,a6 as w,an as y,a0 as p,o as d,v as s,D as h,K as g,X as m}from"./vendor.N0szyCtn1710511998162.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const L=_({__name:"buildings",async setup(v){let t,r;const b=u(),n=u(!1),c=([t,r]=f(()=>B()),t=await t,r(),t);n.value=!0,w(()=>{const l=new y({title:"建筑效果",expanded:!0}),o=l.addFolder({title:"线条"});o.addBinding(i,"show",{label:"显示"}),o.addBinding(i,"color",{label:"颜色"}),o.addBinding(i,"width",{label:"宽度",min:0,max:10,step:1}),o.addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1});const e=l.addFolder({title:"建筑物"});e.addBinding(a,"show",{label:"显示"}),e.addBinding(a,"bulidingsColor",{label:"楼宇颜色"}),e.addBinding(a,"gradient",{label:"渐变"}),e.addBinding(a,"opacity",{label:"透明度",min:0,max:1,step:.1}),e.addBinding(a,"landColor",{label:"地面颜色"})});const i=p({width:1,color:"#000",opacity:1,show:!0}),a=p({bulidingsColor:"#e523ff",landColor:"#112233",opacity:.9,show:!0,gradient:!0});return(l,o)=>(d(),s(C,{ref_key:"pagesShowRef",ref:b,showBuildings:!1},{ability:h(()=>[a.show&&n.value?(d(),s(x,{key:0,model:g(c),bulidingsColor:a.bulidingsColor,landColor:a.landColor,gradient:a.gradient,opacity:a.opacity},null,8,["model","bulidingsColor","landColor","gradient","opacity"])):m("",!0),i.show&&n.value?(d(),s(k,{key:1,builds:g(c).city,width:i.width,color:i.color,opacity:i.opacity},null,8,["builds","width","color","opacity"])):m("",!0)]),_:1},512))}});export{L as default};
import{$ as _,k as u,aA as f,a6 as w,an as y,a0 as p,o as d,v as s,D as h,K as g,X as m}from"./vendor.Whz5JOL71710727997925.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const L=_({__name:"buildings",async setup(v){let t,r;const b=u(),n=u(!1),c=([t,r]=f(()=>B()),t=await t,r(),t);n.value=!0,w(()=>{const l=new y({title:"建筑效果",expanded:!0}),o=l.addFolder({title:"线条"});o.addBinding(i,"show",{label:"显示"}),o.addBinding(i,"color",{label:"颜色"}),o.addBinding(i,"width",{label:"宽度",min:0,max:10,step:1}),o.addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1});const e=l.addFolder({title:"建筑物"});e.addBinding(a,"show",{label:"显示"}),e.addBinding(a,"bulidingsColor",{label:"楼宇颜色"}),e.addBinding(a,"gradient",{label:"渐变"}),e.addBinding(a,"opacity",{label:"透明度",min:0,max:1,step:.1}),e.addBinding(a,"landColor",{label:"地面颜色"})});const i=p({width:1,color:"#000",opacity:1,show:!0}),a=p({bulidingsColor:"#e523ff",landColor:"#112233",opacity:.9,show:!0,gradient:!0});return(l,o)=>(d(),s(C,{ref_key:"pagesShowRef",ref:b,showBuildings:!1},{ability:h(()=>[a.show&&n.value?(d(),s(x,{key:0,model:g(c),bulidingsColor:a.bulidingsColor,landColor:a.landColor,gradient:a.gradient,opacity:a.opacity},null,8,["model","bulidingsColor","landColor","gradient","opacity"])):m("",!0),i.show&&n.value?(d(),s(k,{key:1,builds:g(c).city,width:i.width,color:i.color,opacity:i.opacity},null,8,["builds","width","color","opacity"])):m("",!0)]),_:1},512))}});export{L as default};

View File

@ -0,0 +1 @@
import{_ as r}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as t}from"./buildingsMarkA.vue_vue_type_script_setup_true_lang.0Du3hql01710727997925.js";import{_ as n,a as f}from"./radraB.vue_vue_type_script_setup_true_lang.MhxocKJF1710727997925.js";import{$ as m,o as a,v as o,D as s,ag as e,a as i}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const z=m({__name:"buildingsMarkA",setup(p){return(_,l)=>(a(),o(r,{ref:"pagesShowRef"},{ability:s(()=>[(a(),o(e,null,{default:s(()=>[i(t,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),i(n,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(a(),o(e,null,{default:s(()=>[i(t,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),i(f,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{z as default};

View File

@ -1 +0,0 @@
import{_}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{$ as c,aA as d,bj as g,a0 as h,ac as y,a5 as A,o,c as k,W as z,a7 as b,K as v,v as r,D as n,ag as f,a as s}from"./vendor.N0szyCtn1710511998162.js";import{_ as w,a as x}from"./radraB.vue_vue_type_script_setup_true_lang.HXWgP1KV1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const B=["position","scale"],C=["map"],p=c({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(l){let t,i;const e=l,{map:u}=([t,i]=d(()=>g({map:e.img})),t=await t,i(),t),m=h({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),a=y(null);return A(()=>{a.value&&(a.value.geometry=a.value.geometry.clone(),a.value.geometry.translate(e.offset[0],e.offset[1],0))}),(S,$)=>(o(),k("TresSprite",{ref_key:"tsRef",ref:a,position:e.position,scale:e.scale,renderOrder:"99999"},[z("TresSpriteMaterial",b(m,{map:v(u)}),null,16,C)],8,B))}}),W=c({__name:"buildingsMarkA",setup(l){return(t,i)=>(o(),r(_,{ref:"pagesShowRef"},{ability:n(()=>[(o(),r(f,null,{default:n(()=>[s(p,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),s(w,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(o(),r(f,null,{default:n(()=>[s(p,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),s(x,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{W as default};

View File

@ -0,0 +1 @@
import{$ as l,aA as f,bj as i,a0 as c,ac as p,a5 as u,o as m,c as d,W as _,a7 as h,K as y}from"./vendor.Whz5JOL71710727997925.js";const g=["position","scale"],A=["map"],w=l({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(o){let a,s;const e=o,{map:r}=([a,s]=f(()=>i({map:e.img})),a=await a,s(),a),n=c({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),t=p(null);return u(()=>{t.value&&(t.value.geometry=t.value.geometry.clone(),t.value.geometry.translate(e.offset[0],e.offset[1],0))}),(k,v)=>(m(),d("TresSprite",{ref_key:"tsRef",ref:t,position:e.position,scale:e.scale,renderOrder:"99999"},[_("TresSpriteMaterial",h(n,{map:y(r)}),null,16,A)],8,g))}});export{w as _};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{$ as g,a0 as D,ac as u,aP as x,aQ as i,o as k,v as M,D as f,a7 as p,K as h,a8 as y,a1 as C,a2 as F,a3 as T,a as w,aR as b,W as o}from"./vendor.N0szyCtn1710511998162.js";const G=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),S=o("TresGridHelper",{position:[0,-1,0]},null,-1),A=o("TresBoxGeometry",{args:[2,2,2]},null,-1),E=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),N=[A,E],P=o("TresAmbientLight",{intensity:1},null,-1),K=g({__name:"cameraControls",setup(V){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:C,outputColorSpace:F,toneMapping:T},n=D({distance:5,minDistance:0,maxDistance:100}),e=u(),r=u(),{pane:l}=x(),d=l.addFolder({title:"距离参数"});d.addBinding(n,"distance",{label:"设置距离",step:.01,min:0,max:100}),d.addBinding(n,"minDistance",{label:"最小距离",step:.01,min:0,max:10}),d.addBinding(n,"maxDistance",{label:"最大距离",step:.01,min:0,max:100});const c=l.addFolder({title:"远近"});c.addButton({title:"(+1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(1,!0)}),c.addButton({title:"(-1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(-1,!0)});const s=l.addFolder({title:"旋转"});s.addButton({title:"Rotate theta 45°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(45*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta -90°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(-90*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta 360°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(360*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate phi 20°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(0,20*i.DEG2RAD,!0)}),l.addFolder({title:"移动"}).addButton({title:"对焦到 box of the mesh"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.fitToBox(r.value,!0)});function _(){console.log("change")}function v(){console.log("start")}function B(){console.log("end")}return(t,a)=>(k(),M(h(y),p(m,{"window-size":""}),{default:f(()=>[G,w(h(b),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:_,onStart:v,onEnd:B}),null,16),S,o("TresMesh",{ref_key:"boxMeshRef",ref:r},N,512),P]),_:1},16))}});export{K as default};
import{$ as g,a0 as D,ac as u,aP as x,aQ as i,o as k,v as M,D as f,a7 as p,K as h,a8 as y,a1 as C,a2 as F,a3 as T,a as w,aR as b,W as o}from"./vendor.Whz5JOL71710727997925.js";const G=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),S=o("TresGridHelper",{position:[0,-1,0]},null,-1),A=o("TresBoxGeometry",{args:[2,2,2]},null,-1),E=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),N=[A,E],P=o("TresAmbientLight",{intensity:1},null,-1),K=g({__name:"cameraControls",setup(V){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:C,outputColorSpace:F,toneMapping:T},n=D({distance:5,minDistance:0,maxDistance:100}),e=u(),r=u(),{pane:l}=x(),d=l.addFolder({title:"距离参数"});d.addBinding(n,"distance",{label:"设置距离",step:.01,min:0,max:100}),d.addBinding(n,"minDistance",{label:"最小距离",step:.01,min:0,max:10}),d.addBinding(n,"maxDistance",{label:"最大距离",step:.01,min:0,max:100});const c=l.addFolder({title:"远近"});c.addButton({title:"(+1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(1,!0)}),c.addButton({title:"(-1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(-1,!0)});const s=l.addFolder({title:"旋转"});s.addButton({title:"Rotate theta 45°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(45*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta -90°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(-90*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta 360°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(360*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate phi 20°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(0,20*i.DEG2RAD,!0)}),l.addFolder({title:"移动"}).addButton({title:"对焦到 box of the mesh"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.fitToBox(r.value,!0)});function _(){console.log("change")}function v(){console.log("start")}function B(){console.log("end")}return(t,a)=>(k(),M(h(y),p(m,{"window-size":""}),{default:f(()=>[G,w(h(b),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:_,onStart:v,onEnd:B}),null,16),S,o("TresMesh",{ref_key:"boxMeshRef",ref:r},N,512),P]),_:1},16))}});export{K as default};

View File

@ -1 +1 @@
import{aA as $,bF as A,k as R,a5 as w,a4 as M,o as c,c as v,E as z,G as F,W as l,ar as g,at as N,cz as D,$ as I,a0 as x,v as E,D as T,a7 as O,K as b,a8 as V,a as B,a9 as J,aa as K,ab as W,ag as X}from"./vendor.N0szyCtn1710511998162.js";import{l as Y,c as q,d as H,a as Q}from"./utils.degXbpjY1710511998162.js";import{m as U}from"./mercator.ciCk-WjI1710511998162.js";import"./Water2.Ex8IOmwE1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),ae={__name:"chinaMapMesh",async setup(k){let a,r;(()=>{g.prototype.computeBoundsTree=q,g.prototype.disposeBoundsTree=H,N.prototype.raycast=Q})();const u=U().center([104,37.5]).translate([0,0]),f=([a,r]=$(()=>Y("./plugins/simpleGIS/json/china.json","features")),a=await a,r(),a),P={depth:10,bevelEnabled:!1},h=[];(()=>{f.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const d=new D;for(let i=0;i<s.length;i++){const[y,_]=u(s[i]);i===0&&d.moveTo(y,-_),d.lineTo(y,-_)}h.push({shape:d,properties:e.properties})})})})})();const C=new A({color:"#3480C4",linewidth:1,linecap:"round"}),p=R();w(()=>{p.value&&p.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,C];e.material=t})});let o=null;(()=>{const e=document.createElement("div");e.className="tooltip",e.style.border="1px solid white",e.style.position="absolute",e.style.color="white",e.style.padding="0px 6px",e.style.whiteSpace="no-wrap",e.style.visibility="hidden",document.body.appendChild(e),o=e})();const L=(e,t)=>{e.object.material[0].color.set(16711680),o.innerText=e.object.properties.name,o.style.visibility="visible"},j=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),o.style.visibility="hidden"},G=(e,t)=>{o.style.left="".concat(t.clientX+6,"px"),o.style.top="".concat(t.clientY+6,"px")},{onLoop:S}=M();return S(()=>{}),(e,t)=>(c(),v("TresGroup",{ref_key:"tgRef",ref:p},[(c(),v(z,null,F(h,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:L,onPointerLeave:j,onPointerMove:G},[l("TresExtrudeGeometry",{args:[n.shape,P]},null,8,ee),te],40,Z)),64))],512))}},oe=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),de=I({__name:"chinaMap",setup(k){const a=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:m}=M();return m(()=>{}),w(()=>{}),(u,f)=>(c(),E(b(V),O(a,{"window-size":""}),{default:T(()=>[oe,B(b(W),J(K(r)),null,16),(c(),E(X,null,{default:T(()=>[B(ae)]),_:1}))]),_:1},16))}});export{de as default};
import{aA as $,bF as A,k as R,a5 as w,a4 as M,o as c,c as v,E as z,G as F,W as l,ar as g,at as N,cz as D,$ as I,a0 as x,v as E,D as T,a7 as O,K as b,a8 as V,a as B,a9 as J,aa as K,ab as W,ag as X}from"./vendor.Whz5JOL71710727997925.js";import{l as Y,c as q,d as H,a as Q}from"./utils.dZVFYtiH1710727997925.js";import{m as U}from"./mercator.ciCk-WjI1710727997925.js";import"./Water2.GJkq7RKA1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),ae={__name:"chinaMapMesh",async setup(k){let a,r;(()=>{g.prototype.computeBoundsTree=q,g.prototype.disposeBoundsTree=H,N.prototype.raycast=Q})();const u=U().center([104,37.5]).translate([0,0]),f=([a,r]=$(()=>Y("./plugins/simpleGIS/json/china.json","features")),a=await a,r(),a),P={depth:10,bevelEnabled:!1},h=[];(()=>{f.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const d=new D;for(let i=0;i<s.length;i++){const[y,_]=u(s[i]);i===0&&d.moveTo(y,-_),d.lineTo(y,-_)}h.push({shape:d,properties:e.properties})})})})})();const C=new A({color:"#3480C4",linewidth:1,linecap:"round"}),p=R();w(()=>{p.value&&p.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,C];e.material=t})});let o=null;(()=>{const e=document.createElement("div");e.className="tooltip",e.style.border="1px solid white",e.style.position="absolute",e.style.color="white",e.style.padding="0px 6px",e.style.whiteSpace="no-wrap",e.style.visibility="hidden",document.body.appendChild(e),o=e})();const L=(e,t)=>{e.object.material[0].color.set(16711680),o.innerText=e.object.properties.name,o.style.visibility="visible"},j=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),o.style.visibility="hidden"},G=(e,t)=>{o.style.left="".concat(t.clientX+6,"px"),o.style.top="".concat(t.clientY+6,"px")},{onLoop:S}=M();return S(()=>{}),(e,t)=>(c(),v("TresGroup",{ref_key:"tgRef",ref:p},[(c(),v(z,null,F(h,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:L,onPointerLeave:j,onPointerMove:G},[l("TresExtrudeGeometry",{args:[n.shape,P]},null,8,ee),te],40,Z)),64))],512))}},oe=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),de=I({__name:"chinaMap",setup(k){const a=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:m}=M();return m(()=>{}),w(()=>{}),(u,f)=>(c(),E(b(V),O(a,{"window-size":""}),{default:T(()=>[oe,B(b(W),J(K(r)),null,16),(c(),E(X,null,{default:T(()=>[B(ae)]),_:1}))]),_:1},16))}});export{de as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.ILJ1tyqQ1710511998162.js";import{$ as p,aA as g,aB as w,a0 as v,an as y,o,c as b,W as x,K as m,v as n,D as l,a as _,a7 as B,ag as f,ac as R,a5 as C,a4 as $}from"./vendor.N0szyCtn1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";import"./Water2.Ex8IOmwE1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";const k={position:[0,0,-2]},G=["object"],S=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=g(()=>w("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,t(),e);r.renderOrder=9999,a.mesh_0.material.transparent=!0,a.mesh_0.material.depthWrite=!0,a.mesh_0.material.depthTest=!0,a.mesh_0.material.opacity=.7;const s=v({color:"#f857cc",scale:3.1,modelVisible:!0}),i=new y({title:"河流参数",expanded:!0});return i.addBinding(s,"modelVisible",{label:"模型显示"}).on("change",c=>{a.mesh_0.visible=c.value}),i.addBinding(s,"scale",{label:"分辨率",min:.1,max:10,step:.1}),i.addBinding(s,"color",{label:"河水颜色"}),(c,V)=>(o(),b("TresGroup",k,[x("primitive",{object:m(r)},null,8,G),(o(),n(f,null,{default:l(()=>[_(h,B({"position-y":1e-4,waterGeometry:m(a).mesh_0.geometry},s),null,16,["waterGeometry"])]),_:1}))]))}}),D=p({__name:"cityRiver",setup(d){const e=R(null);C(()=>{e.value&&e.value.$refs.perspectiveCameraRef.position.set(4,2.15,3.6)});const{onLoop:t}=$();return t(()=>{e.value&&console.log(e.value.$refs.perspectiveCameraRef)}),(r,a)=>(o(),n(u,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!1,ref_key:"pagesShowRef",ref:e,autoRotate:!1},{ability:l(()=>[(o(),n(f,null,{default:l(()=>[_(S)]),_:1}))]),_:1},512))}});export{D as default};
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.snBD-8il1710727997925.js";import{$ as p,aA as g,aB as w,a0 as v,an as y,o,c as b,W as x,K as m,v as n,D as l,a as _,a7 as B,ag as f,ac as R,a5 as C,a4 as $}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";import"./Water2.GJkq7RKA1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";const k={position:[0,0,-2]},G=["object"],S=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=g(()=>w("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,t(),e);r.renderOrder=9999,a.mesh_0.material.transparent=!0,a.mesh_0.material.depthWrite=!0,a.mesh_0.material.depthTest=!0,a.mesh_0.material.opacity=.7;const s=v({color:"#f857cc",scale:3.1,modelVisible:!0}),i=new y({title:"河流参数",expanded:!0});return i.addBinding(s,"modelVisible",{label:"模型显示"}).on("change",c=>{a.mesh_0.visible=c.value}),i.addBinding(s,"scale",{label:"分辨率",min:.1,max:10,step:.1}),i.addBinding(s,"color",{label:"河水颜色"}),(c,V)=>(o(),b("TresGroup",k,[x("primitive",{object:m(r)},null,8,G),(o(),n(f,null,{default:l(()=>[_(h,B({"position-y":1e-4,waterGeometry:m(a).mesh_0.geometry},s),null,16,["waterGeometry"])]),_:1}))]))}}),D=p({__name:"cityRiver",setup(d){const e=R(null);C(()=>{e.value&&e.value.$refs.perspectiveCameraRef.position.set(4,2.15,3.6)});const{onLoop:t}=$();return t(()=>{e.value&&console.log(e.value.$refs.perspectiveCameraRef)}),(r,a)=>(o(),n(u,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!1,ref_key:"pagesShowRef",ref:e,autoRotate:!1},{ability:l(()=>[(o(),n(f,null,{default:l(()=>[_(S)]),_:1}))]),_:1},512))}});export{D as default};

View File

@ -1 +1 @@
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.ILJ1tyqQ1710511998162.js";import{$ as _,aA as h,aB as f,a0 as w,an as y,o as a,c as g,W as x,K as c,v as r,D as o,a as l,a7 as B,ag as m}from"./vendor.N0szyCtn1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";import"./Water2.Ex8IOmwE1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";const C={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},k=["object"],v=_({__name:"indexBackup",async setup(p){let e,s;const{scene:n,nodes:t}=([e,s]=h(()=>f("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,s(),e);n.renderOrder=9999,t.mesh_0.material.transparent=!1,t.mesh_0.material.depthWrite=!0,t.mesh_0.material.depthTest=!0,t.mesh_0.material.opacity=.7;const i=w({color:"#FFF",scale:1});return new y({title:"河流参数",expanded:!0}).addBinding(i,"color"),($,b)=>(a(),g("TresGroup",C,[x("primitive",{object:c(n)},null,8,k),(a(),r(m,null,{default:o(()=>[l(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),V=_({__name:"cityRiver2",setup(p){return(e,s)=>(a(),r(d,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!0},{ability:o(()=>[(a(),r(m,null,{default:o(()=>[l(v)]),_:1}))]),_:1}))}});export{V as default};
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.snBD-8il1710727997925.js";import{$ as _,aA as h,aB as f,a0 as w,an as y,o as a,c as g,W as x,K as c,v as r,D as o,a as l,a7 as B,ag as m}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";import"./Water2.GJkq7RKA1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";const C={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},k=["object"],v=_({__name:"indexBackup",async setup(p){let e,s;const{scene:n,nodes:t}=([e,s]=h(()=>f("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,s(),e);n.renderOrder=9999,t.mesh_0.material.transparent=!1,t.mesh_0.material.depthWrite=!0,t.mesh_0.material.depthTest=!0,t.mesh_0.material.opacity=.7;const i=w({color:"#FFF",scale:1});return new y({title:"河流参数",expanded:!0}).addBinding(i,"color"),($,b)=>(a(),g("TresGroup",C,[x("primitive",{object:c(n)},null,8,k),(a(),r(m,null,{default:o(()=>[l(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),V=_({__name:"cityRiver2",setup(p){return(e,s)=>(a(),r(d,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!0},{ability:o(()=>[(a(),r(m,null,{default:o(()=>[l(v)]),_:1}))]),_:1}))}});export{V as default};

View File

@ -1 +1 @@
import{$ as _,k as m,a$ as o,b0 as l,a5 as f,an as h,o as d,v as g,D as w,K as a,a8 as x,a as b,ab as I,W as e,c as B,G as T,aQ as i,b1 as k,E as v}from"./vendor.N0szyCtn1710511998162.js";const C=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),y=e("TresGridHelper",{args:[2,10]},null,-1),M=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),P=["args"],E=["color","side","clipIntersection"],V=_({__name:"clippingMaterial",setup(G){const s=m(),c=[];for(let n=1;n<30;n+=2)c.push(n);const t=[new o(new l(1,0,0),0),new o(new l(0,-1,0),0),new o(new l(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};f(()=>{if(s.value){const n=s.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new h({title:"裁剪参数",expanded:!0});return r.addBinding(t[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(t[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(t[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,L)=>(d(),g(a(x),{ref_key:"tcRef",ref:s,"window-size":""},{default:w(()=>[C,y,M,b(a(I)),e("TresGroup",null,[(d(),B(v,null,T(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,P),e("TresMeshLambertMaterial",{color:[a(i).randInt(.1,1),a(i).randInt(0,1),a(i).randInt(0,1)],side:a(k),clippingPlanes:t,clipIntersection:u.clipIntersection},null,8,E)])),64))])]),_:1},512))}});export{V as default};
import{$ as _,k as m,a$ as o,b0 as l,a5 as f,an as h,o as d,v as g,D as w,K as a,a8 as x,a as b,ab as I,W as e,c as B,G as T,aQ as i,b1 as k,E as v}from"./vendor.Whz5JOL71710727997925.js";const C=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),y=e("TresGridHelper",{args:[2,10]},null,-1),M=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),P=["args"],E=["color","side","clipIntersection"],V=_({__name:"clippingMaterial",setup(G){const s=m(),c=[];for(let n=1;n<30;n+=2)c.push(n);const t=[new o(new l(1,0,0),0),new o(new l(0,-1,0),0),new o(new l(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};f(()=>{if(s.value){const n=s.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new h({title:"裁剪参数",expanded:!0});return r.addBinding(t[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(t[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(t[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,L)=>(d(),g(a(x),{ref_key:"tcRef",ref:s,"window-size":""},{default:w(()=>[C,y,M,b(a(I)),e("TresGroup",null,[(d(),B(v,null,T(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,P),e("TresMeshLambertMaterial",{color:[a(i).randInt(.1,1),a(i).randInt(0,1),a(i).randInt(0,1)],side:a(k),clippingPlanes:t,clipIntersection:u.clipIntersection},null,8,E)])),64))])]),_:1},512))}});export{V as default};

View File

@ -0,0 +1 @@
import{$ as d,aA as m,bj as _,bV as s,bJ as g,b0 as i,aw as l,a4 as v,o as w,c as b,K as f}from"./vendor.Whz5JOL71710727997925.js";import{S as n}from"./SPE.gx951f7j1710727997925.js";const h=["object","position"],k=d({__name:"cloudMesh",props:{cPosition:{default:[0,200,0]}},async setup(y){let e,r;const{map:t}=([e,r]=m(()=>_({map:"./plugins/digitalCity/image/cloud.png"})),e=await e,r(),e);t.magFilter=s,t.minFilter=s;const a=new n.Group({texture:{value:t},blending:g,depthTest:!1,depthWrite:!1}),p=new n.Emitter({type:n.distributions.BOX,particleCount:26,maxAge:{value:10},position:{value:new i(0,0,0),spread:new i(2e3,100,2e3)},velocity:{value:new i(0,0,30)},wiggle:{spread:10},size:{value:520,spread:[100,220],randomise:!0},drag:{value:220},opacity:{value:[0,1,0],randomise:!0},color:{value:new l(1,1,1),spread:new l(.1,.1,.1)},angle:{value:[0,Math.PI*1/8]}});a.addEmitter(p);const c=a.mesh,{onLoop:u}=v();return u(({dt:o})=>{a.tick(o)}),(o,C)=>(w(),b("primitive",{object:f(c),position:o.cPosition,renderOrder:3e3},null,8,h))}});export{k as _};

View File

@ -1 +1 @@
import{$ as i,bz as p,at as l,bH as m,av as r,a5 as f,o as u,c as y,K as d,aw as _}from"./vendor.N0szyCtn1710511998162.js";const v=["object"],b=i({__name:"cloudPoints",props:{model:{},color:{default:"#FFF"},opacity:{default:1},isRemoveSrc:{type:Boolean,default:!1}},setup(n){const o=n,t=new p;return o.model.traverse(e=>{if(e instanceof l){const s=e.geometry.clone();e.geometry.dispose(),e.material.dispose();const a=new m({color:o.color});a.opacity=o.opacity,a.transparent=!0;const c=new r(s,a);t.add(c),o.model.parent&&t.applyMatrix4(o.model.parent.matrix),o.isRemoveSrc&&e.removeFromParent()}}),f(()=>{o.color&&t.traverse(e=>{e instanceof r&&(e.material.color=new _(o.color))}),o.opacity&&t.traverse(e=>{e instanceof r&&(e.material.opacity=o.opacity)})}),(e,s)=>(u(),y("primitive",{object:d(t)},null,8,v))}});export{b as _};
import{$ as i,bz as p,at as l,bH as m,av as r,a5 as f,o as u,c as y,K as d,aw as _}from"./vendor.Whz5JOL71710727997925.js";const v=["object"],b=i({__name:"cloudPoints",props:{model:{},color:{default:"#FFF"},opacity:{default:1},isRemoveSrc:{type:Boolean,default:!1}},setup(n){const o=n,t=new p;return o.model.traverse(e=>{if(e instanceof l){const s=e.geometry.clone();e.geometry.dispose(),e.material.dispose();const a=new m({color:o.color});a.opacity=o.opacity,a.transparent=!0;const c=new r(s,a);t.add(c),o.model.parent&&t.applyMatrix4(o.model.parent.matrix),o.isRemoveSrc&&e.removeFromParent()}}),f(()=>{o.color&&t.traverse(e=>{e instanceof r&&(e.material.color=new _(o.color))}),o.opacity&&t.traverse(e=>{e instanceof r&&(e.material.opacity=o.opacity)})}),(e,s)=>(u(),y("primitive",{object:d(t)},null,8,v))}});export{b as _};

View File

@ -1 +0,0 @@
import{_ as v}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{$ as m,aA as w,bj as b,bV as l,bJ as h,b0 as o,aw as p,a4 as x,o as n,c as y,K as C,v as c,D as u,ag as k,a as B}from"./vendor.N0szyCtn1710511998162.js";import{S as s}from"./SPE.8MM34oNo1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const j=["object"],E=m({__name:"cloudMesh",async setup(_){let e,t;const{map:a}=([e,t]=w(()=>b({map:"./plugins/digitalCity/image/cloud.png"})),e=await e,t(),e);a.magFilter=l,a.minFilter=l;const r=new s.Group({texture:{value:a},blending:h,depthTest:!1,depthWrite:!1}),d=new s.Emitter({type:s.distributions.BOX,particleCount:26,maxAge:{value:10},position:{value:new o(0,0,0),spread:new o(2e3,100,2e3)},velocity:{value:new o(0,0,30)},wiggle:{spread:10},size:{value:520,spread:[100,220],randomise:!0},drag:{value:220},opacity:{value:[0,1,0],randomise:!0},color:{value:new p(1,1,1),spread:new p(.1,.1,.1)},angle:{value:[0,Math.PI*1/8]}});r.addEmitter(d);const g=r.mesh,{onLoop:f}=x();return f(({dt:i})=>{r.tick(i)}),(i,M)=>(n(),y("primitive",{object:C(g),position:[0,200,0],renderOrder:3e3},null,8,j))}}),G=m({__name:"clouds",setup(_){return(e,t)=>(n(),c(v,null,{ability:u(()=>[(n(),c(k,null,{default:u(()=>[B(E)]),_:1}))]),_:1}))}});export{G as default};

View File

@ -0,0 +1 @@
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as r}from"./cloudMesh.vue_vue_type_script_setup_true_lang.uiJC_woG1710727997925.js";import{$ as s,o as a,v as o,D as t,ag as _,a as m}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";import"./SPE.gx951f7j1710727997925.js";const h=s({__name:"clouds",setup(i){return(n,p)=>(a(),o(e,null,{ability:t(()=>[(a(),o(_,null,{default:t(()=>[m(r)]),_:1}))]),_:1}))}});export{h as default};

View File

@ -1 +1 @@
import{$ as n,a0 as c,o as i,c as _,a as s,D as p,a7 as d,K as m,a8 as l,E as u,ah as f,ai as h,W as e,_ as C}from"./vendor.N0szyCtn1710511998162.js";import{m as v,_ as x}from"./mergeTres.wgyP135y1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";const t=a=>(f("data-v-310c4de8"),a=a(),h(),a),M=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),T=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),b=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=n({__name:"cubeMesh",setup(a){const r=[116.52,39.79],o=c({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>(i(),_(u,null,[s(v,{center:r}),s(m(l),d({id:"tresCanvas",ref:"tcRef"},o),{default:p(()=>[M,T,b,s(x,{center:r})]),_:1},16)],64))}}),k=C(g,[["__scopeId","data-v-310c4de8"]]);export{k as default};
import{$ as n,a0 as c,o as i,c as _,a as s,D as p,a7 as d,K as m,a8 as l,E as u,ah as f,ai as h,W as e,_ as C}from"./vendor.Whz5JOL71710727997925.js";import{m as v,_ as x}from"./mergeTres.I9SqKWvg1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";const t=a=>(f("data-v-310c4de8"),a=a(),h(),a),M=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),T=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),b=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=n({__name:"cubeMesh",setup(a){const r=[116.52,39.79],o=c({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>(i(),_(u,null,[s(v,{center:r}),s(m(l),d({id:"tresCanvas",ref:"tcRef"},o),{default:p(()=>[M,T,b,s(x,{center:r})]),_:1},16)],64))}}),k=C(g,[["__scopeId","data-v-310c4de8"]]);export{k as default};

View File

@ -1 +1 @@
import{$ as l,aA as r,w as i,K as t,o as _,c as d,W as p,H as u,t as m,a as f,b$ as h,X as x,bt as g}from"./vendor.N0szyCtn1710511998162.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-20 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},C=l({__name:"default",async setup(b){let e,s;const{hasFinishLoading:c,progress:a}=([e,s]=r(()=>g()),e=await e,s(),e);return i(()=>a.value,async(o,n)=>{console.log(o,n)}),(o,n)=>t(c)?x("",!0):(_(),d("div",w,[p("div",y,[u(" 载入中... "+m(t(a))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{C as _};
import{$ as l,aA as r,w as i,K as t,o as _,c as d,W as p,H as u,t as m,a as f,b$ as h,X as x,bt as g}from"./vendor.Whz5JOL71710727997925.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-20 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},C=l({__name:"default",async setup(b){let e,s;const{hasFinishLoading:c,progress:a}=([e,s]=r(()=>g()),e=await e,s(),e);return i(()=>a.value,async(o,n)=>{console.log(o,n)}),(o,n)=>t(c)?x("",!0):(_(),d("div",w,[p("div",y,[u(" 载入中... "+m(t(a))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{C as _};

View File

@ -1 +1 @@
import{b3 as h,bu as _,cq as v,cr as M,cs as C,ct as T,cu as P,cb as S,cv as b,aw as m,b9 as E,bF as N,bL as x,bI as F,aE as A,au as w}from"./vendor.N0szyCtn1710511998162.js";import{m as I}from"./BufferGeometryUtils.AIH4OJeC1710511998162.js";import{P as R,F as G,R as O,E as g,S as U}from"./EffectComposer.QPH4y2V_1710511998162.js";import{U as D}from"./UnrealBloomPass.FXxUxNIh1710511998162.js";const L="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",B={name:"OutputShader",uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:"\n precision highp float;\n\n uniform mat4 modelViewMatrix;\n uniform mat4 projectionMatrix;\n\n attribute vec3 position;\n attribute vec2 uv;\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n \n precision highp float;\n\n uniform sampler2D tDiffuse;\n\n #include <tonemapping_pars_fragment>\n #include <colorspace_pars_fragment>\n\n varying vec2 vUv;\n\n void main() {\n\n gl_FragColor = texture2D( tDiffuse, vUv );\n\n // tone mapping\n\n #ifdef LINEAR_TONE_MAPPING\n\n gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );\n\n #elif defined( REINHARD_TONE_MAPPING )\n\n gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );\n\n #elif defined( CINEON_TONE_MAPPING )\n\n gl_FragColor.rgb = OptimizedCineonToneMapping( gl_FragColor.rgb );\n\n #elif defined( ACES_FILMIC_TONE_MAPPING )\n\n gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );\n\n #elif defined( AGX_TONE_MAPPING )\n\n gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );\n\n #endif\n\n // color space\n\n #ifdef SRGB_TRANSFER\n\n gl_FragColor = sRGBTransferOETF( gl_FragColor );\n\n #endif\n\n }"};class Q extends R{constructor(){super();const e=B;this.uniforms=h.clone(e.uniforms),this.material=new _({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new G(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,i){this.uniforms.tDiffuse.value=i.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},v.getTransfer(this._outputColorSpace)===M&&(this.material.defines.SRGB_TRANSFER=""),this._toneMapping===C?this.material.defines.LINEAR_TONE_MAPPING="":this._toneMapping===T?this.material.defines.REINHARD_TONE_MAPPING="":this._toneMapping===P?this.material.defines.CINEON_TONE_MAPPING="":this._toneMapping===S?this.material.defines.ACES_FILMIC_TONE_MAPPING="":this._toneMapping===b&&(this.material.defines.AGX_TONE_MAPPING=""),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}let c=new m("#0fb1fb");const V=new E({color:c,transparent:!0,opacity:.3}),f=new N({color:new m(c),depthTest:!0,transparent:!0}),z=o=>{const e=[];o.traverse(a=>{a.isMesh&&(e.push(a.geometry),a.material=V)});const t=I(e),i=new x(t,Math.PI*6.137),r=new F(i);return f.opacity=1,r.material=f,r},l={threshold:0,strength:.972,radius:.21},k=(o,e,t,i,r)=>{const a=new O(o,e),p=new D(new A(i,r),l.strength,l.radius,l.threshold),s=new g(t);s.renderToScreen=!1,s.addPass(a),s.addPass(p);const u=new U(new w({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:L,fragmentShader:y,defines:{}}),"baseTexture");u.needsSwap=!0;const d=new Q,n=new g(t);return n.addPass(a),n.addPass(u),n.addPass(d),{finalComposer:n,effectComposer:s,renderScene:a,bloomPass:p}};export{z as r,k as u};
import{b3 as h,bu as _,cq as v,cr as M,cs as C,ct as T,cu as P,cb as S,cv as b,aw as m,b9 as E,bF as N,bL as x,bI as F,aE as A,au as w}from"./vendor.Whz5JOL71710727997925.js";import{m as I}from"./BufferGeometryUtils.c6umBKMC1710727997925.js";import{P as R,F as G,R as O,E as g,S as U}from"./EffectComposer.UsY08FOr1710727997925.js";import{U as D}from"./UnrealBloomPass.IdrmEScP1710727997925.js";const L="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",B={name:"OutputShader",uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:"\n precision highp float;\n\n uniform mat4 modelViewMatrix;\n uniform mat4 projectionMatrix;\n\n attribute vec3 position;\n attribute vec2 uv;\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n \n precision highp float;\n\n uniform sampler2D tDiffuse;\n\n #include <tonemapping_pars_fragment>\n #include <colorspace_pars_fragment>\n\n varying vec2 vUv;\n\n void main() {\n\n gl_FragColor = texture2D( tDiffuse, vUv );\n\n // tone mapping\n\n #ifdef LINEAR_TONE_MAPPING\n\n gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );\n\n #elif defined( REINHARD_TONE_MAPPING )\n\n gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );\n\n #elif defined( CINEON_TONE_MAPPING )\n\n gl_FragColor.rgb = OptimizedCineonToneMapping( gl_FragColor.rgb );\n\n #elif defined( ACES_FILMIC_TONE_MAPPING )\n\n gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );\n\n #elif defined( AGX_TONE_MAPPING )\n\n gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );\n\n #endif\n\n // color space\n\n #ifdef SRGB_TRANSFER\n\n gl_FragColor = sRGBTransferOETF( gl_FragColor );\n\n #endif\n\n }"};class Q extends R{constructor(){super();const e=B;this.uniforms=h.clone(e.uniforms),this.material=new _({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new G(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,i){this.uniforms.tDiffuse.value=i.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},v.getTransfer(this._outputColorSpace)===M&&(this.material.defines.SRGB_TRANSFER=""),this._toneMapping===C?this.material.defines.LINEAR_TONE_MAPPING="":this._toneMapping===T?this.material.defines.REINHARD_TONE_MAPPING="":this._toneMapping===P?this.material.defines.CINEON_TONE_MAPPING="":this._toneMapping===S?this.material.defines.ACES_FILMIC_TONE_MAPPING="":this._toneMapping===b&&(this.material.defines.AGX_TONE_MAPPING=""),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}let c=new m("#0fb1fb");const V=new E({color:c,transparent:!0,opacity:.3}),f=new N({color:new m(c),depthTest:!0,transparent:!0}),z=o=>{const e=[];o.traverse(a=>{a.isMesh&&(e.push(a.geometry),a.material=V)});const t=I(e),i=new x(t,Math.PI*6.137),r=new F(i);return f.opacity=1,r.material=f,r},l={threshold:0,strength:.972,radius:.21},k=(o,e,t,i,r)=>{const a=new O(o,e),p=new D(new A(i,r),l.strength,l.radius,l.threshold),s=new g(t);s.renderToScreen=!1,s.addPass(a),s.addPass(p);const u=new U(new w({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:L,fragmentShader:y,defines:{}}),"baseTexture");u.needsSwap=!0;const d=new Q,n=new g(t);return n.addPass(a),n.addPass(u),n.addPass(d),{finalComposer:n,effectComposer:s,renderScene:a,bloomPass:p}};export{z as r,k as u};

View File

@ -1 +1 @@
import{$ as P,aA as L,aB as S,ak as A,b9 as p,a5 as N,a4 as E,aw as G,o as z,c as D,K as F}from"./vendor.N0szyCtn1710511998162.js";import{r as H,u as K}from"./device.RJObofd11710511998162.js";const O=["object"],$=P({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(_){let l,u;const t=_,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),v=H(r.Sketchfab_model),{camera:h,renderer:g,scene:s,sizes:f}=A();let n=null,c=null,a=null;const M=new p({color:"black"});N(()=>{if(h.value){s.value.add(v);const{finalComposer:e,effectComposer:o,bloomPass:x}=K(s.value,h.value,g.value,f.width.value,f.height.value);n=e,c=o,a=x,a.threshold=t.threshold,a.strength=t.strength,a.radius=t.radius}t.threshold&&(a.threshold=t.threshold),t.strength&&(a.strength=t.strength),t.radius&&(a.radius=t.radius)});const i={},k=e=>{(e.isMesh||e.type==="GridHelper"||e.name==="reflectorShaderMesh")&&(i[e.uuid]=e.material,e.material=M)},b=e=>{i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])},{onLoop:B,onAfterLoop:w}=E();let m=.03,d=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),C=d.material.clone(),y=new p({color:new G("red"),transparent:!0,opacity:1});return B(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=m,r.blades_turbine_003.rotation.x+=m),Math.floor(e)%2?d.material=C:d.material=y}),w(({elapsed:e})=>{c&&(s.value.traverse(o=>{k(o)}),c.render(e)),n&&(s.value.traverse(o=>{b(o)}),n.render(e))}),(e,o)=>(z(),D("primitive",{object:F(r).Sketchfab_model},null,8,O))}});export{$ as _};
import{$ as P,aA as L,aB as S,ak as A,b9 as p,a5 as N,a4 as E,aw as G,o as z,c as D,K as F}from"./vendor.Whz5JOL71710727997925.js";import{r as H,u as K}from"./device.qLlooZJ51710727997925.js";const O=["object"],$=P({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(_){let l,u;const t=_,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),v=H(r.Sketchfab_model),{camera:h,renderer:g,scene:s,sizes:f}=A();let n=null,c=null,a=null;const M=new p({color:"black"});N(()=>{if(h.value){s.value.add(v);const{finalComposer:e,effectComposer:o,bloomPass:x}=K(s.value,h.value,g.value,f.width.value,f.height.value);n=e,c=o,a=x,a.threshold=t.threshold,a.strength=t.strength,a.radius=t.radius}t.threshold&&(a.threshold=t.threshold),t.strength&&(a.strength=t.strength),t.radius&&(a.radius=t.radius)});const i={},k=e=>{(e.isMesh||e.type==="GridHelper"||e.name==="reflectorShaderMesh")&&(i[e.uuid]=e.material,e.material=M)},b=e=>{i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])},{onLoop:B,onAfterLoop:w}=E();let m=.03,d=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),C=d.material.clone(),y=new p({color:new G("red"),transparent:!0,opacity:1});return B(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=m,r.blades_turbine_003.rotation.x+=m),Math.floor(e)%2?d.material=C:d.material=y}),w(({elapsed:e})=>{c&&(s.value.traverse(o=>{k(o)}),c.render(e)),n&&(s.value.traverse(o=>{b(o)}),n.render(e))}),(e,o)=>(z(),D("primitive",{object:F(r).Sketchfab_model},null,8,O))}});export{$ as _};

View File

@ -1 +1 @@
import{$ as m,a0 as o,a1 as u,a2 as _,a3 as f,an as h,o as i,c as g,a,K as n,D as r,a7 as B,a8 as v,E as w,ab as C,a9 as l,aa as p,v as S,ag as b,W as t}from"./vendor.N0szyCtn1710511998162.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.bImfF3tj1710511998162.js";import{_ as T}from"./device.vue_vue_type_script_setup_true_lang.lzzcPcYP1710511998162.js";import"./starLoading.2qYRVxaW1710511998162.js";import"./bubbleLoading.o_QzAjk01710511998162.js";import"./device.RJObofd11710511998162.js";import"./BufferGeometryUtils.AIH4OJeC1710511998162.js";import"./EffectComposer.QPH4y2V_1710511998162.js";import"./UnrealBloomPass.FXxUxNIh1710511998162.js";const P=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),y=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),M=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),R=t("TresGridHelper",{position:[0,-1,0]},null,-1),K=m({__name:"deviceLight",setup(k){const c=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:_,toneMapping:f,disableRender:!0}),d=o({autoRotate:!0}),e=o({threshold:0,strength:.6,radius:.21}),s=new h({title:"参数"});return s.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),s.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),s.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(L,N)=>(i(),g(w,null,[a(n(x)),a(n(v),B(c,{"window-size":""}),{default:r(()=>[P,a(n(C),l(p(d)),null,16),y,M,(i(),S(b,null,{default:r(()=>[a(T,l(p(e)),null,16)]),_:1})),R]),_:1},16)],64))}});export{K as default};
import{$ as m,a0 as o,a1 as u,a2 as _,a3 as f,an as h,o as i,c as g,a,K as n,D as r,a7 as B,a8 as v,E as w,ab as C,a9 as l,aa as p,v as S,ag as b,W as t}from"./vendor.Whz5JOL71710727997925.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.hSXHCiBS1710727997925.js";import{_ as T}from"./device.vue_vue_type_script_setup_true_lang.8B9G0JUN1710727997925.js";import"./starLoading.mr1ZamTG1710727997925.js";import"./bubbleLoading.y5kDGaPO1710727997925.js";import"./device.qLlooZJ51710727997925.js";import"./BufferGeometryUtils.c6umBKMC1710727997925.js";import"./EffectComposer.UsY08FOr1710727997925.js";import"./UnrealBloomPass.IdrmEScP1710727997925.js";const P=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),y=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),M=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),R=t("TresGridHelper",{position:[0,-1,0]},null,-1),K=m({__name:"deviceLight",setup(k){const c=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:_,toneMapping:f,disableRender:!0}),d=o({autoRotate:!0}),e=o({threshold:0,strength:.6,radius:.21}),s=new h({title:"参数"});return s.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),s.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),s.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(L,N)=>(i(),g(w,null,[a(n(x)),a(n(v),B(c,{"window-size":""}),{default:r(()=>[P,a(n(C),l(p(d)),null,16),y,M,(i(),S(b,null,{default:r(()=>[a(T,l(p(e)),null,16)]),_:1})),R]),_:1},16)],64))}});export{K as default};

View File

@ -1 +1 @@
import{$ as S,aA as E,aB as F,ak as G,b9 as w,a5 as V,a4 as I,aw as K,o as g,c as O,W as n,K as d,E as W,a0 as _,a1 as X,a2 as j,a3 as q,an as H,v as C,D as M,a7 as J,a8 as Q,a as k,a9 as x,aa as y,ab as U,ag as Y}from"./vendor.N0szyCtn1710511998162.js";import{r as Z,u as ee}from"./device.RJObofd11710511998162.js";import"./BufferGeometryUtils.AIH4OJeC1710511998162.js";import"./EffectComposer.QPH4y2V_1710511998162.js";import"./UnrealBloomPass.FXxUxNIh1710511998162.js";const te=["object"],ae=["object"],se=S({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let r,l;const t=v,{nodes:a}=([r,l]=E(()=>F("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:u,renderer:P,scene:h,sizes:b}=G();let p=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(u.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(h.value,u.value,P.value,b.width.value,b.height.value);p=e,m=o,s=D,s.threshold=t.threshold,s.strength=t.strength,s.radius=t.radius}t.threshold&&(s.threshold=t.threshold),t.strength&&(s.strength=t.strength),t.radius&&(s.radius=t.radius)});const c={},L=e=>{e.isMesh&&(c[e.uuid]=e.material,e.material=T)},N=e=>{c[e.uuid]&&(e.material=c[e.uuid],delete c[e.uuid])},{onLoop:A,onAfterLoop:R}=I();let B=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),$=f.material.clone(),z=new w({color:new K("red"),transparent:!0,opacity:1});return A(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=B,a.blades_turbine_003.rotation.x+=B),Math.floor(e)%2?f.material=$:f.material=z}),R(({elapsed:e})=>{m&&(h.value.traverse(o=>{L(o)}),m.render(e)),p&&(h.value.traverse(o=>{N(o)}),p.render(e))}),(e,o)=>(g(),O(W,null,[n("primitive",{object:d(a).Sketchfab_model},null,8,te),n("primitive",{object:d(i)},null,8,ae)],64))}}),re=n("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=n("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),ne=n("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),he=S({__name:"deviceLightByComposerTres",setup(v){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:X,outputColorSpace:j,toneMapping:q}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new H({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成等待Tresjs库更新"}),(i,u)=>(g(),C(d(Q),J(r,{"window-size":""}),{default:M(()=>[re,k(d(U),x(y(l)),null,16),oe,ne,(g(),C(Y,null,{default:M(()=>[k(se,x(y(t)),null,16)]),_:1}))]),_:1},16))}});export{he as default};
import{$ as S,aA as E,aB as F,ak as G,b9 as w,a5 as V,a4 as I,aw as K,o as g,c as O,W as n,K as d,E as W,a0 as _,a1 as X,a2 as j,a3 as q,an as H,v as C,D as M,a7 as J,a8 as Q,a as k,a9 as x,aa as y,ab as U,ag as Y}from"./vendor.Whz5JOL71710727997925.js";import{r as Z,u as ee}from"./device.qLlooZJ51710727997925.js";import"./BufferGeometryUtils.c6umBKMC1710727997925.js";import"./EffectComposer.UsY08FOr1710727997925.js";import"./UnrealBloomPass.IdrmEScP1710727997925.js";const te=["object"],ae=["object"],se=S({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let r,l;const t=v,{nodes:a}=([r,l]=E(()=>F("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:u,renderer:P,scene:h,sizes:b}=G();let p=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(u.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(h.value,u.value,P.value,b.width.value,b.height.value);p=e,m=o,s=D,s.threshold=t.threshold,s.strength=t.strength,s.radius=t.radius}t.threshold&&(s.threshold=t.threshold),t.strength&&(s.strength=t.strength),t.radius&&(s.radius=t.radius)});const c={},L=e=>{e.isMesh&&(c[e.uuid]=e.material,e.material=T)},N=e=>{c[e.uuid]&&(e.material=c[e.uuid],delete c[e.uuid])},{onLoop:A,onAfterLoop:R}=I();let B=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),$=f.material.clone(),z=new w({color:new K("red"),transparent:!0,opacity:1});return A(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=B,a.blades_turbine_003.rotation.x+=B),Math.floor(e)%2?f.material=$:f.material=z}),R(({elapsed:e})=>{m&&(h.value.traverse(o=>{L(o)}),m.render(e)),p&&(h.value.traverse(o=>{N(o)}),p.render(e))}),(e,o)=>(g(),O(W,null,[n("primitive",{object:d(a).Sketchfab_model},null,8,te),n("primitive",{object:d(i)},null,8,ae)],64))}}),re=n("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=n("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),ne=n("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),he=S({__name:"deviceLightByComposerTres",setup(v){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:X,outputColorSpace:j,toneMapping:q}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new H({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成等待Tresjs库更新"}),(i,u)=>(g(),C(d(Q),J(r,{"window-size":""}),{default:M(()=>[re,k(d(U),x(y(l)),null,16),oe,ne,(g(),C(Y,null,{default:M(()=>[k(se,x(y(t)),null,16)]),_:1}))]),_:1},16))}});export{he as default};

View File

@ -1 +1 @@
import{$ as f,a0 as e,a1 as d,a2 as h,a3 as g,o as t,c as S,a,K as o,D as r,a7 as s,a8 as v,E as w,ab as B,a9 as i,aa as n,v as p,ag as l,W as C}from"./vendor.N0szyCtn1710511998162.js";import{_ as R}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.kWYMQL_i1710511998162.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.bImfF3tj1710511998162.js";import{_ as M}from"./device.vue_vue_type_script_setup_true_lang.lzzcPcYP1710511998162.js";import"./ReflectorMaterial.4RYIMy241710511998162.js";import"./dither.glsl.y2WXw1t-1710511998162.js";import"./OimoPhysicsBuffer.AVWO99eA1710511998162.js";import"./starLoading.2qYRVxaW1710511998162.js";import"./bubbleLoading.o_QzAjk01710511998162.js";import"./device.RJObofd11710511998162.js";import"./BufferGeometryUtils.AIH4OJeC1710511998162.js";import"./EffectComposer.QPH4y2V_1710511998162.js";import"./UnrealBloomPass.FXxUxNIh1710511998162.js";const P=C("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),j=f({__name:"deviceLightReflector",setup($){const c=e({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),m=e({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:d,outputColorSpace:h,toneMapping:g,disableRender:!0}),u=e({autoRotate:!0}),_=e({threshold:.37,strength:1.6,radius:.1});return(k,y)=>(t(),S(w,null,[a(o(x)),a(o(v),s(m,{"window-size":""}),{default:r(()=>[P,a(o(B),i(n(u)),null,16),(t(),p(l,null,{default:r(()=>[a(M,i(n(_)),null,16)]),_:1})),(t(),p(l,null,{default:r(()=>[a(R,s(c,{position:[0,-1,0]}),null,16)]),_:1}))]),_:1},16)],64))}});export{j as default};
import{$ as f,a0 as e,a1 as d,a2 as h,a3 as g,o as t,c as S,a,K as o,D as r,a7 as s,a8 as v,E as w,ab as B,a9 as i,aa as n,v as p,ag as l,W as C}from"./vendor.Whz5JOL71710727997925.js";import{_ as R}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.kBt9hKWA1710727997925.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.hSXHCiBS1710727997925.js";import{_ as M}from"./device.vue_vue_type_script_setup_true_lang.8B9G0JUN1710727997925.js";import"./ReflectorMaterial.7EgCKIG41710727997925.js";import"./dither.glsl.y2WXw1t-1710727997925.js";import"./OimoPhysicsBuffer.cFyoZZ-l1710727997925.js";import"./starLoading.mr1ZamTG1710727997925.js";import"./bubbleLoading.y5kDGaPO1710727997925.js";import"./device.qLlooZJ51710727997925.js";import"./BufferGeometryUtils.c6umBKMC1710727997925.js";import"./EffectComposer.UsY08FOr1710727997925.js";import"./UnrealBloomPass.IdrmEScP1710727997925.js";const P=C("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),j=f({__name:"deviceLightReflector",setup($){const c=e({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),m=e({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:d,outputColorSpace:h,toneMapping:g,disableRender:!0}),u=e({autoRotate:!0}),_=e({threshold:.37,strength:1.6,radius:.1});return(k,y)=>(t(),S(w,null,[a(o(x)),a(o(v),s(m,{"window-size":""}),{default:r(()=>[P,a(o(B),i(n(u)),null,16),(t(),p(l,null,{default:r(()=>[a(M,i(n(_)),null,16)]),_:1})),(t(),p(l,null,{default:r(()=>[a(R,s(c,{position:[0,-1,0]}),null,16)]),_:1}))]),_:1},16)],64))}});export{j as default};

View File

@ -1 +1 @@
import{$ as B,a0 as n,an as b,aA as y,a1 as S,a2 as C,a3 as x,o as l,c as k,a as m,K as e,D as f,a7 as r,a8 as P,E as T,ab as v,a9 as R,aa as $,W as c,v as d,X as u,ag as M}from"./vendor.N0szyCtn1710511998162.js";import{O as N,l as O}from"./util.CKIpBU9e1710511998162.js";/* empty css */import{_ as A}from"./randomLoading.vue_vue_type_script_setup_true_lang.bImfF3tj1710511998162.js";import{_ as G}from"./cloudPoints.vue_vue_type_script_setup_true_lang.8CQi0eC81710511998162.js";import{_ as J,a as V}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.Z_YvK0bX1710511998162.js";import"./starLoading.2qYRVxaW1710511998162.js";import"./bubbleLoading.o_QzAjk01710511998162.js";import"./BufferGeometryUtils.AIH4OJeC1710511998162.js";const z=c("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=c("TresAmbientLight",{intensity:.5},null,-1),L={position:[0,120,0]},D=c("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",ea=B({__name:"digitalBrain",async setup(H){let i,_;const o=n({color:"#fff",show:!0,opacity:1}),a=new b({title:"参数"});a.addBinding(o,"show",{label:"点云显示"}),a.addBinding(o,"color",{label:"点云颜色"}),a.addBinding(o,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const t=n({color:"#84ccff",show:!0,opacity:1});a.addBinding(t,"show",{label:"脑轮廓显示"}),a.addBinding(t,"color",{label:"脑轮廓颜色"}),a.addBinding(t,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const s=n({color:"#9e00af",show:!0,opacity:1});a.addBinding(s,"show",{label:"脑组织显示"}),a.addBinding(s,"color",{label:"脑组织颜色"}),a.addBinding(s,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const h=new N,p=([i,_]=y(()=>O(F,h)),i=await i,_(),i),g=n({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:C,toneMapping:x}),w=n({autoRotate:!0,autoRotateSpeed:2});return(I,K)=>(l(),k(T,null,[m(e(A)),m(e(P),r(g,{"window-size":""}),{default:f(()=>[z,m(e(v),R($(w)),null,16),E,c("TresGroup",L,[o.show?(l(),d(G,r({key:0,model:e(p)},o),null,16,["model"])):u("",!0),(l(),d(M,null,{default:f(()=>[t.show?(l(),d(J,r({key:0,model:e(p)},t),null,16,["model"])):u("",!0)]),_:1})),s.show?(l(),d(V,r({key:1,model:e(p)},s),null,16,["model"])):u("",!0)]),D]),_:1},16)],64))}});export{ea as default};
import{$ as B,a0 as n,an as b,aA as y,a1 as S,a2 as C,a3 as x,o as l,c as k,a as m,K as e,D as f,a7 as r,a8 as P,E as T,ab as v,a9 as R,aa as $,W as c,v as d,X as u,ag as M}from"./vendor.Whz5JOL71710727997925.js";import{O as N,l as O}from"./util.YAP4pdmo1710727997925.js";/* empty css */import{_ as A}from"./randomLoading.vue_vue_type_script_setup_true_lang.hSXHCiBS1710727997925.js";import{_ as G}from"./cloudPoints.vue_vue_type_script_setup_true_lang.W6uaU5YP1710727997925.js";import{_ as J,a as V}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.OzdZaLBW1710727997925.js";import"./starLoading.mr1ZamTG1710727997925.js";import"./bubbleLoading.y5kDGaPO1710727997925.js";import"./BufferGeometryUtils.c6umBKMC1710727997925.js";const z=c("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=c("TresAmbientLight",{intensity:.5},null,-1),L={position:[0,120,0]},D=c("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",ea=B({__name:"digitalBrain",async setup(H){let i,_;const o=n({color:"#fff",show:!0,opacity:1}),a=new b({title:"参数"});a.addBinding(o,"show",{label:"点云显示"}),a.addBinding(o,"color",{label:"点云颜色"}),a.addBinding(o,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const t=n({color:"#84ccff",show:!0,opacity:1});a.addBinding(t,"show",{label:"脑轮廓显示"}),a.addBinding(t,"color",{label:"脑轮廓颜色"}),a.addBinding(t,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const s=n({color:"#9e00af",show:!0,opacity:1});a.addBinding(s,"show",{label:"脑组织显示"}),a.addBinding(s,"color",{label:"脑组织颜色"}),a.addBinding(s,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const h=new N,p=([i,_]=y(()=>O(F,h)),i=await i,_(),i),g=n({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:C,toneMapping:x}),w=n({autoRotate:!0,autoRotateSpeed:2});return(I,K)=>(l(),k(T,null,[m(e(A)),m(e(P),r(g,{"window-size":""}),{default:f(()=>[z,m(e(v),R($(w)),null,16),E,c("TresGroup",L,[o.show?(l(),d(G,r({key:0,model:e(p)},o),null,16,["model"])):u("",!0),(l(),d(M,null,{default:f(()=>[t.show?(l(),d(J,r({key:0,model:e(p)},t),null,16,["model"])):u("",!0)]),_:1})),s.show?(l(),d(V,r({key:1,model:e(p)},s),null,16,["model"])):u("",!0)]),D]),_:1},16)],64))}});export{ea as default};

View File

@ -1 +1 @@
import{$ as S,a0 as o,an as C,aA as x,a1 as k,a2 as v,a3 as P,o as i,c as $,a as l,K as e,D as f,a7 as c,a8 as R,E as T,ab as z,a9 as h,aa as g,W as u,v as d,X as m,ag as M}from"./vendor.N0szyCtn1710511998162.js";import{O as N,l as O}from"./util.CKIpBU9e1710511998162.js";import{_ as A}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.g0vz0vfi1710511998162.js";/* empty css */import{_ as G}from"./randomLoading.vue_vue_type_script_setup_true_lang.bImfF3tj1710511998162.js";import{_ as J}from"./cloudPoints.vue_vue_type_script_setup_true_lang.8CQi0eC81710511998162.js";import{_ as L,a as V}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.Z_YvK0bX1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";import"./starLoading.2qYRVxaW1710511998162.js";import"./bubbleLoading.o_QzAjk01710511998162.js";import"./BufferGeometryUtils.AIH4OJeC1710511998162.js";const E=u("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),F=u("TresAmbientLight",{intensity:.5},null,-1),D={position:[0,120,0]},I="./plugins/medical/model/brainparts.OBJ",sa=S({__name:"digitalBrainFloor",async setup(K){let r,_;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),t=o({color:"#fff",show:!0,opacity:1}),a=new C({title:"参数"});a.addBinding(t,"show",{label:"点云显示"}),a.addBinding(t,"color",{label:"点云颜色"}),a.addBinding(t,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const s=o({color:"#84ccff",show:!0,opacity:1});a.addBinding(s,"show",{label:"脑轮廓显示"}),a.addBinding(s,"color",{label:"脑轮廓颜色"}),a.addBinding(s,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const n=o({color:"#9e00af",show:!0,opacity:1});a.addBinding(n,"show",{label:"脑组织显示"}),a.addBinding(n,"color",{label:"脑组织颜色"}),a.addBinding(n,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const B=new N,p=([r,_]=x(()=>O(I,B)),r=await r,_(),r),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:v,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(W,X)=>(i(),$(T,null,[l(e(G)),l(e(R),c(b,{"window-size":""}),{default:f(()=>[E,l(e(z),h(g(y)),null,16),F,u("TresGroup",D,[t.show?(i(),d(J,c({key:0,model:e(p)},t),null,16,["model"])):m("",!0),(i(),d(M,null,{default:f(()=>[s.show?(i(),d(L,c({key:0,model:e(p)},s),null,16,["model"])):m("",!0)]),_:1})),n.show?(i(),d(V,c({key:1,model:e(p)},n),null,16,["model"])):m("",!0)]),l(A,h(g(w)),null,16)]),_:1},16)],64))}});export{sa as default};
import{$ as S,a0 as o,an as C,aA as x,a1 as k,a2 as v,a3 as P,o as i,c as $,a as l,K as e,D as f,a7 as c,a8 as R,E as T,ab as z,a9 as h,aa as g,W as u,v as d,X as m,ag as M}from"./vendor.Whz5JOL71710727997925.js";import{O as N,l as O}from"./util.YAP4pdmo1710727997925.js";import{_ as A}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.NazMW-S01710727997925.js";/* empty css */import{_ as G}from"./randomLoading.vue_vue_type_script_setup_true_lang.hSXHCiBS1710727997925.js";import{_ as J}from"./cloudPoints.vue_vue_type_script_setup_true_lang.W6uaU5YP1710727997925.js";import{_ as L,a as V}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.OzdZaLBW1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";import"./starLoading.mr1ZamTG1710727997925.js";import"./bubbleLoading.y5kDGaPO1710727997925.js";import"./BufferGeometryUtils.c6umBKMC1710727997925.js";const E=u("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),F=u("TresAmbientLight",{intensity:.5},null,-1),D={position:[0,120,0]},I="./plugins/medical/model/brainparts.OBJ",sa=S({__name:"digitalBrainFloor",async setup(K){let r,_;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),t=o({color:"#fff",show:!0,opacity:1}),a=new C({title:"参数"});a.addBinding(t,"show",{label:"点云显示"}),a.addBinding(t,"color",{label:"点云颜色"}),a.addBinding(t,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const s=o({color:"#84ccff",show:!0,opacity:1});a.addBinding(s,"show",{label:"脑轮廓显示"}),a.addBinding(s,"color",{label:"脑轮廓颜色"}),a.addBinding(s,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const n=o({color:"#9e00af",show:!0,opacity:1});a.addBinding(n,"show",{label:"脑组织显示"}),a.addBinding(n,"color",{label:"脑组织颜色"}),a.addBinding(n,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const B=new N,p=([r,_]=x(()=>O(I,B)),r=await r,_(),r),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:v,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(W,X)=>(i(),$(T,null,[l(e(G)),l(e(R),c(b,{"window-size":""}),{default:f(()=>[E,l(e(z),h(g(y)),null,16),F,u("TresGroup",D,[t.show?(i(),d(J,c({key:0,model:e(p)},t),null,16,["model"])):m("",!0),(i(),d(M,null,{default:f(()=>[s.show?(i(),d(L,c({key:0,model:e(p)},s),null,16,["model"])):m("",!0)]),_:1})),n.show?(i(),d(V,c({key:1,model:e(p)},n),null,16,["model"])):m("",!0)]),l(A,h(g(w)),null,16)]),_:1},16)],64))}});export{sa as default};

View File

@ -1 +1 @@
import{$ as i,a0 as c,k as v,r as h,o as n,v as l,D as a,W as t,a as e,H as g,t as y,a7 as u,K as r,al as d,c as $,am as T,E as w,a8 as C,ab as D,ag as f,a9 as S,aa as k}from"./vendor.N0szyCtn1710511998162.js";/* empty css */import{_ as B}from"./randomLoading.vue_vue_type_script_setup_true_lang.bImfF3tj1710511998162.js";import{_ as F}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.kWYMQL_i1710511998162.js";import{_ as P}from"./model.vue_vue_type_script_setup_true_lang.wTDTx9gZ1710511998162.js";import"./starLoading.2qYRVxaW1710511998162.js";import"./bubbleLoading.o_QzAjk01710511998162.js";import"./ReflectorMaterial.4RYIMy241710511998162.js";import"./dither.glsl.y2WXw1t-1710511998162.js";import"./OimoPhysicsBuffer.AVWO99eA1710511998162.js";const b=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),L={class:"parallelogram"},z=t("span",null,"🔆 飞机螺旋桨",-1),E=i({__name:"illustratePropeller",setup(_){const s=c({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),o=v(new Date().toLocaleString());return setInterval(()=>{o.value=new Date().toLocaleString()},1e3),(p,m)=>{const x=h("timeDiv");return n(),l(r(d),u(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[b,t("div",L,[z,e(x,null,{default:a(()=>[g("📆: "+y(o.value),1)]),_:1})])]),_:1},16)}}}),I=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),M={class:"parallelogram"},N=t("span",null,"🪃 飞机机翼",-1),R=i({__name:"illustrateWing",setup(_){const s=c({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(o,p)=>{const m=h("contentDiv");return n(),l(r(d),u(s,{position:[-110,180,60]}),{default:a(()=>[I,t("div",M,[N,e(m,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),V=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🚀 WJ5E涡桨发动机"),t("p",null," 中功率涡浆功率2000千瓦1992年已批量生产。 ")])],-1),W=i({__name:"illustrateTire",setup(_){const s=c({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(o,p)=>(n(),l(r(d),u(s,{position:[-120,130,150]}),{default:a(()=>[V]),_:1},16))}}),G=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🛞 飞机轮胎"),t("p",null,"良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。")])],-1),H=t("TresBoxGeometry",{args:[106,58,6]},null,-1),A=i({__name:"illustrateTireMesh",setup(_){const s=c({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),o=v(null);return(p,m)=>(n(),$(w,null,[e(r(d),u(s,{position:[180,30,150]}),{default:a(()=>[G]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:o},[H,e(r(T))],512)],64))}}),J=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),K=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),j=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),at=i({__name:"divIllustrate",setup(_){const s=c({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(o,p)=>(n(),$(w,null,[e(r(B)),e(r(C),{clearColor:"#333","window-size":""},{default:a(()=>[J,e(r(D)),K,j,(n(),l(f,null,{default:a(()=>[e(P)]),_:1})),(n(),l(f,null,{default:a(()=>[e(F,S(k(s)),null,16)]),_:1})),e(E),e(R),e(W),e(A)]),_:1})],64))}});export{at as default};
import{$ as i,a0 as c,k as v,r as h,o as n,v as l,D as a,W as t,a as e,H as g,t as y,a7 as u,K as r,al as d,c as $,am as T,E as w,a8 as C,ab as D,ag as f,a9 as S,aa as k}from"./vendor.Whz5JOL71710727997925.js";/* empty css */import{_ as B}from"./randomLoading.vue_vue_type_script_setup_true_lang.hSXHCiBS1710727997925.js";import{_ as F}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.kBt9hKWA1710727997925.js";import{_ as P}from"./model.vue_vue_type_script_setup_true_lang._loyqYuD1710727997925.js";import"./starLoading.mr1ZamTG1710727997925.js";import"./bubbleLoading.y5kDGaPO1710727997925.js";import"./ReflectorMaterial.7EgCKIG41710727997925.js";import"./dither.glsl.y2WXw1t-1710727997925.js";import"./OimoPhysicsBuffer.cFyoZZ-l1710727997925.js";const b=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),L={class:"parallelogram"},z=t("span",null,"🔆 飞机螺旋桨",-1),E=i({__name:"illustratePropeller",setup(_){const s=c({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),o=v(new Date().toLocaleString());return setInterval(()=>{o.value=new Date().toLocaleString()},1e3),(p,m)=>{const x=h("timeDiv");return n(),l(r(d),u(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[b,t("div",L,[z,e(x,null,{default:a(()=>[g("📆: "+y(o.value),1)]),_:1})])]),_:1},16)}}}),I=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),M={class:"parallelogram"},N=t("span",null,"🪃 飞机机翼",-1),R=i({__name:"illustrateWing",setup(_){const s=c({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(o,p)=>{const m=h("contentDiv");return n(),l(r(d),u(s,{position:[-110,180,60]}),{default:a(()=>[I,t("div",M,[N,e(m,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),V=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🚀 WJ5E涡桨发动机"),t("p",null," 中功率涡浆功率2000千瓦1992年已批量生产。 ")])],-1),W=i({__name:"illustrateTire",setup(_){const s=c({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(o,p)=>(n(),l(r(d),u(s,{position:[-120,130,150]}),{default:a(()=>[V]),_:1},16))}}),G=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🛞 飞机轮胎"),t("p",null,"良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。")])],-1),H=t("TresBoxGeometry",{args:[106,58,6]},null,-1),A=i({__name:"illustrateTireMesh",setup(_){const s=c({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),o=v(null);return(p,m)=>(n(),$(w,null,[e(r(d),u(s,{position:[180,30,150]}),{default:a(()=>[G]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:o},[H,e(r(T))],512)],64))}}),J=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),K=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),j=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),at=i({__name:"divIllustrate",setup(_){const s=c({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(o,p)=>(n(),$(w,null,[e(r(B)),e(r(C),{clearColor:"#333","window-size":""},{default:a(()=>[J,e(r(D)),K,j,(n(),l(f,null,{default:a(()=>[e(P)]),_:1})),(n(),l(f,null,{default:a(()=>[e(F,S(k(s)),null,16)]),_:1})),e(E),e(R),e(W),e(A)]),_:1})],64))}});export{at as default};

View File

@ -1 +1 @@
import{$ as i,a0 as l,o as _,v as a,D as c,a9 as r,aa as u,K as e,al as m,W as s,a8 as v,a as o,ab as g}from"./vendor.N0szyCtn1710511998162.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=i({__name:"divS1",setup(d){const n=l({wrapperClass:"divS1",as:"div"});return(t,p)=>(_(),a(e(m),r(u(n)),{default:c(()=>[$]),_:1},16))}}),w={class:"poputs_show_cl"},x={class:"oneline"},S=s("div",{class:"name"},"最远距离(km)",-1),C=s("div",{class:"num_s"},"120",-1),I=["src"],j=s("div",{class:"num_end"},"30",-1),U={class:"oneline"},P=s("div",{class:"name"},"切片(层)",-1),b=s("div",{class:"num_s"},"10",-1),k=["src"],B=s("div",{class:"num_end"},"50",-1),T={class:"oneline"},y=s("div",{class:"name"},"最大速度(m/s)",-1),M=s("div",{class:"num_s"},"12",-1),N=["src"],z=s("div",{class:"num_end"},"46",-1),V=i({__name:"divS2",setup(d){const n=l({wrapperClass:"divS2",as:"div"});let t="./";return(p,h)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",w,[s("div",x,[S,C,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,I),j]),s("div",U,[P,b,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,k),B]),s("div",T,[y,M,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,N),z])])]),_:1},16))}}),D={class:"poputs_show_cl"},F={class:"oneline"},G=s("div",{class:"name"},"最远距离(km)",-1),K=s("div",{class:"num_s"},"120",-1),R=["src"],W=s("div",{class:"num_end"},"30",-1),q={class:"oneline"},A=s("div",{class:"name"},"切片(层)",-1),E=s("div",{class:"num_s"},"10",-1),H=["src"],J=s("div",{class:"num_end"},"50",-1),L={class:"oneline"},O=s("div",{class:"name"},"最大速度(m/s)",-1),Q=s("div",{class:"num_s"},"12",-1),X=["src"],Y=s("div",{class:"num_end"},"46",-1),Z=i({__name:"divSprite",setup(d){const n=l({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(p,h)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",D,[s("div",F,[G,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),W]),s("div",q,[A,E,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,H),J]),s("div",L,[O,Q,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,X),Y])])]),_:1},16))}}),ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),ns=s("TresMeshNormalMaterial",null,null,-1),is=i({__name:"divSample",setup(d){return(n,t)=>(_(),a(e(v),{clearColor:"#999","window-size":""},{default:c(()=>[ss,o(e(g)),s("TresMesh",es,[ts,ns,o(f),o(V),o(Z)])]),_:1}))}});export{is as default};
import{$ as i,a0 as l,o as _,v as a,D as c,a9 as r,aa as u,K as e,al as m,W as s,a8 as v,a as o,ab as g}from"./vendor.Whz5JOL71710727997925.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=i({__name:"divS1",setup(d){const n=l({wrapperClass:"divS1",as:"div"});return(t,p)=>(_(),a(e(m),r(u(n)),{default:c(()=>[$]),_:1},16))}}),w={class:"poputs_show_cl"},x={class:"oneline"},S=s("div",{class:"name"},"最远距离(km)",-1),C=s("div",{class:"num_s"},"120",-1),I=["src"],j=s("div",{class:"num_end"},"30",-1),U={class:"oneline"},P=s("div",{class:"name"},"切片(层)",-1),b=s("div",{class:"num_s"},"10",-1),k=["src"],B=s("div",{class:"num_end"},"50",-1),T={class:"oneline"},y=s("div",{class:"name"},"最大速度(m/s)",-1),M=s("div",{class:"num_s"},"12",-1),N=["src"],z=s("div",{class:"num_end"},"46",-1),V=i({__name:"divS2",setup(d){const n=l({wrapperClass:"divS2",as:"div"});let t="./";return(p,h)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",w,[s("div",x,[S,C,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,I),j]),s("div",U,[P,b,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,k),B]),s("div",T,[y,M,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,N),z])])]),_:1},16))}}),D={class:"poputs_show_cl"},F={class:"oneline"},G=s("div",{class:"name"},"最远距离(km)",-1),K=s("div",{class:"num_s"},"120",-1),R=["src"],W=s("div",{class:"num_end"},"30",-1),q={class:"oneline"},A=s("div",{class:"name"},"切片(层)",-1),E=s("div",{class:"num_s"},"10",-1),H=["src"],J=s("div",{class:"num_end"},"50",-1),L={class:"oneline"},O=s("div",{class:"name"},"最大速度(m/s)",-1),Q=s("div",{class:"num_s"},"12",-1),X=["src"],Y=s("div",{class:"num_end"},"46",-1),Z=i({__name:"divSprite",setup(d){const n=l({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(p,h)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",D,[s("div",F,[G,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),W]),s("div",q,[A,E,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,H),J]),s("div",L,[O,Q,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,X),Y])])]),_:1},16))}}),ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),ns=s("TresMeshNormalMaterial",null,null,-1),is=i({__name:"divSample",setup(d){return(n,t)=>(_(),a(e(v),{clearColor:"#999","window-size":""},{default:c(()=>[ss,o(e(g)),s("TresMesh",es,[ts,ns,o(f),o(V),o(Z)])]),_:1}))}});export{is as default};

View File

@ -1,4 +1,4 @@
import{$ as ye,a4 as li,ac as Qr,k as _i,a6 as Hi,o as bt,v as we,K as C,aX as Zr,aA as ci,bj as di,c as Fe,W as A,ax as Bt,E as Ie,aM as Jr,b0 as tn,G as en,b1 as Se,a as Et,D as Te,a7 as rn,a8 as nn,a2 as sn,cg as an,ab as on,ag as Ve}from"./vendor.N0szyCtn1710511998162.js";import{_ as un}from"./default.vue_vue_type_script_setup_true_lang.KUR4JuZ41710511998162.js";const fn=ye({__name:"starts",setup(f){const{onLoop:t}=li(),e=Qr(0);t(({delta:r})=>{e.value+=.02*r});const i=_i();return Hi(()=>{i.value.value.material.color.setHex(5076687),i.value.value.scale.set(5,5,5)}),(r,n)=>(bt(),we(C(Zr),{ref_key:"StarsREF",ref:i,rotation:[0,e.value,0],radius:100,depth:50,count:1e4,size:5,"size-attenuation":!0},null,8,["rotation"]))}}),hn={position:[0,0,0]},ln=A("TresSphereGeometry",{args:[50,32,32]},null,-1),_n=["map"],cn=A("TresSphereGeometry",{args:[53,32,32]},null,-1),dn=["map","alphaMap","blending"],pn={scale:[155,155,0]},mn=["map","blending"],gn={scale:[128,128,0]},yn=["map","blending"],xn=ye({__name:"earthmap",async setup(f){let t,e;const i=([t,e]=ci(()=>di(["./plugins/earthSample/image/earthA/map.jpg","./plugins/earthSample/image/earthA/earth.jpg","./plugins/earthSample/image/earthA/glow.png","./plugins/earthSample/image/earthA/innerGlow.png"])),t=await t,e(),t);return(r,n)=>(bt(),Fe(Ie,null,[A("TresMesh",hn,[ln,A("TresMeshBasicMaterial",{map:C(i)[0]},null,8,_n)]),A("TresMesh",null,[cn,A("TresMeshBasicMaterial",{map:C(i)[1],alphaMap:C(i)[1],blending:C(Bt),transparent:!0},null,8,dn)]),A("TresSprite",pn,[A("TresSpriteMaterial",{color:"#4d76cf",map:C(i)[2],blending:C(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,mn)]),A("TresSprite",gn,[A("TresSpriteMaterial",{color:"#4d76cf",map:C(i)[3],blending:C(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,yn)])],64))}});function yt(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Qi(f,t){f.prototype=Object.create(t.prototype),f.prototype.constructor=f,f.__proto__=t}/*!
import{$ as ye,a4 as li,ac as Qr,k as _i,a6 as Hi,o as bt,v as we,K as C,aX as Zr,aA as ci,bj as di,c as Fe,W as A,ax as Bt,E as Ie,aM as Jr,b0 as tn,G as en,b1 as Se,a as Et,D as Te,a7 as rn,a8 as nn,a2 as sn,cg as an,ab as on,ag as Ve}from"./vendor.Whz5JOL71710727997925.js";import{_ as un}from"./default.vue_vue_type_script_setup_true_lang.8fluCWMQ1710727997925.js";const fn=ye({__name:"starts",setup(f){const{onLoop:t}=li(),e=Qr(0);t(({delta:r})=>{e.value+=.02*r});const i=_i();return Hi(()=>{i.value.value.material.color.setHex(5076687),i.value.value.scale.set(5,5,5)}),(r,n)=>(bt(),we(C(Zr),{ref_key:"StarsREF",ref:i,rotation:[0,e.value,0],radius:100,depth:50,count:1e4,size:5,"size-attenuation":!0},null,8,["rotation"]))}}),hn={position:[0,0,0]},ln=A("TresSphereGeometry",{args:[50,32,32]},null,-1),_n=["map"],cn=A("TresSphereGeometry",{args:[53,32,32]},null,-1),dn=["map","alphaMap","blending"],pn={scale:[155,155,0]},mn=["map","blending"],gn={scale:[128,128,0]},yn=["map","blending"],xn=ye({__name:"earthmap",async setup(f){let t,e;const i=([t,e]=ci(()=>di(["./plugins/earthSample/image/earthA/map.jpg","./plugins/earthSample/image/earthA/earth.jpg","./plugins/earthSample/image/earthA/glow.png","./plugins/earthSample/image/earthA/innerGlow.png"])),t=await t,e(),t);return(r,n)=>(bt(),Fe(Ie,null,[A("TresMesh",hn,[ln,A("TresMeshBasicMaterial",{map:C(i)[0]},null,8,_n)]),A("TresMesh",null,[cn,A("TresMeshBasicMaterial",{map:C(i)[1],alphaMap:C(i)[1],blending:C(Bt),transparent:!0},null,8,dn)]),A("TresSprite",pn,[A("TresSpriteMaterial",{color:"#4d76cf",map:C(i)[2],blending:C(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,mn)]),A("TresSprite",gn,[A("TresSpriteMaterial",{color:"#4d76cf",map:C(i)[3],blending:C(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,yn)])],64))}});function yt(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Qi(f,t){f.prototype=Object.create(t.prototype),f.prototype.constructor=f,f.__proto__=t}/*!
* GSAP 3.12.5
* https://gsap.com
*

View File

@ -1 +1 @@
import{$ as m,ak as E,k as t,a5 as p,a4 as P,o as v,c as M,a as f,K as _,aY as b,W as s,E as R,aE as $,v as L,D as N,a8 as G,ab as V}from"./vendor.N0szyCtn1710511998162.js";import{R as z,E as D}from"./EffectComposer.QPH4y2V_1710511998162.js";import{U as H}from"./UnrealBloomPass.FXxUxNIh1710511998162.js";const U=s("TresBoxGeometry",{args:[1,1,1]},null,-1),A=s("TresMeshNormalMaterial",null,null,-1),F=[U,A],I=s("TresBoxGeometry",{args:[1,1,1]},null,-1),K=s("TresMeshNormalMaterial",null,null,-1),S=[I,K],W=m({__name:"ecLayers",setup(y){const{camera:e,renderer:a,scene:o,sizes:l}=E(),n=t(),c=t(),i=t();let r=null;p(()=>{n.value&&n.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),l.width.value&&x(o.value,e.value,a.value,l.width.value,l.height.value)});const u={threshold:0,strength:.972,radius:.21},x=(d,h,g,w,k)=>{const T=new z(d,h),C=new H(new $(w,k),u.strength,u.radius,u.threshold);r=new D(g),r.addPass(T),r.addPass(C)},{onLoop:B}=P();return B(()=>{r&&e.value&&(a.value.clear(),e.value.layers.set(1),r.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(o.value,e.value))}),(d,h)=>(v(),M(R,null,[f(_(b),{ref_key:"normalBox",ref:n,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),s("TresMesh",{ref_key:"shineBox",ref:c,position:[0,2,-4]},F,512),s("TresMesh",{ref_key:"filmBox",ref:i,position:[1,2,3]},S,512)],64))}}),Y=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),j=s("TresAmbientLight",{intensity:1},null,-1),q=s("TresGridHelper",{args:[10,10]},null,-1),X=m({__name:"effectComposerLayers",setup(y){const e=t();return p(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,o)=>(v(),L(_(G),{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:N(()=>[Y,j,f(_(V)),q,f(W)]),_:1},512))}});export{X as default};
import{$ as m,ak as E,k as t,a5 as p,a4 as P,o as v,c as M,a as f,K as _,aY as b,W as s,E as R,aE as $,v as L,D as N,a8 as G,ab as V}from"./vendor.Whz5JOL71710727997925.js";import{R as z,E as D}from"./EffectComposer.UsY08FOr1710727997925.js";import{U as H}from"./UnrealBloomPass.IdrmEScP1710727997925.js";const U=s("TresBoxGeometry",{args:[1,1,1]},null,-1),A=s("TresMeshNormalMaterial",null,null,-1),F=[U,A],I=s("TresBoxGeometry",{args:[1,1,1]},null,-1),K=s("TresMeshNormalMaterial",null,null,-1),S=[I,K],W=m({__name:"ecLayers",setup(y){const{camera:e,renderer:a,scene:o,sizes:l}=E(),n=t(),c=t(),i=t();let r=null;p(()=>{n.value&&n.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),l.width.value&&x(o.value,e.value,a.value,l.width.value,l.height.value)});const u={threshold:0,strength:.972,radius:.21},x=(d,h,g,w,k)=>{const T=new z(d,h),C=new H(new $(w,k),u.strength,u.radius,u.threshold);r=new D(g),r.addPass(T),r.addPass(C)},{onLoop:B}=P();return B(()=>{r&&e.value&&(a.value.clear(),e.value.layers.set(1),r.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(o.value,e.value))}),(d,h)=>(v(),M(R,null,[f(_(b),{ref_key:"normalBox",ref:n,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),s("TresMesh",{ref_key:"shineBox",ref:c,position:[0,2,-4]},F,512),s("TresMesh",{ref_key:"filmBox",ref:i,position:[1,2,3]},S,512)],64))}}),Y=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),j=s("TresAmbientLight",{intensity:1},null,-1),q=s("TresGridHelper",{args:[10,10]},null,-1),X=m({__name:"effectComposerLayers",setup(y){const e=t();return p(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,o)=>(v(),L(_(G),{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:N(()=>[Y,j,f(_(V)),q,f(W)]),_:1},512))}});export{X as default};

View File

@ -1 +1 @@
import{$ as x,k as m,ak as k,a5 as T,a4 as M,o as g,c as E,W as e,E as U,aE as D,au as R,v as $,D as N,K as _,a8 as V,a as h,ab as F}from"./vendor.N0szyCtn1710511998162.js";import{R as G,E as p,S as L}from"./EffectComposer.QPH4y2V_1710511998162.js";import{U as z}from"./UnrealBloomPass.FXxUxNIh1710511998162.js";const j=e("TresBoxGeometry",{args:[1,1,1]},null,-1),A=e("TresMeshNormalMaterial",null,null,-1),H=[j,A],I=e("TresBoxGeometry",{args:[1,1,1]},null,-1),K=e("TresMeshNormalMaterial",null,null,-1),W=[I,K],q=x({__name:"ecLayerShaderPass",setup(w){const a=m(),r=m(),{camera:t,renderer:n,scene:f,sizes:c}=k(),d={strength:.572,radius:.51,threshold:0};let v=null,s=null,o=null;const y=(l,i,u,B,S)=>{v=new G(l,i);const C=new z(new D(B,S),d.strength,d.radius,d.threshold);s=new p(u),s.renderToScreen=!1,s.addPass(v),s.addPass(C)},P=l=>{o=new p(l);const i=new R({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:"\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",fragmentShader:"\n uniform sampler2D baseTexture;\n uniform sampler2D bloomTexture;\n varying vec2 vUv;\n void main() {\n gl_FragColor = ( vec4( 1.0 ) *texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );\n }\n ",defines:{}}),u=new L(i,"baseTexture");u.needsSwap=!0,o.addPass(v),o.addPass(u)};T(()=>{a.value&&a.value.layers.set(0),r.value&&r.value.layers.set(1),c.width.value&&(y(f.value,t.value,n.value,c.width.value,c.height.value),P(n.value))});const{onLoop:b}=M();return b(()=>{s&&o&&t.value&&(n.value.clear(),t.value.layers.set(1),s.render(),n.value.clearDepth(),t.value.layers.set(0),o.render(f.value,t.value))}),(l,i)=>(g(),E(U,null,[e("TresMesh",{ref_key:"normalBox",ref:a,position:[3,2,1]},H,512),e("TresMesh",{ref_key:"shineBox",ref:r,position:[0,2,-4]},W,512)],64))}}),J=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),O=e("TresAmbientLight",{intensity:1},null,-1),Q=e("TresGridHelper",{args:[10,10]},null,-1),ee=x({__name:"effectComposerShaderPass",setup(w){const a=m();return T(()=>{if(a.value){let r=a.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>(g(),$(_(V),{disableRender:"","window-size":"",ref_key:"tcRef",ref:a},{default:N(()=>[J,O,h(_(F)),Q,h(q)]),_:1},512))}});export{ee as default};
import{$ as x,k as m,ak as k,a5 as T,a4 as M,o as g,c as E,W as e,E as U,aE as D,au as R,v as $,D as N,K as _,a8 as V,a as h,ab as F}from"./vendor.Whz5JOL71710727997925.js";import{R as G,E as p,S as L}from"./EffectComposer.UsY08FOr1710727997925.js";import{U as z}from"./UnrealBloomPass.IdrmEScP1710727997925.js";const j=e("TresBoxGeometry",{args:[1,1,1]},null,-1),A=e("TresMeshNormalMaterial",null,null,-1),H=[j,A],I=e("TresBoxGeometry",{args:[1,1,1]},null,-1),K=e("TresMeshNormalMaterial",null,null,-1),W=[I,K],q=x({__name:"ecLayerShaderPass",setup(w){const a=m(),r=m(),{camera:t,renderer:n,scene:f,sizes:c}=k(),d={strength:.572,radius:.51,threshold:0};let v=null,s=null,o=null;const y=(l,i,u,B,S)=>{v=new G(l,i);const C=new z(new D(B,S),d.strength,d.radius,d.threshold);s=new p(u),s.renderToScreen=!1,s.addPass(v),s.addPass(C)},P=l=>{o=new p(l);const i=new R({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:"\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",fragmentShader:"\n uniform sampler2D baseTexture;\n uniform sampler2D bloomTexture;\n varying vec2 vUv;\n void main() {\n gl_FragColor = ( vec4( 1.0 ) *texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );\n }\n ",defines:{}}),u=new L(i,"baseTexture");u.needsSwap=!0,o.addPass(v),o.addPass(u)};T(()=>{a.value&&a.value.layers.set(0),r.value&&r.value.layers.set(1),c.width.value&&(y(f.value,t.value,n.value,c.width.value,c.height.value),P(n.value))});const{onLoop:b}=M();return b(()=>{s&&o&&t.value&&(n.value.clear(),t.value.layers.set(1),s.render(),n.value.clearDepth(),t.value.layers.set(0),o.render(f.value,t.value))}),(l,i)=>(g(),E(U,null,[e("TresMesh",{ref_key:"normalBox",ref:a,position:[3,2,1]},H,512),e("TresMesh",{ref_key:"shineBox",ref:r,position:[0,2,-4]},W,512)],64))}}),J=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),O=e("TresAmbientLight",{intensity:1},null,-1),Q=e("TresGridHelper",{args:[10,10]},null,-1),ee=x({__name:"effectComposerShaderPass",setup(w){const a=m();return T(()=>{if(a.value){let r=a.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>(g(),$(_(V),{disableRender:"","window-size":"",ref_key:"tcRef",ref:a},{default:N(()=>[J,O,h(_(F)),Q,h(q)]),_:1},512))}});export{ee as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{$ as C,b1 as M,bZ as y,aw as x,a4 as U,a5 as S,o as b,c as k,W as g,K as h,a9 as P,aa as $,k as R,a0 as A,an as T,v as V,D as F,a as _,a7 as j}from"./vendor.N0szyCtn1710511998162.js";import{_ as D}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const E={renderOrder:2e3},G=["position","uv"],w=C({__name:"rippleMesh",props:{positionSrc:{default:[{x:0,y:0},{x:10,y:10}]},color:{default:"#ffff00"},opacity:{default:.8},height:{default:100},num:{default:8},speed:{default:.15}},setup(v){const o=v,t={side:M,transparent:!0,depthWrite:!1,depthTest:!0,vertexShader:"\nprecision lowp float;\nprecision lowp int;\n".concat(y.fog_pars_vertex,"\nvarying vec2 vUv;\nvoid main() {\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n ").concat(y.fog_vertex,"\n}\n"),fragmentShader:"\n precision lowp float;\n precision lowp int;\n uniform float time;\n uniform float opacity;\n uniform vec3 color;\n uniform float num;\n uniform float speed;\n varying vec2 vUv;\n void main() {\n vec4 fragColor = vec4(0.);\n float sin = sin((vUv.y - time * speed) * 10. * num);\n float high = 0.92;\n float medium = 0.4;\n if (sin > high) {\n fragColor = vec4(mix(vec3(.8, 1., 1.), color, (1. - sin) / (1. - high)), 1.);\n } else if(sin > medium) {\n fragColor = vec4(color, mix(1., 0., 1.-(sin - medium) / (high - medium)));\n } else {\n fragColor = vec4(color, 0.);\n }\n vec3 fade = mix(color, vec3(0., 0., 0.), vUv.y);\n fragColor = mix(fragColor, vec4(fade, 1.), 0.85);\n gl_FragColor = vec4(fragColor.rgb, fragColor.a * opacity * (1. - vUv.y));\n }\n ",uniforms:{time:{type:"pv2",value:0},color:{type:"uvs",value:new x(o.color)},opacity:{type:"pv2",value:o.opacity},num:{type:"pv2",value:o.num},speed:{type:"pv2",value:o.speed}}};let n=null,u=null;function d(s=[],c){const e=[],i=[];for(let f=0,a=e.length,r=i.length;f<s.length-1;f++){let m=1,l=s[f],p=s[f+1];e[a++]=l.x,e[a++]=0,e[a++]=l.y,i[r++]=0,i[r++]=0,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=p.x,e[a++]=c,e[a++]=p.y,i[r++]=1,i[r++]=m}n=new Float32Array(e),u=new Float32Array(i)}d(o.positionSrc,o.height);const{onLoop:B}=U();return B(({delta:s})=>{t.uniforms.time.value+=s}),S(()=>{o.color&&(t.uniforms.color.value=new x(o.color)),o.opacity&&(t.uniforms.opacity.value=o.opacity),o.num&&(t.uniforms.num.value=o.num),o.speed&&(t.uniforms.speed.value=o.speed)}),(s,c)=>(b(),k("TresMesh",E,[g("TresBufferGeometry",{position:[h(n),3],uv:[h(u),2]},null,8,G),g("TresShaderMaterial",P($(t)),null,16)]))}}),O=C({__name:"fence",setup(v){const o=R();S(()=>{o.value&&o.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const t=A({color:"#00ffdd",opacity:.8,num:8,speed:.2}),n=new T({title:"围墙效果",expanded:!0});return n.addBinding(t,"color",{label:"颜色"}),n.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.1}),n.addBinding(t,"speed",{label:"滚动速度",min:0,max:1,step:.1}),n.addBinding(t,"num",{label:"条纹数",min:0,max:20,step:1}),(u,d)=>(b(),V(D,{ref_key:"pagesShowRef",ref:o},{ability:F(()=>[_(w,{position:[0,20,0],positionSrc:[{x:-7.3*40,y:4.27*40},{x:-7.4*40,y:10.05*40},{x:-4.9*40,y:10.03*40},{x:-4.9*40,y:4.46*40},{x:-7.3*40,y:4.27*40}],height:180}),_(w,j({position:[0,20,0],positionSrc:[{x:.27*40,y:-1.19*40},{x:.32*40,y:-5.5*40},{x:-7.59*40,y:-5.9*40},{x:-7.6*40,y:-1.3*40},{x:.27*40,y:-1.19*40}]},t),null,16)]),_:1},512))}});export{O as default};
import{$ as C,b1 as M,bZ as y,aw as x,a4 as U,a5 as S,o as b,c as k,W as g,K as h,a9 as P,aa as $,k as R,a0 as A,an as T,v as V,D as F,a as _,a7 as j}from"./vendor.Whz5JOL71710727997925.js";import{_ as D}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const E={renderOrder:2e3},G=["position","uv"],w=C({__name:"rippleMesh",props:{positionSrc:{default:[{x:0,y:0},{x:10,y:10}]},color:{default:"#ffff00"},opacity:{default:.8},height:{default:100},num:{default:8},speed:{default:.15}},setup(v){const o=v,t={side:M,transparent:!0,depthWrite:!1,depthTest:!0,vertexShader:"\nprecision lowp float;\nprecision lowp int;\n".concat(y.fog_pars_vertex,"\nvarying vec2 vUv;\nvoid main() {\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n ").concat(y.fog_vertex,"\n}\n"),fragmentShader:"\n precision lowp float;\n precision lowp int;\n uniform float time;\n uniform float opacity;\n uniform vec3 color;\n uniform float num;\n uniform float speed;\n varying vec2 vUv;\n void main() {\n vec4 fragColor = vec4(0.);\n float sin = sin((vUv.y - time * speed) * 10. * num);\n float high = 0.92;\n float medium = 0.4;\n if (sin > high) {\n fragColor = vec4(mix(vec3(.8, 1., 1.), color, (1. - sin) / (1. - high)), 1.);\n } else if(sin > medium) {\n fragColor = vec4(color, mix(1., 0., 1.-(sin - medium) / (high - medium)));\n } else {\n fragColor = vec4(color, 0.);\n }\n vec3 fade = mix(color, vec3(0., 0., 0.), vUv.y);\n fragColor = mix(fragColor, vec4(fade, 1.), 0.85);\n gl_FragColor = vec4(fragColor.rgb, fragColor.a * opacity * (1. - vUv.y));\n }\n ",uniforms:{time:{type:"pv2",value:0},color:{type:"uvs",value:new x(o.color)},opacity:{type:"pv2",value:o.opacity},num:{type:"pv2",value:o.num},speed:{type:"pv2",value:o.speed}}};let n=null,u=null;function d(s=[],c){const e=[],i=[];for(let f=0,a=e.length,r=i.length;f<s.length-1;f++){let m=1,l=s[f],p=s[f+1];e[a++]=l.x,e[a++]=0,e[a++]=l.y,i[r++]=0,i[r++]=0,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=p.x,e[a++]=c,e[a++]=p.y,i[r++]=1,i[r++]=m}n=new Float32Array(e),u=new Float32Array(i)}d(o.positionSrc,o.height);const{onLoop:B}=U();return B(({delta:s})=>{t.uniforms.time.value+=s}),S(()=>{o.color&&(t.uniforms.color.value=new x(o.color)),o.opacity&&(t.uniforms.opacity.value=o.opacity),o.num&&(t.uniforms.num.value=o.num),o.speed&&(t.uniforms.speed.value=o.speed)}),(s,c)=>(b(),k("TresMesh",E,[g("TresBufferGeometry",{position:[h(n),3],uv:[h(u),2]},null,8,G),g("TresShaderMaterial",P($(t)),null,16)]))}}),O=C({__name:"fence",setup(v){const o=R();S(()=>{o.value&&o.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const t=A({color:"#00ffdd",opacity:.8,num:8,speed:.2}),n=new T({title:"围墙效果",expanded:!0});return n.addBinding(t,"color",{label:"颜色"}),n.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.1}),n.addBinding(t,"speed",{label:"滚动速度",min:0,max:1,step:.1}),n.addBinding(t,"num",{label:"条纹数",min:0,max:20,step:1}),(u,d)=>(b(),V(D,{ref_key:"pagesShowRef",ref:o},{ability:F(()=>[_(w,{position:[0,20,0],positionSrc:[{x:-7.3*40,y:4.27*40},{x:-7.4*40,y:10.05*40},{x:-4.9*40,y:10.03*40},{x:-4.9*40,y:4.46*40},{x:-7.3*40,y:4.27*40}],height:180}),_(w,j({position:[0,20,0],positionSrc:[{x:.27*40,y:-1.19*40},{x:.32*40,y:-5.5*40},{x:-7.59*40,y:-5.9*40},{x:-7.6*40,y:-1.3*40},{x:.27*40,y:-1.19*40}]},t),null,16)]),_:1},512))}});export{O as default};

View File

@ -0,0 +1 @@
import{$ as r,an as o,a0 as m,k as l,a5 as c,o as i,c as p,a as t,D as s,E as f,v as d,a7 as _,ag as u}from"./vendor.Whz5JOL71710727997925.js";import{_ as g}from"./default.vue_vue_type_script_setup_true_lang.8fluCWMQ1710727997925.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as B}from"./fireA.vue_vue_type_script_setup_true_lang.y7ZO9gC41710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const R=r({__name:"fireA",setup(S){const e=new o({title:"火-参数",expanded:!0}),a=m({fireScale:60,magnitude:1.3,lacunarity:2,gain:1});e.addBinding(a,"fireScale",{label:"大小",min:10,max:300,step:10}),e.addBinding(a,"magnitude",{label:"magnitude",min:.05,max:3,step:.05}),e.addBinding(a,"lacunarity",{label:"lacunarity",min:.1,max:10,step:.2}),e.addBinding(a,"gain",{label:"gain",min:.1,max:2,step:.1});const n=l();return c(()=>{n.value&&n.value.$refs.perspectiveCameraRef.position.set(580,360,500)}),(b,h)=>(i(),p(f,null,[t(g),t(x,{ref_key:"pagesShowRef",ref:n},{ability:s(()=>[(i(),d(u,null,{default:s(()=>[t(B,_(a,{position:[200,19,120]}),null,16)]),_:1}))]),_:1},512)],64))}});export{R as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as f}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{$ as c,aA as w,bj as b,ax as v,b0 as t,aw as x,a4 as g,o as r,c as h,K as B,v as n,D as p,ag as C,a as k}from"./vendor.N0szyCtn1710511998162.js";import{S as a}from"./SPE.8MM34oNo1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const y=["object"],E=c({__name:"fireB",async setup(l){let e,i;const{map:u}=([e,i]=w(()=>b({map:"./plugins/digitalCity/image/smokeparticle.png"})),e=await e,i(),e),o=new a.Group({texture:{value:u},blending:v,depthTest:!0,depthWrite:!1}),m=new a.Emitter({type:a.distributions.SPHERE,particleCount:150,maxAge:{value:3},position:{value:new t(0,0,0),spread:new t(1,1,1),radius:1},velocity:{value:new t(0,20,0),spread:new t(12,40,12),distribution:a.distributions.BOX},size:{value:[200,100,10]},color:{value:new x("#ff0000"),spread:new t(.05,.05,.01)}});o.addEmitter(m);const _=o.mesh,{onLoop:d}=g();return d(({dt:s})=>{o.tick(s)}),(s,j)=>(r(),h("primitive",{object:B(_),position:[-130,26,20],renderOrder:3e3},null,8,y))}}),T=c({__name:"fireB",setup(l){return(e,i)=>(r(),n(f,null,{ability:p(()=>[(r(),n(C,null,{default:p(()=>[k(E)]),_:1}))]),_:1}))}});export{T as default};

View File

@ -0,0 +1 @@
import{_ as o}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{_ as r}from"./fireB.vue_vue_type_script_setup_true_lang.f8oW_2Cx1710727997925.js";import{$ as s,o as a,v as t,D as e,ag as _,a as i}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";import"./SPE.gx951f7j1710727997925.js";const $=s({__name:"fireB",setup(m){return(n,p)=>(a(),t(o,null,{ability:e(()=>[(a(),t(_,null,{default:e(()=>[i(r)]),_:1}))]),_:1}))}});export{$ as default};

View File

@ -0,0 +1 @@
import{$ as l,aA as u,bj as d,ax as m,b0 as e,aw as _,a4 as w,o as b,c as f,K as v}from"./vendor.Whz5JOL71710727997925.js";import{S as o}from"./SPE.gx951f7j1710727997925.js";const g=["object"],k=l({__name:"fireB",async setup(x){let t,a;const{map:s}=([t,a]=u(()=>d({map:"./plugins/digitalCity/image/smokeparticle.png"})),t=await t,a(),t),i=new o.Group({texture:{value:s},blending:m,depthTest:!0,depthWrite:!1}),r=new o.Emitter({type:o.distributions.SPHERE,particleCount:150,maxAge:{value:3},position:{value:new e(0,0,0),spread:new e(1,1,1),radius:1},velocity:{value:new e(0,20,0),spread:new e(12,40,12),distribution:o.distributions.BOX},size:{value:[200,100,10]},color:{value:new _("#ff0000"),spread:new e(.05,.05,.01)}});i.addEmitter(r);const p=i.mesh,{onLoop:c}=w();return c(({dt:n})=>{i.tick(n)}),(n,h)=>(b(),f("primitive",{object:v(p),position:[-130,26,20],renderOrder:3001},null,8,g))}});export{k as _};

View File

@ -1 +1 @@
import{_ as w}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{$ as p,aA as x,bj as E,aE as b,ax as g,b0 as o,aw as s,a4 as h,o as r,c as y,K as B,v as n,D as l,ag as C,a as k}from"./vendor.N0szyCtn1710511998162.js";import{S as t}from"./SPE.8MM34oNo1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const A=["object"],S=p({__name:"fireBall",async setup(c){let e,a;const{map:u}=([e,a]=x(()=>E({map:"./plugins/digitalCity/image/sprite-explosion.png"})),e=await e,a(),e),i=new t.Group({texture:{value:u,frames:new b(5,5),loop:1},depthTest:!0,depthWrite:!1,blending:g,scale:600}),m=new t.Emitter({particleCount:20,type:t.distributions.SPHERE,position:{radius:1},maxAge:{value:2},activeMultiplier:20,velocity:{value:new o(10)},size:{value:[20,100]},color:{value:[new s(.5,.1,.05),new s(.2,.2,.2)]},opacity:{value:[.5,.35,.1,0]}}),_=new t.Emitter({particleCount:50,position:{spread:new o(5,5,5)},velocity:{spread:new o(30),distribution:t.distributions.SPHERE},size:{value:[2,20,20,20]},maxAge:{value:2},activeMultiplier:2e3,opacity:{value:[.5,.25,0,0]}});i.addEmitter(m).addEmitter(_);const d=i.mesh,{onLoop:v}=h();return v(({dt:f})=>{i.tick()}),(f,j)=>(r(),y("primitive",{object:B(d),position:[-130,60,20],renderOrder:3e3},null,8,A))}}),M=p({__name:"fireBall",setup(c){return(e,a)=>(r(),n(w,null,{ability:l(()=>[(r(),n(C,null,{default:l(()=>[k(S)]),_:1}))]),_:1}))}});export{M as default};
import{_ as w}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{$ as p,aA as x,bj as E,aE as b,ax as g,b0 as o,aw as s,a4 as h,o as r,c as y,K as B,v as n,D as l,ag as C,a as k}from"./vendor.Whz5JOL71710727997925.js";import{S as t}from"./SPE.gx951f7j1710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const A=["object"],S=p({__name:"fireBall",async setup(c){let e,a;const{map:u}=([e,a]=x(()=>E({map:"./plugins/digitalCity/image/sprite-explosion.png"})),e=await e,a(),e),i=new t.Group({texture:{value:u,frames:new b(5,5),loop:1},depthTest:!0,depthWrite:!1,blending:g,scale:600}),m=new t.Emitter({particleCount:20,type:t.distributions.SPHERE,position:{radius:1},maxAge:{value:2},activeMultiplier:20,velocity:{value:new o(10)},size:{value:[20,100]},color:{value:[new s(.5,.1,.05),new s(.2,.2,.2)]},opacity:{value:[.5,.35,.1,0]}}),_=new t.Emitter({particleCount:50,position:{spread:new o(5,5,5)},velocity:{spread:new o(30),distribution:t.distributions.SPHERE},size:{value:[2,20,20,20]},maxAge:{value:2},activeMultiplier:2e3,opacity:{value:[.5,.25,0,0]}});i.addEmitter(m).addEmitter(_);const d=i.mesh,{onLoop:v}=h();return v(({dt:f})=>{i.tick()}),(f,j)=>(r(),y("primitive",{object:B(d),position:[-130,60,20],renderOrder:3e3},null,8,A))}}),M=p({__name:"fireBall",setup(c){return(e,a)=>(r(),n(w,null,{ability:l(()=>[(r(),n(C,null,{default:l(()=>[k(S)]),_:1}))]),_:1}))}});export{M as default};

View File

@ -1 +1 @@
import{$ as p,o as l,v as c,D as d,a7 as _,K as e,a8 as u,a1 as h,a3 as m,a,aS as f,aT as g,aU as w,W as s}from"./vendor.N0szyCtn1710511998162.js";const C=s("TresPerspectiveCamera",{position:[0,3,10]},null,-1),T=s("TresGridHelper",{args:[100,100]},null,-1),B=s("TresAmbientLight",{intensity:1},null,-1),M=p({__name:"firstPersonControls",setup(b){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:m},r=o=>console.log(o);return(o,t)=>(l(),c(e(u),_(n,{"window-size":""}),{default:d(()=>[a(e(f)),C,a(e(g),{"make-default":"",onIsLock:t[0]||(t[0]=i=>r(i))}),a(e(w),{"head-bobbing":""}),T,B]),_:1},16))}});export{M as default};
import{$ as p,o as l,v as c,D as d,a7 as _,K as e,a8 as u,a1 as h,a3 as m,a,aS as f,aT as g,aU as w,W as s}from"./vendor.Whz5JOL71710727997925.js";const C=s("TresPerspectiveCamera",{position:[0,3,10]},null,-1),T=s("TresGridHelper",{args:[100,100]},null,-1),B=s("TresAmbientLight",{intensity:1},null,-1),M=p({__name:"firstPersonControls",setup(b){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:m},r=o=>console.log(o);return(o,t)=>(l(),c(e(u),_(n,{"window-size":""}),{default:d(()=>[a(e(f)),C,a(e(g),{"make-default":"",onIsLock:t[0]||(t[0]=i=>r(i))}),a(e(w),{"head-bobbing":""}),T,B]),_:1},16))}});export{M as default};

View File

@ -1 +1 @@
import{_ as i}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{$ as l,ak as d,w as t,o as s,c,X as p,c0 as u,aw as f,a0 as g,an as m,v as _,D as v,a as x,a9 as h,aa as y}from"./vendor.N0szyCtn1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const F=["color","near","far"],w=l({__name:"index",props:{type:{default:"Fog"},color:{default:"#000"},density:{default:.01},near:{default:100},far:{default:4e3}},setup(r){const e=r,{scene:a}=d();return t(()=>e.type,(o,n)=>{o==="FogExp2"&&(a.value.fog=new u(e.color,.001))}),t(()=>e.color,(o,n)=>{a.value.fog.color=new f(e.color)}),t(()=>e.density,(o,n)=>{a.value.fog.density=e.density}),(o,n)=>e.type==="Fog"?(s(),c("TresFog",{key:0,color:e.color,near:e.near,far:e.far},null,8,F)):p("",!0)}}),P=l({__name:"fog",setup(r){const e=g({type:"Fog",color:"#000",density:.001,near:100,far:4e3}),a=new m;return a.addBlade({view:"list",label:"类型",options:[{text:"普通雾",value:"Fog"},{text:"雾Exp2",value:"FogExp2"}],value:"Fog"}).on("change",o=>{e.type=o.value,a.children[2].hidden=o.value==="Fog",a.children[3].hidden=o.value==="FogExp2",a.children[4].hidden=o.value==="FogExp2"}),a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"density",{label:"密度",min:25e-5,max:.001,step:1e-4}),a.children[2].hidden=!0,a.addBinding(e,"near",{label:"最小距离",min:100,max:1e3,step:10}),a.addBinding(e,"far",{label:"最大距离",min:1e3,max:1e4,step:100}),(o,n)=>(s(),_(i,{ref:"pagesShowRef"},{ability:v(()=>[x(w,h(y(e)),null,16)]),_:1},512))}});export{P as default};
import{_ as i}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{$ as l,ak as d,w as t,o as s,c,X as p,c0 as u,aw as f,a0 as g,an as m,v as _,D as v,a as x,a9 as h,aa as y}from"./vendor.Whz5JOL71710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const F=["color","near","far"],w=l({__name:"index",props:{type:{default:"Fog"},color:{default:"#000"},density:{default:.01},near:{default:100},far:{default:4e3}},setup(r){const e=r,{scene:a}=d();return t(()=>e.type,(o,n)=>{o==="FogExp2"&&(a.value.fog=new u(e.color,.001))}),t(()=>e.color,(o,n)=>{a.value.fog.color=new f(e.color)}),t(()=>e.density,(o,n)=>{a.value.fog.density=e.density}),(o,n)=>e.type==="Fog"?(s(),c("TresFog",{key:0,color:e.color,near:e.near,far:e.far},null,8,F)):p("",!0)}}),P=l({__name:"fog",setup(r){const e=g({type:"Fog",color:"#000",density:.001,near:100,far:4e3}),a=new m;return a.addBlade({view:"list",label:"类型",options:[{text:"普通雾",value:"Fog"},{text:"雾Exp2",value:"FogExp2"}],value:"Fog"}).on("change",o=>{e.type=o.value,a.children[2].hidden=o.value==="Fog",a.children[3].hidden=o.value==="FogExp2",a.children[4].hidden=o.value==="FogExp2"}),a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"density",{label:"密度",min:25e-5,max:.001,step:1e-4}),a.children[2].hidden=!0,a.addBinding(e,"near",{label:"最小距离",min:100,max:1e3,step:10}),a.addBinding(e,"far",{label:"最大距离",min:1e3,max:1e4,step:100}),(o,n)=>(s(),_(i,{ref:"pagesShowRef"},{ability:v(()=>[x(w,h(y(e)),null,16)]),_:1},512))}});export{P as default};

View File

@ -1 +1 @@
import{$ as _,k as u,ac as r,w as d,o as h,v as f,D as n,a7 as m,K as s,a8 as M,a1 as g,a2 as T,a3 as w,W as e,a,am as i,aW as x,aY as y,b1 as C,ab as B}from"./vendor.N0szyCtn1710511998162.js";const b=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),k={"position-x":3},v=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),R={position:[0,0,-1]},G=e("TresPlaneGeometry",{args:[3,3]},null,-1),S=["side"],D=e("TresGridHelper",{args:[10,10]},null,-1),N=e("TresAmbientLight",{intensity:1},null,-1),P=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),L=_({__name:"glassMaterial",setup(z){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:g,outputColorSpace:T,toneMapping:w},p=u(),t=r(),o=r();return d(t,l=>{o.value.value.material.dispose(),o.value.value.material=l.MeshGlassMaterialClass}),(l,H)=>(h(),f(s(M),m(c,{ref_key:"context",ref:p,"window-size":""}),{default:n(()=>[b,e("TresMesh",k,[v,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(x),{scale:.5},{default:n(()=>[a(s(i))]),_:1}),a(s(y),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",R,[G,e("TresMeshBasicMaterial",{side:s(C),color:16716049},null,8,S)]),D,N,P,a(s(B))]),_:1},16))}});export{L as default};
import{$ as _,k as u,ac as r,w as d,o as h,v as f,D as n,a7 as m,K as s,a8 as M,a1 as g,a2 as T,a3 as w,W as e,a,am as i,aW as x,aY as y,b1 as C,ab as B}from"./vendor.Whz5JOL71710727997925.js";const b=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),k={"position-x":3},v=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),R={position:[0,0,-1]},G=e("TresPlaneGeometry",{args:[3,3]},null,-1),S=["side"],D=e("TresGridHelper",{args:[10,10]},null,-1),N=e("TresAmbientLight",{intensity:1},null,-1),P=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),L=_({__name:"glassMaterial",setup(z){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:g,outputColorSpace:T,toneMapping:w},p=u(),t=r(),o=r();return d(t,l=>{o.value.value.material.dispose(),o.value.value.material=l.MeshGlassMaterialClass}),(l,H)=>(h(),f(s(M),m(c,{ref_key:"context",ref:p,"window-size":""}),{default:n(()=>[b,e("TresMesh",k,[v,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(x),{scale:.5},{default:n(()=>[a(s(i))]),_:1}),a(s(y),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",R,[G,e("TresMeshBasicMaterial",{side:s(C),color:16716049},null,8,S)]),D,N,P,a(s(B))]),_:1},16))}});export{L as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{$ as n,a0 as o,an as i,o as s,c as r,a as e,D as m,E as p,a7 as l}from"./vendor.Whz5JOL71710727997925.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang._wyrdXvu1710727997925.js";import{_ as c}from"./default.vue_vue_type_script_setup_true_lang.8fluCWMQ1710727997925.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import"./heatmap.3D2cpWPx1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";const P=n({__name:"heatmap",setup(f){const a=o({show2dCanvas:!0,heightRatio:20,position:[0,20,0],Plane:[1e3,1e3,1e3,1e3]}),t=new i({title:"参数",expanded:!0});return t.addBinding(a,"show2dCanvas",{label:"显示二维图"}),t.addBinding(a,"heightRatio",{label:"高度",min:10,max:100,step:10}),(h,u)=>(s(),r(p,null,[e(c),e(d,null,{ability:m(()=>[e(_,l({ref:"heatmapJSRef"},a),null,16)]),_:1})],64))}});export{P as default};

View File

@ -1 +0,0 @@
import{$ as n,a0 as o,an as i,o as s,c as r,a as e,D as m,E as p,a7 as l}from"./vendor.N0szyCtn1710511998162.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang.EuNA6v3V1710511998162.js";import{_ as c}from"./default.vue_vue_type_script_setup_true_lang.KUR4JuZ41710511998162.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import"./heatmap.dquLTWwn1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";const P=n({__name:"heatmap",setup(f){const a=o({show2dCanvas:!0,heightRatio:20,position:[0,20,0],Plane:[1e3,1e3,1e3,1e3]}),t=new i({title:"参数",expanded:!0});return t.addBinding(a,"show2dCanvas",{label:"显示二维图"}),t.addBinding(a,"heightRatio",{label:"高度",min:10,max:100,step:10}),(h,u)=>(s(),r(p,null,[e(c),e(d,null,{ability:m(()=>[e(_,l({ref:"heatmapJSRef"},a),null,16)]),_:1})],64))}});export{P as default};

View File

@ -1 +1 @@
import{aQ as v,aj as N,k as m,$ as U,b_ as V,bd as $,at as w,a5 as H,o as y,c as _,W as M,K as r,E as P,ar as D,au as O,b1 as k,_ as F,a6 as G,aN as R,I as X,J as Y,t as W,Y as z,aA as J,a0 as S,an as K,a as p,D as Q,a7 as B}from"./vendor.N0szyCtn1710511998162.js";import{_ as q,l as Z,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.2Pi6_TXN1710511998162.js";import{h as te}from"./heatmap.dquLTWwn1710511998162.js";import{r as ae,c as oe,d as ne,a as se}from"./utils.degXbpjY1710511998162.js";import{m as ie}from"./BufferGeometryUtils.AIH4OJeC1710511998162.js";import"./vanilla-307d3a93.esm.WIN0tc6f1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";import"./LineSegments2.BpM5dkS41710511998162.js";import"./Water2.Ex8IOmwE1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";const T=36,f=-10,C=(o,e)=>o.getValueAt(e)+f,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:v.randInt(1,o._config.width),y:v.randInt(1,o._config.height),value:v.randInt(f,T)}),t++}o.setData({max:T,min:f,data:e})},ce=(o=250,e=250,t=!0)=>{const a=document.createElement("heatmap-canvas");return a.style.position="absolute",t||(a.style.display="none"),a.style.top="0",a.style.left="0",document.body.appendChild(a),te.create({container:a,width:o,height:e,blur:".8",radius:10,gradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"}})},I=N("buildingsHeatmap",()=>{const o=m(!1),e=m(0);function t(n){o.value=n}function a(n){e.value=n}return{showDiv:o,temperature:e,setShowDiv:t,setTemperature:a}}),le=["object","rotation-x"],ue=["object"],pe=U({__name:"buildingsHeatmap",props:{model:{},opacity:{default:1}},setup(o){(()=>{D.prototype.computeBoundsTree=oe,D.prototype.disposeBoundsTree=ne,w.prototype.raycast=se})();const t=o,a=ce();re(a);const n=new V(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new O({vertexShader:"\n varying vec2 vUv;\n void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n vUv = uv;\n }\n ",fragmentShader:"\n uniform sampler2D heightMap;\n uniform float uOpacity;\n varying vec2 vUv;\n void main() {\n gl_FragColor = vec4(texture2D(heightMap, vUv.xy).rgb, uOpacity);\n }\n ",uniforms:{uOpacity:{value:t.opacity},heightMap:{type:"t",value:s}},depthWrite:!0,depthTest:!0,transparent:!0,side:k}),i=t.model.city.clone();delete i.geometry.attributes.normal,delete i.geometry.attributes.uv;const g=i.geometry.clone().applyMatrix4(i.matrix),l=t.model.land.clone();delete l.geometry.attributes.normal;const b=l.geometry.clone().applyMatrix4(l.matrix),u=ie([g,b]);u.applyMatrix4(new $().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const x=c(n),E=new w(u,x);H(()=>{t.opacity&&(x.uniforms.uOpacity.value=t.opacity)});const d=I(),j=s=>{if(s){const h={x:s.uv.x*a._config.width,y:(1-s.uv.y)*a._config.height};console.log("数值:",s),console.log("数值———:",C(a,h)),d.setTemperature(C(a,h))}},A=s=>{s&&d.$patch({showDiv:!0})},L=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(y(),_(P,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:j,onPointerEnter:A,onPointerLeave:L},null,40,le),M("primitive",{object:t.model.model.children[0].clone()},null,8,ue)],64))}}),me={__name:"dataDiv",setup(o){const e=I(),t=m({top:0,left:0});function a(n){t.value.left=n.clientX+5+"px",t.value.top=n.clientY-20+"px"}return G(()=>{window.addEventListener("mousemove",a)}),R(()=>{window.removeEventListener("mousemove",a)}),(n,c)=>X((y(),_("div",{class:"title",style:z(t.value)},"温度:"+W(r(e).temperature)+"℃ ",5)),[[Y,r(e).showDiv]])}},de=F(me,[["__scopeId","data-v-fac3e7fd"]]),De=U({__name:"heatmap2",async setup(o){let e,t;const a=m(!1),n=([e,t]=J(()=>Z()),e=await e,t(),e);a.value=!0;const c=S({width:1,color:"#000",opacity:1,show:!0}),i=S({opacity:.9});return new K({title:"参数",expanded:!0}).addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1}),(l,b)=>(y(),_(P,null,[p(q,{showBuildings:!1,autoRotate:!1},{ability:Q(()=>[p(pe,B({model:r(n)},i),null,16,["model"]),p(ee,B(c,{builds:r(n).city}),null,16,["builds"])]),_:1}),p(de)],64))}});export{De as default};
import{aQ as v,aj as N,k as m,$ as U,b_ as V,bd as $,at as w,a5 as H,o as y,c as _,W as M,K as r,E as P,ar as D,au as O,b1 as k,_ as F,a6 as G,aN as R,I as X,J as Y,t as W,Y as z,aA as J,a0 as S,an as K,a as p,D as Q,a7 as B}from"./vendor.Whz5JOL71710727997925.js";import{_ as q,l as Z,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.PL43AZ611710727997925.js";import{h as te}from"./heatmap.3D2cpWPx1710727997925.js";import{r as ae,c as oe,d as ne,a as se}from"./utils.dZVFYtiH1710727997925.js";import{m as ie}from"./BufferGeometryUtils.c6umBKMC1710727997925.js";import"./vanilla-307d3a93.esm.oDMQ5mjs1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";import"./LineSegments2.VW83iRZ61710727997925.js";import"./Water2.GJkq7RKA1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";const T=36,f=-10,C=(o,e)=>o.getValueAt(e)+f,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:v.randInt(1,o._config.width),y:v.randInt(1,o._config.height),value:v.randInt(f,T)}),t++}o.setData({max:T,min:f,data:e})},ce=(o=250,e=250,t=!0)=>{const a=document.createElement("heatmap-canvas");return a.style.position="absolute",t||(a.style.display="none"),a.style.top="0",a.style.left="0",document.body.appendChild(a),te.create({container:a,width:o,height:e,blur:".8",radius:10,gradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"}})},I=N("buildingsHeatmap",()=>{const o=m(!1),e=m(0);function t(n){o.value=n}function a(n){e.value=n}return{showDiv:o,temperature:e,setShowDiv:t,setTemperature:a}}),le=["object","rotation-x"],ue=["object"],pe=U({__name:"buildingsHeatmap",props:{model:{},opacity:{default:1}},setup(o){(()=>{D.prototype.computeBoundsTree=oe,D.prototype.disposeBoundsTree=ne,w.prototype.raycast=se})();const t=o,a=ce();re(a);const n=new V(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new O({vertexShader:"\n varying vec2 vUv;\n void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n vUv = uv;\n }\n ",fragmentShader:"\n uniform sampler2D heightMap;\n uniform float uOpacity;\n varying vec2 vUv;\n void main() {\n gl_FragColor = vec4(texture2D(heightMap, vUv.xy).rgb, uOpacity);\n }\n ",uniforms:{uOpacity:{value:t.opacity},heightMap:{type:"t",value:s}},depthWrite:!0,depthTest:!0,transparent:!0,side:k}),i=t.model.city.clone();delete i.geometry.attributes.normal,delete i.geometry.attributes.uv;const g=i.geometry.clone().applyMatrix4(i.matrix),l=t.model.land.clone();delete l.geometry.attributes.normal;const b=l.geometry.clone().applyMatrix4(l.matrix),u=ie([g,b]);u.applyMatrix4(new $().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const x=c(n),E=new w(u,x);H(()=>{t.opacity&&(x.uniforms.uOpacity.value=t.opacity)});const d=I(),j=s=>{if(s){const h={x:s.uv.x*a._config.width,y:(1-s.uv.y)*a._config.height};console.log("数值:",s),console.log("数值———:",C(a,h)),d.setTemperature(C(a,h))}},A=s=>{s&&d.$patch({showDiv:!0})},L=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(y(),_(P,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:j,onPointerEnter:A,onPointerLeave:L},null,40,le),M("primitive",{object:t.model.model.children[0].clone()},null,8,ue)],64))}}),me={__name:"dataDiv",setup(o){const e=I(),t=m({top:0,left:0});function a(n){t.value.left=n.clientX+5+"px",t.value.top=n.clientY-20+"px"}return G(()=>{window.addEventListener("mousemove",a)}),R(()=>{window.removeEventListener("mousemove",a)}),(n,c)=>X((y(),_("div",{class:"title",style:z(t.value)},"温度:"+W(r(e).temperature)+"℃ ",5)),[[Y,r(e).showDiv]])}},de=F(me,[["__scopeId","data-v-fac3e7fd"]]),De=U({__name:"heatmap2",async setup(o){let e,t;const a=m(!1),n=([e,t]=J(()=>Z()),e=await e,t(),e);a.value=!0;const c=S({width:1,color:"#000",opacity:1,show:!0}),i=S({opacity:.9});return new K({title:"参数",expanded:!0}).addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1}),(l,b)=>(y(),_(P,null,[p(q,{showBuildings:!1,autoRotate:!1},{ability:Q(()=>[p(pe,B({model:r(n)},i),null,16,["model"]),p(ee,B(c,{builds:r(n).city}),null,16,["builds"])]),_:1}),p(de)],64))}});export{De as default};

View File

@ -1 +1 @@
import{$ as c,k as f,a4 as u,a0 as d,an as h,o as _,v as m,D as g,a7 as r,K as i,a8 as C,a2 as w,cg as S,a as l,ab as v,W as a}from"./vendor.N0szyCtn1710511998162.js";import{_ as y}from"./heatmapJS.vue_vue_type_script_setup_true_lang.EuNA6v3V1710511998162.js";import"./heatmap.dquLTWwn1710511998162.js";import"./_commonjsHelpers.5-cIlDoe1710511998162.js";const R=a("TresPerspectiveCamera",{position:[21,34,55],fov:60,near:1,far:1e3},null,-1),x=a("TresAmbientLight",{color:"#cccccc",intensity:.4},null,-1),B=a("TresPointLight",{color:"#ffffff",intensity:.8},null,-1),L=a("TresGridHelper",{args:[50,25],position:[0,0,0]},null,-1),G=c({__name:"heatmapExample",setup(P){const p={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:w,shadowMapType:S,useLegacyLights:!0,antialias:!0},t=f();let e=!0;u().onLoop(({elapsed:s})=>{!e&&parseInt(s)%2==1&&(e=!0,t.value&&t.value.setData()),e&&parseInt(s)%2==0&&(e=!1)});const o=d({show2dCanvas:!0,heightRatio:6}),n=new h({title:"参数",expanded:!0});return n.addBinding(o,"show2dCanvas",{label:"显示二维图"}),n.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,T)=>(_(),m(i(C),r(p,{"window-size":""}),{default:g(()=>[R,l(i(v),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,l(y,r({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16))}});export{G as default};
import{$ as c,k as f,a4 as u,a0 as d,an as h,o as _,v as m,D as g,a7 as r,K as i,a8 as C,a2 as w,cg as S,a as l,ab as v,W as a}from"./vendor.Whz5JOL71710727997925.js";import{_ as y}from"./heatmapJS.vue_vue_type_script_setup_true_lang._wyrdXvu1710727997925.js";import"./heatmap.3D2cpWPx1710727997925.js";import"./_commonjsHelpers.5-cIlDoe1710727997925.js";const R=a("TresPerspectiveCamera",{position:[21,34,55],fov:60,near:1,far:1e3},null,-1),x=a("TresAmbientLight",{color:"#cccccc",intensity:.4},null,-1),B=a("TresPointLight",{color:"#ffffff",intensity:.8},null,-1),L=a("TresGridHelper",{args:[50,25],position:[0,0,0]},null,-1),G=c({__name:"heatmapExample",setup(P){const p={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:w,shadowMapType:S,useLegacyLights:!0,antialias:!0},t=f();let e=!0;u().onLoop(({elapsed:s})=>{!e&&parseInt(s)%2==1&&(e=!0,t.value&&t.value.setData()),e&&parseInt(s)%2==0&&(e=!1)});const o=d({show2dCanvas:!0,heightRatio:6}),n=new h({title:"参数",expanded:!0});return n.addBinding(o,"show2dCanvas",{label:"显示二维图"}),n.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,T)=>(_(),m(i(C),r(p,{"window-size":""}),{default:g(()=>[R,l(i(v),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,l(y,r({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16))}});export{G as default};

View File

@ -1 +1 @@
import{$ as d,b_ as m,b1 as g,a5 as f,o as y,c as x,W as u,a9 as _,aa as M}from"./vendor.N0szyCtn1710511998162.js";import{h as R}from"./heatmap.dquLTWwn1710511998162.js";const b=["position"],w=["args","rotate-x"],C=d({__name:"heatmapJS",props:{position:{default:[0,0,0]},Plane:{default:[50,50,1e3,1e3]},show2dCanvas:{type:Boolean,default:!0},heightRatio:{default:6}},setup(p,{expose:c}){const a=p;let i=null;const s=(t,o)=>Math.round((Math.random()*(t-o+1)+o)*10)/10;let e=null;const v=()=>(e=document.createElement("heatmap-canvas"),e.width=100,e.height=100,e.style.position="absolute",e.style.top="0",e.style.left="0",document.body.appendChild(e),i=R.create({container:e,width:256,height:256,blur:".8",radius:10}),i),r=t=>{if(!t){let h=0;for(t=[];h<2e3;)t.push({x:s(1,256),y:s(1,256),value:s(1,6)}),h++}i.setData({max:12,data:t}),n.needsUpdate=!0},n=new m(v()._renderer.canvas);r();const l={transparent:!0,side:g,vertexShader:"\n uniform sampler2D heightMap;\n uniform float heightRatio;\n varying vec2 vUv;\n varying float hValue;\n varying vec3 cl;\n void main() {\n vUv = uv;\n vec3 pos = position;\n cl = texture2D(heightMap, vUv).rgb;\n hValue = texture2D(heightMap, vUv).r;\n pos.y = hValue * heightRatio;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos,1.0);\n }",fragmentShader:"\n varying float hValue;\n varying vec3 cl;\n void main() {\n float v = abs(hValue - 1.);\n gl_FragColor = vec4(cl, .8 - v * v*1.1) ; \n }",uniforms:{heightMap:{type:"t",value:n},heightRatio:{value:a.heightRatio}}};return f(()=>{e.style.display="".concat(a.show2dCanvas?"block":"none"),a.heightRatio&&(l.uniforms.heightRatio.value=a.heightRatio)}),c({setData:r}),(t,o)=>(y(),x("TresMesh",{position:a.position},[u("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,w),u("TresShaderMaterial",_(M(l)),null,16)],8,b))}});export{C as _};
import{$ as d,b_ as m,b1 as g,a5 as f,o as y,c as x,W as u,a9 as _,aa as M}from"./vendor.Whz5JOL71710727997925.js";import{h as R}from"./heatmap.3D2cpWPx1710727997925.js";const b=["position"],w=["args","rotate-x"],C=d({__name:"heatmapJS",props:{position:{default:[0,0,0]},Plane:{default:[50,50,1e3,1e3]},show2dCanvas:{type:Boolean,default:!0},heightRatio:{default:6}},setup(p,{expose:c}){const a=p;let i=null;const s=(t,o)=>Math.round((Math.random()*(t-o+1)+o)*10)/10;let e=null;const v=()=>(e=document.createElement("heatmap-canvas"),e.width=100,e.height=100,e.style.position="absolute",e.style.top="0",e.style.left="0",document.body.appendChild(e),i=R.create({container:e,width:256,height:256,blur:".8",radius:10}),i),r=t=>{if(!t){let h=0;for(t=[];h<2e3;)t.push({x:s(1,256),y:s(1,256),value:s(1,6)}),h++}i.setData({max:12,data:t}),n.needsUpdate=!0},n=new m(v()._renderer.canvas);r();const l={transparent:!0,side:g,vertexShader:"\n uniform sampler2D heightMap;\n uniform float heightRatio;\n varying vec2 vUv;\n varying float hValue;\n varying vec3 cl;\n void main() {\n vUv = uv;\n vec3 pos = position;\n cl = texture2D(heightMap, vUv).rgb;\n hValue = texture2D(heightMap, vUv).r;\n pos.y = hValue * heightRatio;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos,1.0);\n }",fragmentShader:"\n varying float hValue;\n varying vec3 cl;\n void main() {\n float v = abs(hValue - 1.);\n gl_FragColor = vec4(cl, .8 - v * v*1.1) ; \n }",uniforms:{heightMap:{type:"t",value:n},heightRatio:{value:a.heightRatio}}};return f(()=>{e.style.display="".concat(a.show2dCanvas?"block":"none"),a.heightRatio&&(l.uniforms.heightRatio.value=a.heightRatio)}),c({setData:r}),(t,o)=>(y(),x("TresMesh",{position:a.position},[u("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,w),u("TresShaderMaterial",_(M(l)),null,16)],8,b))}});export{C as _};

View File

@ -1 +1 @@
import{$ as p,k as i,a0 as _,o as h,v as d,D as t,a7 as o,K as s,a8 as f,a1 as m,a2 as x,a3 as T,a,ab as M,W as e,al as n}from"./vendor.N0szyCtn1710511998162.js";const g=e("TresPerspectiveCamera",{position:[3,0,8]},null,-1),w={position:[1,1,1]},y=e("TresBoxGeometry",null,null,-1),B=e("TresMeshNormalMaterial",null,null,-1),C=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Box 📦 ",-1),b=e("TresSphereGeometry",null,null,-1),S=e("TresMeshNormalMaterial",null,null,-1),v=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Sphere ⭕️ ",-1),N=e("TresTorusGeometry",null,null,-1),k=e("TresMeshNormalMaterial",null,null,-1),I=e("h1",{class:"bg-white text-xs p-0.5 text-fuchsia-500"}," I'm a Sprite 👻 ",-1),R=e("h1",{class:"bg-blue-gray-900 text-xs rounded p-0.5 text-green-100"}," I'm just a Div 🔖 ",-1),G=e("TresAmbientLight",{intensity:1},null,-1),z=p({__name:"htmls",setup(D){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:m,outputColorSpace:x,toneMapping:T},l=i(null),u=i(null),r=_({wrapperClass:"wrapper",as:"div",center:!0});return(P,V)=>(h(),d(s(f),o(c,{"window-size":""}),{default:t(()=>[g,a(s(M)),e("TresMesh",w,[y,B,a(s(n),o(r,{transform:"",occlude:[l.value]}),{default:t(()=>[C]),_:1},16,["occlude"])]),e("TresMesh",{ref_key:"sphereRef",ref:l,position:[4,1,1]},[b,S,a(s(n),o(r,{transform:""}),{default:t(()=>[v]),_:1},16)],512),e("TresMesh",{ref_key:"torusRef",ref:u,position:[7,1,1]},[N,k,a(s(n),o(r,{transform:"",sprite:""}),{default:t(()=>[I]),_:1},16)],512),a(s(n),o({position:[2,-1,1]},r,{transform:"",sprite:""}),{default:t(()=>[R]),_:1},16),G]),_:1},16))}});export{z as default};
import{$ as p,k as i,a0 as _,o as h,v as d,D as t,a7 as o,K as s,a8 as f,a1 as m,a2 as x,a3 as T,a,ab as M,W as e,al as n}from"./vendor.Whz5JOL71710727997925.js";const g=e("TresPerspectiveCamera",{position:[3,0,8]},null,-1),w={position:[1,1,1]},y=e("TresBoxGeometry",null,null,-1),B=e("TresMeshNormalMaterial",null,null,-1),C=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Box 📦 ",-1),b=e("TresSphereGeometry",null,null,-1),S=e("TresMeshNormalMaterial",null,null,-1),v=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Sphere ⭕️ ",-1),N=e("TresTorusGeometry",null,null,-1),k=e("TresMeshNormalMaterial",null,null,-1),I=e("h1",{class:"bg-white text-xs p-0.5 text-fuchsia-500"}," I'm a Sprite 👻 ",-1),R=e("h1",{class:"bg-blue-gray-900 text-xs rounded p-0.5 text-green-100"}," I'm just a Div 🔖 ",-1),G=e("TresAmbientLight",{intensity:1},null,-1),z=p({__name:"htmls",setup(D){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:m,outputColorSpace:x,toneMapping:T},l=i(null),u=i(null),r=_({wrapperClass:"wrapper",as:"div",center:!0});return(P,V)=>(h(),d(s(f),o(c,{"window-size":""}),{default:t(()=>[g,a(s(M)),e("TresMesh",w,[y,B,a(s(n),o(r,{transform:"",occlude:[l.value]}),{default:t(()=>[C]),_:1},16,["occlude"])]),e("TresMesh",{ref_key:"sphereRef",ref:l,position:[4,1,1]},[b,S,a(s(n),o(r,{transform:""}),{default:t(()=>[v]),_:1},16)],512),e("TresMesh",{ref_key:"torusRef",ref:u,position:[7,1,1]},[N,k,a(s(n),o(r,{transform:"",sprite:""}),{default:t(()=>[I]),_:1},16)],512),a(s(n),o({position:[2,-1,1]},r,{transform:"",sprite:""}),{default:t(()=>[R]),_:1},16),G]),_:1},16))}});export{z as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{aA as $,bj as W,k as Y,a5 as q,o as r,c as i,E as x,G as Q,v as B,D as w,W as o,t as U,a7 as D,K as m,al as Z,X as f,bJ as ee,b1 as te,ar as z,at as oe,aw as se,be as ne,b0 as re,cz as ae,$ as ie,a0 as G,a8 as pe,a as j,a9 as ce,aa as le,ab as de,ag as ue}from"./vendor.N0szyCtn1710511998162.js";import{l as he,c as _e,d as fe,a as me}from"./utils.degXbpjY1710511998162.js";import{m as ye}from"./mercator.ciCk-WjI1710511998162.js";import"./Water2.Ex8IOmwE1710511998162.js";import"./Reflector.hfiZATlG1710511998162.js";const ge=["position"],Te=["blending","map"],Me=["name","renderOrder"],be=["args"],xe=["color","side"],Be=["renderOrder","position-z"],we=["position"],Se=o("TresLineBasicMaterial",{color:16777215,linewidth:.5},null,-1),ve=["renderOrder"],Le=["position"],ke=o("TresLineBasicMaterial",{color:0,linewidth:.5},null,-1),Ee={__name:"jiangSuMapMesh",async setup(O){let s,a;(()=>{z.prototype.computeBoundsTree=_e,z.prototype.disposeBoundsTree=fe,oe.prototype.raycast=me})();const y=([s,a]=$(()=>he("./plugins/simpleGIS/json/320000_full.json","features")),s=await s,a(),s),{map:F}=([s,a]=$(()=>W({map:"./plugins/simpleGIS/image/icon.png"})),s=await s,a(),s),I=y[0].properties.centroid,p=ye();p.center(I).translate([0,0]);const c=[];(()=>{y.forEach(t=>{const g=new se("hsl( 16, ".concat(Math.random()*30+55,"%, ").concat(Math.random()*30+55,"%)")).getHex(),e=Math.random()*.3+.3,{centroid:n,oneCenter:J,center:X,name:S}=t.properties,{coordinates:K,type:v}=t.geometry,L=n||J||X||[0,0],d=p(L);d[1]=-d[1],d[2]=e,c.push({type:"Html",position:d,name:S});const u=p(L);u[1]=-u[1]+.2,u[2]=e+.22,c.push({type:"Sprite",position:u}),K.forEach(k=>{function E(h){const T=new ae;h.forEach((M,b)=>{const[_,C]=p(M);b===0?T.moveTo(_,-C):T.lineTo(_,-C)}),c.push({type:"Shape",shape:T,name:S,color:g,depth:e});const P=[];h.forEach(M=>{const[b,_]=p(M);P.push(b,-_,0)}),c.push({type:"Line",points:new Float32Array(P),depth:e})}v==="MultiPolygon"&&k.forEach(h=>E(h)),v==="Polygon"&&E(k)})})})();const N=t=>{t.rotation.x=-Math.PI/2;const e=new ne().setFromObject(t).getCenter(new re),n=[0,0];t.position.x=t.position.x-e.x-n[0],t.position.z=t.position.z-e.z-n[1]},l=Y();q(()=>{l.value&&(N(l.value),l.value.children.forEach(t=>{t.type==="Mesh"&&t.geometry.computeBoundsTree()}))});const R=t=>{t.object.material.opacity=.4},V=t=>{t.material.opacity=1},H={wrapperClass:"wrapper",as:"div",center:!0,sprite:!0,prepend:!0,transform:!0};return(t,g)=>(r(),i("TresGroup",{ref_key:"tgRef",ref:l},[(r(),i(x,null,Q(c,(e,n)=>(r(),i(x,{key:"".concat(n)},[e.type==="Html"?(r(),B(m(Z),D({key:0},H,{position:e.position}),{default:w(()=>[o("span",null,U(e.name),1)]),_:2},1040,["position"])):f("",!0),e.type==="Sprite"?(r(),i("TresSprite",{key:1,position:e.position,scale:.3,renderOrder:1e3},[o("TresSpriteMaterial",{color:16711680,blending:ee,map:m(F)},null,8,Te)],8,ge)):f("",!0),e.type==="Shape"?(r(),i("TresMesh",{key:2,name:e.name,renderOrder:n,onPointerEnter:R,onPointerLeave:V},[o("TresExtrudeGeometry",{args:[e.shape,{depth:e.depth,bevelEnabled:!1}]},null,8,be),o("TresMeshStandardMaterial",{color:e.color,emissive:0,roughness:.45,metalness:.8,transparent:!0,side:te},null,8,xe)],40,Me)):f("",!0),e.type==="Line"?(r(),i(x,{key:3},[o("TresLine",{renderOrder:n,"position-z":e.depth+1e-4},[o("TresBufferGeometry",{position:[e.points,3]},null,8,we),Se],8,Be),o("TresLine",{renderOrder:n,"position-z":-1e-4},[o("TresBufferGeometry",{position:[e.points,3]},null,8,Le),ke],8,ve)],64)):f("",!0)],64))),64))],512))}},Pe=o("TresPerspectiveCamera",{position:[0,12,0],fov:75,near:.1,far:1e3},null,-1),Ce=o("TresAmbientLight",{intensity:8.8},null,-1),$e=o("TresDirectionalLight",{position:[0,10,5],intensity:.2},null,-1),ze=o("TresDirectionalLight",{position:[0,10,-5],intensity:.2},null,-1),Ge=o("TresDirectionalLight",{position:[5,10,0],intensity:.2},null,-1),je=o("TresDirectionalLight",{position:[-5,10,0],intensity:.2},null,-1),Re=ie({__name:"jiangSuMap",setup(O){const s=G({clearColor:"#ffdbd1",alpha:!0,antialias:!0}),a=G({enableDamping:!0,dampingFactor:.05});return(A,y)=>(r(),B(m(pe),D(s,{"window-size":""}),{default:w(()=>[Pe,j(m(de),ce(le(a)),null,16),Ce,$e,ze,Ge,je,(r(),B(ue,null,{default:w(()=>[j(Ee)]),_:1}))]),_:1},16))}});export{Re as default};
import{aA as $,bj as W,k as Y,a5 as q,o as r,c as i,E as x,G as Q,v as B,D as w,W as o,t as U,a7 as D,K as m,al as Z,X as f,bJ as ee,b1 as te,ar as z,at as oe,aw as se,be as ne,b0 as re,cz as ae,$ as ie,a0 as G,a8 as pe,a as j,a9 as ce,aa as le,ab as de,ag as ue}from"./vendor.Whz5JOL71710727997925.js";import{l as he,c as _e,d as fe,a as me}from"./utils.dZVFYtiH1710727997925.js";import{m as ye}from"./mercator.ciCk-WjI1710727997925.js";import"./Water2.GJkq7RKA1710727997925.js";import"./Reflector.-4c0x0YS1710727997925.js";const ge=["position"],Te=["blending","map"],Me=["name","renderOrder"],be=["args"],xe=["color","side"],Be=["renderOrder","position-z"],we=["position"],Se=o("TresLineBasicMaterial",{color:16777215,linewidth:.5},null,-1),ve=["renderOrder"],Le=["position"],ke=o("TresLineBasicMaterial",{color:0,linewidth:.5},null,-1),Ee={__name:"jiangSuMapMesh",async setup(O){let s,a;(()=>{z.prototype.computeBoundsTree=_e,z.prototype.disposeBoundsTree=fe,oe.prototype.raycast=me})();const y=([s,a]=$(()=>he("./plugins/simpleGIS/json/320000_full.json","features")),s=await s,a(),s),{map:F}=([s,a]=$(()=>W({map:"./plugins/simpleGIS/image/icon.png"})),s=await s,a(),s),I=y[0].properties.centroid,p=ye();p.center(I).translate([0,0]);const c=[];(()=>{y.forEach(t=>{const g=new se("hsl( 16, ".concat(Math.random()*30+55,"%, ").concat(Math.random()*30+55,"%)")).getHex(),e=Math.random()*.3+.3,{centroid:n,oneCenter:J,center:X,name:S}=t.properties,{coordinates:K,type:v}=t.geometry,L=n||J||X||[0,0],d=p(L);d[1]=-d[1],d[2]=e,c.push({type:"Html",position:d,name:S});const u=p(L);u[1]=-u[1]+.2,u[2]=e+.22,c.push({type:"Sprite",position:u}),K.forEach(k=>{function E(h){const T=new ae;h.forEach((M,b)=>{const[_,C]=p(M);b===0?T.moveTo(_,-C):T.lineTo(_,-C)}),c.push({type:"Shape",shape:T,name:S,color:g,depth:e});const P=[];h.forEach(M=>{const[b,_]=p(M);P.push(b,-_,0)}),c.push({type:"Line",points:new Float32Array(P),depth:e})}v==="MultiPolygon"&&k.forEach(h=>E(h)),v==="Polygon"&&E(k)})})})();const N=t=>{t.rotation.x=-Math.PI/2;const e=new ne().setFromObject(t).getCenter(new re),n=[0,0];t.position.x=t.position.x-e.x-n[0],t.position.z=t.position.z-e.z-n[1]},l=Y();q(()=>{l.value&&(N(l.value),l.value.children.forEach(t=>{t.type==="Mesh"&&t.geometry.computeBoundsTree()}))});const R=t=>{t.object.material.opacity=.4},V=t=>{t.material.opacity=1},H={wrapperClass:"wrapper",as:"div",center:!0,sprite:!0,prepend:!0,transform:!0};return(t,g)=>(r(),i("TresGroup",{ref_key:"tgRef",ref:l},[(r(),i(x,null,Q(c,(e,n)=>(r(),i(x,{key:"".concat(n)},[e.type==="Html"?(r(),B(m(Z),D({key:0},H,{position:e.position}),{default:w(()=>[o("span",null,U(e.name),1)]),_:2},1040,["position"])):f("",!0),e.type==="Sprite"?(r(),i("TresSprite",{key:1,position:e.position,scale:.3,renderOrder:1e3},[o("TresSpriteMaterial",{color:16711680,blending:ee,map:m(F)},null,8,Te)],8,ge)):f("",!0),e.type==="Shape"?(r(),i("TresMesh",{key:2,name:e.name,renderOrder:n,onPointerEnter:R,onPointerLeave:V},[o("TresExtrudeGeometry",{args:[e.shape,{depth:e.depth,bevelEnabled:!1}]},null,8,be),o("TresMeshStandardMaterial",{color:e.color,emissive:0,roughness:.45,metalness:.8,transparent:!0,side:te},null,8,xe)],40,Me)):f("",!0),e.type==="Line"?(r(),i(x,{key:3},[o("TresLine",{renderOrder:n,"position-z":e.depth+1e-4},[o("TresBufferGeometry",{position:[e.points,3]},null,8,we),Se],8,Be),o("TresLine",{renderOrder:n,"position-z":-1e-4},[o("TresBufferGeometry",{position:[e.points,3]},null,8,Le),ke],8,ve)],64)):f("",!0)],64))),64))],512))}},Pe=o("TresPerspectiveCamera",{position:[0,12,0],fov:75,near:.1,far:1e3},null,-1),Ce=o("TresAmbientLight",{intensity:8.8},null,-1),$e=o("TresDirectionalLight",{position:[0,10,5],intensity:.2},null,-1),ze=o("TresDirectionalLight",{position:[0,10,-5],intensity:.2},null,-1),Ge=o("TresDirectionalLight",{position:[5,10,0],intensity:.2},null,-1),je=o("TresDirectionalLight",{position:[-5,10,0],intensity:.2},null,-1),Re=ie({__name:"jiangSuMap",setup(O){const s=G({clearColor:"#ffdbd1",alpha:!0,antialias:!0}),a=G({enableDamping:!0,dampingFactor:.05});return(A,y)=>(r(),B(m(pe),D(s,{"window-size":""}),{default:w(()=>[Pe,j(m(de),ce(le(a)),null,16),Ce,$e,ze,Ge,je,(r(),B(ue,null,{default:w(()=>[j(Ee)]),_:1}))]),_:1},16))}});export{Re as default};

Some files were not shown because too many files have changed in this diff Show More