mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
Merge branch 'master' into online
# Conflicts: # .fes.js
This commit is contained in:
commit
2544a7d487
2
.fes.js
2
.fes.js
@ -4,7 +4,7 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2023-10-16 10:53:09
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2024-03-18 10:13:00
|
||||
* @LastEditTime: 2024-03-25 21:24:53
|
||||
*/
|
||||
// import { resolve } from 'path';
|
||||
import { join } from 'path';
|
||||
|
@ -4,9 +4,10 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2023-10-16 10:53:09
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2024-03-05 08:47:57
|
||||
* @LastEditTime: 2024-03-25 21:06:01
|
||||
*/
|
||||
import { defineBuildConfig } from '@fesjs/fes';
|
||||
import { defineBuildConfig } from '@fesjs/fes'
|
||||
import addExtraScriptPlugin from './src/common/addExtraScriptPlugin'
|
||||
|
||||
export default defineBuildConfig({
|
||||
layout: {
|
||||
@ -76,4 +77,9 @@ export default defineBuildConfig({
|
||||
}
|
||||
],
|
||||
},
|
||||
viteOption: {
|
||||
plugins: [
|
||||
addExtraScriptPlugin()
|
||||
]
|
||||
},
|
||||
});
|
||||
|
@ -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-fd782587]{font-family:sans-serif}.circleScale[data-v-fd782587]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-fd782587]{animation:circleScaleExpandOld-fd782587 1s ease-in forwards}.circleScaleAnimationNew[data-v-fd782587]{animation:circleScaleExpandNew-fd782587 1s ease-out forwards}@keyframes circleScaleExpandOld-fd782587{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-fd782587{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-fd782587]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-fd782587]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-fd782587]{background-image:url(../png/heatmap2.cUx8f8j51711337837835.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-fd782587]{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-fd782587]{font-family:sans-serif}.circleScale[data-v-fd782587]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-fd782587]{animation:circleScaleExpandOld-fd782587 1s ease-in forwards}.circleScaleAnimationNew[data-v-fd782587]{animation:circleScaleExpandNew-fd782587 1s ease-out forwards}@keyframes circleScaleExpandOld-fd782587{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-fd782587{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-fd782587]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-fd782587]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-fd782587]{background-image:url(../png/heatmap2.cUx8f8j51711373106450.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-fd782587]{list-style:none}
|
@ -1 +1 @@
|
||||
.fes-divider:not(.is-vertical) .fes-divider-text{font-size:1.2em;background-color:#0f1222;font-weight:bolder;color:#fff}.fes-divider{background-color:#0f1222;margin:0 10px;width:95%}.fes-card__header{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.filterFixed[data-v-2414a10a]{position:fixed;top:50px;background-color:#fff;padding:8px 10px 6px;z-index:999;box-shadow:-1px 3px 10px rgba(0,0,0,.2);width:calc(100% - 234px);display:flex;align-items:flex-end}.filterFixed .FInput-input[data-v-2414a10a]{scale:.9;position:relative;width:20em}.filterFixed a[data-v-2414a10a]{margin-left:10px;position:relative}.layout-logo{width:12.5rem!important;padding:0!important;justify-content:center!important;margin:0!important}.fes-menu.is-vertical.is-inverted .fes-menu-item,.fes-menu.is-horizontal.is-inverted .fes-menu-item{font-size:.93em;font-weight:100}.fes-menu.is-vertical.is-inverted{overflow:hidden;height:calc(100vh - 54px);overflow:scroll}.fes-menu.is-vertical.is-inverted::-webkit-scrollbar{display:none}.toTop[data-v-59937972]{position:fixed;right:20px;bottom:20px;font-size:26px;font-weight:700;color:#0f1222;cursor:pointer}
|
||||
.fes-divider:not(.is-vertical) .fes-divider-text{font-size:1.2em;background-color:#0f1222;font-weight:bolder;color:#fff}.fes-divider{background-color:#0f1222;margin:0 10px;width:95%}.fes-card__header{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.filterFixed[data-v-2414a10a]{position:fixed;top:50px;background-color:#fff;padding:8px 10px 6px;z-index:999;box-shadow:-1px 3px 10px rgba(0,0,0,.2);width:calc(100% - 234px);display:flex;align-items:flex-end}.filterFixed .FInput-input[data-v-2414a10a]{scale:.9;position:relative;width:20em}.filterFixed a[data-v-2414a10a]{margin-left:10px;position:relative}.layout-logo{width:12.5rem!important;padding:0!important;justify-content:center!important;margin:0!important}.fes-menu.is-vertical.is-inverted .fes-menu-item,.fes-menu.is-horizontal.is-inverted .fes-menu-item{font-size:.93em;font-weight:100}.fes-menu.is-vertical.is-inverted{overflow:hidden;height:calc(100vh - 54px);overflow:scroll}.fes-menu.is-vertical.is-inverted::-webkit-scrollbar{display:none}.toTop[data-v-0650d6ca]{position:fixed;right:20px;bottom:20px;font-size:26px;font-weight:700;color:#0f1222;cursor:pointer}
|
File diff suppressed because one or more lines are too long
10
dist/index.html
vendored
10
dist/index.html
vendored
@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<script type="module" crossorigin src="./js/polyfills.b6T_bQnC1711337837835.js"></script>
|
||||
<script type="module" crossorigin src="./js/polyfills.b6T_bQnC1711373106450.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.7VxmfU4J1711337837835.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor.-e8za0Pb1711337837835.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.25MBa4FE1711337837835.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.2F2BZJXb1711337837835.css">
|
||||
<script type="module" crossorigin src="./js/index.eVQBR7Uv1711373106450.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor.qAzAwG5n1711373106450.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.25MBa4FE1711373106450.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.2F2BZJXb1711373106450.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1 +1 @@
|
||||
import{au as y,av as T,bC as E,bD as b,bE as G}from"./vendor.-e8za0Pb1711337837835.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===G){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{au as y,av as T,bC as E,bD as b,bE as G}from"./vendor.qAzAwG5n1711373106450.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===G){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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{b5 as r,ax as t}from"./vendor.-e8za0Pb1711337837835.js";import{P as o,F as n}from"./EffectComposer.4iBSRi1M1711337837835.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{b5 as r,ax as t}from"./vendor.qAzAwG5n1711373106450.js";import{P as o,F as n}from"./EffectComposer.rmqSd-Uk1711373106450.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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d9 as z,ba as B,at as M,da as G,cM as Y,aI as V}from"./vendor.-e8za0Pb1711337837835.js";class O 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,I,p;switch(this.type){case M: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,I=M;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,I=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:I}}setDataType(g){return this.type=g,this}load(g,b,S,A){function F(_,T){switch(_.type){case M:case B:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,F,S,A)}}export{O as R};
|
||||
import{d9 as z,ba as B,at as M,da as G,cM as Y,aI as V}from"./vendor.qAzAwG5n1711373106450.js";class O 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,I,p;switch(this.type){case M: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,I=M;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,I=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:I}}setDataType(g){return this.type=g,this}load(g,b,S,A){function F(_,T){switch(_.type){case M:case B:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,F,S,A)}}export{O as R};
|
@ -1 +1 @@
|
||||
import{aw as z,be as A,az as R,b2 as B,b3 as c,bf as W,bg as P,aB as k,ba as H,ax as I,b5 as q}from"./vendor.-e8za0Pb1711337837835.js";class w extends z{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 B,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,g=new k(_,F,{samples:j,type:H}),h=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});h.uniforms.tDiffuse.value=g.texture,h.uniforms.color.value=U,h.uniforms.textureMatrix.value=p,this.material=h,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(g),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 g},this.dispose=function(){g.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{aw as z,be as A,az as R,b2 as B,b3 as c,bf as W,bg as P,aB as k,ba as H,ax as I,b5 as q}from"./vendor.qAzAwG5n1711373106450.js";class w extends z{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 B,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,g=new k(_,F,{samples:j,type:H}),h=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});h.uniforms.tDiffuse.value=g.texture,h.uniforms.color.value=U,h.uniforms.textureMatrix.value=p,this.material=h,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(g),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 g},this.dispose=function(){g.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};
|
@ -1 +1 @@
|
||||
import{bw as c,bx as s,by as m,bf as d,az as t,bz as g,aH as M}from"./vendor.-e8za0Pb1711337837835.js";import{d as x}from"./dither.glsl.y2WXw1t-1711337837835.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{bw as c,bx as s,by as m,bf as d,az as t,bz as g,aH as M}from"./vendor.qAzAwG5n1711373106450.js";import{d as x}from"./dither.glsl.y2WXw1t-1711373106450.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
@ -1 +1 @@
|
||||
import{a0 as d,r as v,o as l,v as f,D as p,a7 as m,a8 as u,X as t,a as g,a9 as o,aa as a,K as h,ab as _,ap as x,aA as T}from"./vendor.-e8za0Pb1711337837835.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",C="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),k=["rotation-x"],M=t("TresPlaneGeometry",{args:[400,400]},null,-1),P=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),b=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),S=d({__name:"argestCircle",setup(z){const r={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:y,fragmentShader:C,side:x,blending:T,depthWrite:!1,transparent:!0},{onLoop:i}=u();return i(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,w)=>{const c=v("TresCanvas");return l(),f(c,m(r,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(h(_),o(a(s)),null,16),D,V,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[M,t("TresShaderMaterial",o(a(e)),null,16)],8,k),P,b]),_:1},16)}}});export{S as default};
|
||||
import{a0 as d,r as v,o as l,v as f,D as p,a7 as m,a8 as u,X as t,a as g,a9 as o,aa as a,K as h,ab as _,ap as x,aA as T}from"./vendor.qAzAwG5n1711373106450.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",C="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),k=["rotation-x"],M=t("TresPlaneGeometry",{args:[400,400]},null,-1),P=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),b=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),S=d({__name:"argestCircle",setup(z){const r={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:y,fragmentShader:C,side:x,blending:T,depthWrite:!1,transparent:!0},{onLoop:i}=u();return i(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,w)=>{const c=v("TresCanvas");return l(),f(c,m(r,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(h(_),o(a(s)),null,16),D,V,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[M,t("TresShaderMaterial",o(a(e)),null,16)],8,k),P,b]),_:1},16)}}});export{S as default};
|
@ -1 +1 @@
|
||||
import{a0 as _,ak as E,a5 as T,o as w,v,K as P,a$ as k,aF as F,a8 as H,aH as L,aw as M,aL as N,b9 as R,r as V,D as y,a as u,ab as z,X as d}from"./vendor.-e8za0Pb1711337837835.js";import{R as f,E as G}from"./EffectComposer.4iBSRi1M1711337837835.js";import{U as S}from"./UnrealBloomPass.ceNMyCeg1711337837835.js";import{F as U}from"./FilmPass.Mg85eCHs1711337837835.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:i,scene:l,sizes:s}=E(),c={threshold:0,strength:.972,radius:.21};let e=null;const C=(a,o,m,h,p)=>{const t=new f(a,o),r=new S(new L(h,p),c.strength,c.radius,c.threshold);e=new G(m),e.addPass(t),e.addPass(r)},b=(a,o,m,h,p)=>{let t=new M(new N(1,1,1),new R);t.position.set(0,2,-4),a.add(t);var r=new f(a,o);r.clear=!1,e.addPass(r);const B=new U;e.addPass(B)};T(()=>{s.width.value&&(C(l.value,n.value,i.value,s.width.value,s.height.value),b(new F,n.value,i.value,s.width.value,s.height.value))});const{onLoop:x}=H();return x(()=>{e&&e.render()}),(a,o)=>(w(),v(P(k),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),A=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),D=d("TresAmbientLight",{intensity:1},null,-1),I=d("TresGridHelper",{args:[10,10]},null,-1),J=_({__name:"bloomPass",setup(g){return(n,i)=>{const l=V("TresCanvas");return w(),v(l,{disableRender:"","window-size":""},{default:y(()=>[A,D,u(P(z)),I,u($)]),_:1})}}});export{J as default};
|
||||
import{a0 as _,ak as E,a5 as T,o as w,v,K as P,a$ as k,aF as F,a8 as H,aH as L,aw as M,aL as N,b9 as R,r as V,D as y,a as u,ab as z,X as d}from"./vendor.qAzAwG5n1711373106450.js";import{R as f,E as G}from"./EffectComposer.rmqSd-Uk1711373106450.js";import{U as S}from"./UnrealBloomPass.F6L0WcBA1711373106450.js";import{F as U}from"./FilmPass.Ysckd2Fx1711373106450.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:i,scene:l,sizes:s}=E(),c={threshold:0,strength:.972,radius:.21};let e=null;const C=(a,o,m,h,p)=>{const t=new f(a,o),r=new S(new L(h,p),c.strength,c.radius,c.threshold);e=new G(m),e.addPass(t),e.addPass(r)},b=(a,o,m,h,p)=>{let t=new M(new N(1,1,1),new R);t.position.set(0,2,-4),a.add(t);var r=new f(a,o);r.clear=!1,e.addPass(r);const B=new U;e.addPass(B)};T(()=>{s.width.value&&(C(l.value,n.value,i.value,s.width.value,s.height.value),b(new F,n.value,i.value,s.width.value,s.height.value))});const{onLoop:x}=H();return x(()=>{e&&e.render()}),(a,o)=>(w(),v(P(k),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),A=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),D=d("TresAmbientLight",{intensity:1},null,-1),I=d("TresGridHelper",{args:[10,10]},null,-1),J=_({__name:"bloomPass",setup(g){return(n,i)=>{const l=V("TresCanvas");return w(),v(l,{disableRender:"","window-size":""},{default:y(()=>[A,D,u(P(z)),I,u($)]),_:1})}}});export{J as default};
|
@ -1 +1 @@
|
||||
import{a0 as m,aD as b,K as l,o as a,c as n,X as s,E as h,G as f,t as g,Y as r,ah as y,ai as v,bv as k,_ as w}from"./vendor.-e8za0Pb1711337837835.js";/* empty css */const x=e=>(y("data-v-e6b4d15d"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},C={class:"text-white"},D={class:"g-container"},F=x(()=>s("div",{class:"g-circle"},null,-1)),I={class:"g-bubbles"},S={key:0,class:"pspan"},A=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const d=e,{hasFinishLoading:p,progress:o}=([t,c]=b(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return d.isDemo&&requestAnimationFrame(i),(_,L)=>l(p)?r("",!0):(a(),n("div",B,[s("div",C,[s("div",D,[F,s("ul",I,[(a(),n(h,null,f(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),_.showProgress?(a(),n("span",S,g(l(o))+" %",1)):r("",!0)])]))}}),N=w(A,[["__scopeId","data-v-e6b4d15d"]]);export{N as l};
|
||||
import{a0 as m,aD as b,K as l,o as a,c as n,X as s,E as h,G as f,t as g,Y as r,ah as y,ai as v,bv as k,_ as w}from"./vendor.qAzAwG5n1711373106450.js";/* empty css */const x=e=>(y("data-v-e6b4d15d"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},C={class:"text-white"},D={class:"g-container"},F=x(()=>s("div",{class:"g-circle"},null,-1)),I={class:"g-bubbles"},S={key:0,class:"pspan"},A=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const d=e,{hasFinishLoading:p,progress:o}=([t,c]=b(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return d.isDemo&&requestAnimationFrame(i),(_,L)=>l(p)?r("",!0):(a(),n("div",B,[s("div",C,[s("div",D,[F,s("ul",I,[(a(),n(h,null,f(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),_.showProgress?(a(),n("span",S,g(l(o))+" %",1)):r("",!0)])]))}}),N=w(A,[["__scopeId","data-v-e6b4d15d"]]);export{N as l};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a0 as _,k as u,aD as f,a6 as w,aq as y,a1 as p,o as d,v as s,D as h,K as g,Y as m}from"./vendor.-e8za0Pb1711337837835.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";const R=_({__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{R as default};
|
||||
import{a0 as _,k as u,aD as f,a6 as w,aq as y,a1 as p,o as d,v as s,D as h,K as g,Y as m}from"./vendor.qAzAwG5n1711373106450.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";const R=_({__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{R as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as r}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as t}from"./buildingsMarkA.vue_vue_type_script_setup_true_lang.r6KLVi4X1711337837835.js";import{_ as n,a as f}from"./radraB.vue_vue_type_script_setup_true_lang.cYp6W1d61711337837835.js";import{a0 as m,o as a,v as o,D as s,ag as e,a as i}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";const C=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{C as default};
|
||||
import{_ as r}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as t}from"./buildingsMarkA.vue_vue_type_script_setup_true_lang.Es7akFTJ1711373106450.js";import{_ as n,a as f}from"./radraB.vue_vue_type_script_setup_true_lang.XlDDzSbH1711373106450.js";import{a0 as m,o as a,v as o,D as s,ag as e,a as i}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";const C=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{C as default};
|
@ -1 +1 @@
|
||||
import{a0 as l,aD as f,bd as i,a1 as c,ac as p,a5 as u,o as m,c as d,X as _,a7 as h,K as y}from"./vendor.-e8za0Pb1711337837835.js";const g=["position","scale"],k=["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))}),(v,A)=>(m(),d("TresSprite",{ref_key:"tsRef",ref:t,position:e.position,scale:e.scale,renderOrder:"99999"},[_("TresSpriteMaterial",h(n,{map:y(r)}),null,16,k)],8,g))}});export{w as _};
|
||||
import{a0 as l,aD as f,bd as i,a1 as c,ac as p,a5 as u,o as m,c as d,X as _,a7 as h,K as y}from"./vendor.qAzAwG5n1711373106450.js";const g=["position","scale"],k=["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))}),(v,A)=>(m(),d("TresSprite",{ref_key:"tsRef",ref:t,position:e.position,scale:e.scale,renderOrder:"99999"},[_("TresSpriteMaterial",h(n,{map:y(r)}),null,16,k)],8,g))}});export{w as _};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a0 as g,a1 as D,ac as u,aS as x,aT as i,r as k,o as C,v as T,D as M,a7 as p,a2 as f,a3 as F,a4 as w,a as y,K as b,aU as G,X as o}from"./vendor.-e8za0Pb1711337837835.js";const S=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),A=o("TresGridHelper",{position:[0,-1,0]},null,-1),E=o("TresBoxGeometry",{args:[2,2,2]},null,-1),N=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),P=[E,N],U=o("TresAmbientLight",{intensity:1},null,-1),K=g({__name:"cameraControls",setup(V){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:F,toneMapping:w},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 h(){console.log("change")}function _(){console.log("start")}function v(){console.log("end")}return(t,a)=>{const B=k("TresCanvas");return C(),T(B,p(m,{"window-size":""}),{default:M(()=>[S,y(b(G),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:h,onStart:_,onEnd:v}),null,16),A,o("TresMesh",{ref_key:"boxMeshRef",ref:r},P,512),U]),_:1},16)}}});export{K as default};
|
||||
import{a0 as g,a1 as D,ac as u,aS as x,aT as i,r as k,o as C,v as T,D as M,a7 as p,a2 as f,a3 as F,a4 as w,a as y,K as b,aU as G,X as o}from"./vendor.qAzAwG5n1711373106450.js";const S=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),A=o("TresGridHelper",{position:[0,-1,0]},null,-1),E=o("TresBoxGeometry",{args:[2,2,2]},null,-1),N=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),P=[E,N],U=o("TresAmbientLight",{intensity:1},null,-1),K=g({__name:"cameraControls",setup(V){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:F,toneMapping:w},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 h(){console.log("change")}function _(){console.log("start")}function v(){console.log("end")}return(t,a)=>{const B=k("TresCanvas");return C(),T(B,p(m,{"window-size":""}),{default:M(()=>[S,y(b(G),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:h,onStart:_,onEnd:v}),null,16),A,o("TresMesh",{ref_key:"boxMeshRef",ref:r},P,512),U]),_:1},16)}}});export{K as default};
|
@ -1 +1 @@
|
||||
import{a0 as b,a as x,an as P,ao as B,bk as y,a1 as v,ap as A,aA as D,w as f,o as M,c as $,X as n,a9 as C,aa as k,az as z,a8 as L,aq as R,r as N,v as G,D as I,K as V,ab as q}from"./vendor.-e8za0Pb1711337837835.js";function h(e,t){return Math.random()*(t-e)+e}function m(e,t){return Math.floor(e+Math.random()*(t-e+1))}let l=0,c=0,i=null;const d=30;let u=0;const r=[];let _=10;class S{constructor(){this.path=[],this.rspeed=h(1,2),this.count=m(10,30),this.x=l/2+1,this.y=c/2+1,this.target={x:l/2,y:c/2},this.dist=0,this.angle=0,this.hue=u/5,this.life=1,this.updateAngle(),this.updateDist()}step(t){this.speed=this.rspeed*_,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.updateDist(),this.dist<this.speed&&(this.x=this.target.x,this.y=this.target.y,this.changeTarget()),this.path.push({x:this.x,y:this.y}),this.path.length>this.count&&this.path.shift(),this.life-=.001,this.life<=0&&(this.path=null,r.splice(t,1))}updateDist(){const t=this.target.x-this.x,s=this.target.y-this.y;this.dist=Math.sqrt(t*t+s*s)}updateAngle(){const t=this.target.x-this.x,s=this.target.y-this.y;this.angle=Math.atan2(s,t)}changeTarget(){switch(m(0,3)){case 0:this.target.y=this.y-d;break;case 1:this.target.x=this.x+d;break;case 2:this.target.y=this.y+d;break;case 3:this.target.x=this.x-d;break}this.updateAngle()}draw(){i.beginPath();const t=h(0,10);for(let a=0,o=this.path.length;a<o;a++)i[a===0?"moveTo":"lineTo"](this.path[a].x+h(-t,t),this.path[a].y+h(-t,t));let s=this.hue;s=30,i.strokeStyle="hsla(".concat(h(s-30,s),", 0%, 80%, ").concat(this.life/3,")"),i.lineWidth=h(.1,2),i.stroke()}}const E=(e,t,s,a)=>{l=e,c=t,i=s,u=0,_=a;for(let o=0;o<10;o++)r.push(new S)},H=e=>{_=e};function O(){u%10===0&&r.push(new S)}function W(){let e=r.length;for(;e--;)r[e].step(e)}function j(){i.globalCompositeOperation="destination-out",i.fillStyle="hsla(0, 0%, 10%, 0.1)",i.fillRect(0,0,l,c),i.globalCompositeOperation="lighter"}function F(){i.save(),i.translate(l/2,c/2),i.translate(-l/2,-c/2);let e=r.length;for(;e--;)r[e].draw(e);i.restore()}const K=()=>{O(),W(),j(),F(),u++},U=["rotation-x"],X=["args"],T=1024,w=768,J=b({__name:"lightningPattern",props:{size:{default:[10,10]},color:{default:"#fff"},opacity:{default:.95},textureRepeat:{default:[1,1]},speed:{default:10}},setup(e){const t=e,s=x("canvas",{width:T,height:w,style:{backgroundColor:"green"}});P(s,document.createElement("div")),E(T,w,s.el.getContext("2d"),t.speed);const a=new B(s.el);a.wrapS=y,a.wrapT=y,a.repeat.set(t.textureRepeat[0],t.textureRepeat[1]);const o=v({color:t.color,map:a,side:A,transparent:!0,opacity:t.opacity,blending:D,flatShading:!0,depthTest:!0});f(()=>t.color,p=>{o.color=new z(p)}),f(()=>t.opacity,p=>{o.opacity=p}),f(()=>t.speed,p=>{H(t.speed)});const{onLoop:g}=L();return g(()=>{K(),a.needsUpdate=!0}),(p,at)=>(M(),$("TresMesh",{"rotation-x":-Math.PI/2},[n("TresPlaneGeometry",{args:t.size},null,8,X),n("TresMeshStandardMaterial",C(k(o)),null,16)],8,U))}}),Q=n("TresPerspectiveCamera",{position:[15,20,0],fov:45,near:.1,far:1e4},null,-1),Y=n("TresAmbientLight",{intensity:6},null,-1),Z=n("TresDirectionalLight",{position:[0,8,0],intensity:1,color:"#fff"},null,-1),tt=n("TresMesh",{position:[0,1,0]},[n("TresBoxGeometry",{args:[1,1,1]}),n("TresMeshNormalMaterial")],-1),et=n("TresAxesHelper",{args:[10],position:[0,0,0]},null,-1),st=n("TresGridHelper",{args:[10,10],position:[0,0,0]},null,-1),nt=b({__name:"canvasFloor",setup(e){const t=v({color:"#1a79fe",opacity:.95,speed:10}),s=new R({title:"canvas地面",expanded:!0});return s.addBinding(t,"color",{label:"颜色"}),s.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.01}),s.addBinding(t,"speed",{label:"速度",min:0,max:20,step:1}),(a,o)=>{const g=N("TresCanvas");return M(),G(g,{clearColor:"#000000","window-size":""},{default:I(()=>[Q,x(V(q),{enableDamping:"","auto-rotate":""}),Y,Z,tt,x(J,C(k(t)),null,16),et,st]),_:1})}}});export{nt as default};
|
||||
import{a0 as b,a as x,an as P,ao as B,bk as y,a1 as v,ap as A,aA as D,w as f,o as M,c as $,X as n,a9 as C,aa as k,az as z,a8 as L,aq as R,r as N,v as G,D as I,K as V,ab as q}from"./vendor.qAzAwG5n1711373106450.js";function h(e,t){return Math.random()*(t-e)+e}function m(e,t){return Math.floor(e+Math.random()*(t-e+1))}let l=0,c=0,i=null;const d=30;let u=0;const r=[];let _=10;class S{constructor(){this.path=[],this.rspeed=h(1,2),this.count=m(10,30),this.x=l/2+1,this.y=c/2+1,this.target={x:l/2,y:c/2},this.dist=0,this.angle=0,this.hue=u/5,this.life=1,this.updateAngle(),this.updateDist()}step(t){this.speed=this.rspeed*_,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.updateDist(),this.dist<this.speed&&(this.x=this.target.x,this.y=this.target.y,this.changeTarget()),this.path.push({x:this.x,y:this.y}),this.path.length>this.count&&this.path.shift(),this.life-=.001,this.life<=0&&(this.path=null,r.splice(t,1))}updateDist(){const t=this.target.x-this.x,s=this.target.y-this.y;this.dist=Math.sqrt(t*t+s*s)}updateAngle(){const t=this.target.x-this.x,s=this.target.y-this.y;this.angle=Math.atan2(s,t)}changeTarget(){switch(m(0,3)){case 0:this.target.y=this.y-d;break;case 1:this.target.x=this.x+d;break;case 2:this.target.y=this.y+d;break;case 3:this.target.x=this.x-d;break}this.updateAngle()}draw(){i.beginPath();const t=h(0,10);for(let a=0,o=this.path.length;a<o;a++)i[a===0?"moveTo":"lineTo"](this.path[a].x+h(-t,t),this.path[a].y+h(-t,t));let s=this.hue;s=30,i.strokeStyle="hsla(".concat(h(s-30,s),", 0%, 80%, ").concat(this.life/3,")"),i.lineWidth=h(.1,2),i.stroke()}}const E=(e,t,s,a)=>{l=e,c=t,i=s,u=0,_=a;for(let o=0;o<10;o++)r.push(new S)},H=e=>{_=e};function O(){u%10===0&&r.push(new S)}function W(){let e=r.length;for(;e--;)r[e].step(e)}function j(){i.globalCompositeOperation="destination-out",i.fillStyle="hsla(0, 0%, 10%, 0.1)",i.fillRect(0,0,l,c),i.globalCompositeOperation="lighter"}function F(){i.save(),i.translate(l/2,c/2),i.translate(-l/2,-c/2);let e=r.length;for(;e--;)r[e].draw(e);i.restore()}const K=()=>{O(),W(),j(),F(),u++},U=["rotation-x"],X=["args"],T=1024,w=768,J=b({__name:"lightningPattern",props:{size:{default:[10,10]},color:{default:"#fff"},opacity:{default:.95},textureRepeat:{default:[1,1]},speed:{default:10}},setup(e){const t=e,s=x("canvas",{width:T,height:w,style:{backgroundColor:"green"}});P(s,document.createElement("div")),E(T,w,s.el.getContext("2d"),t.speed);const a=new B(s.el);a.wrapS=y,a.wrapT=y,a.repeat.set(t.textureRepeat[0],t.textureRepeat[1]);const o=v({color:t.color,map:a,side:A,transparent:!0,opacity:t.opacity,blending:D,flatShading:!0,depthTest:!0});f(()=>t.color,p=>{o.color=new z(p)}),f(()=>t.opacity,p=>{o.opacity=p}),f(()=>t.speed,p=>{H(t.speed)});const{onLoop:g}=L();return g(()=>{K(),a.needsUpdate=!0}),(p,at)=>(M(),$("TresMesh",{"rotation-x":-Math.PI/2},[n("TresPlaneGeometry",{args:t.size},null,8,X),n("TresMeshStandardMaterial",C(k(o)),null,16)],8,U))}}),Q=n("TresPerspectiveCamera",{position:[15,20,0],fov:45,near:.1,far:1e4},null,-1),Y=n("TresAmbientLight",{intensity:6},null,-1),Z=n("TresDirectionalLight",{position:[0,8,0],intensity:1,color:"#fff"},null,-1),tt=n("TresMesh",{position:[0,1,0]},[n("TresBoxGeometry",{args:[1,1,1]}),n("TresMeshNormalMaterial")],-1),et=n("TresAxesHelper",{args:[10],position:[0,0,0]},null,-1),st=n("TresGridHelper",{args:[10,10],position:[0,0,0]},null,-1),nt=b({__name:"canvasFloor",setup(e){const t=v({color:"#1a79fe",opacity:.95,speed:10}),s=new R({title:"canvas地面",expanded:!0});return s.addBinding(t,"color",{label:"颜色"}),s.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.01}),s.addBinding(t,"speed",{label:"速度",min:0,max:20,step:1}),(a,o)=>{const g=N("TresCanvas");return M(),G(g,{clearColor:"#000000","window-size":""},{default:I(()=>[Q,x(V(q),{enableDamping:"","auto-rotate":""}),Y,Z,tt,x(J,C(k(t)),null,16),et,st]),_:1})}}});export{nt as default};
|
@ -1 +1 @@
|
||||
import{aD as S,bH as $,k as R,a5 as B,o as c,c as T,E as A,G as D,X as l,au as g,aw as N,c5 as z,a8 as M,a0 as F,a1 as x,r as I,v as E,D as b,a7 as O,a as w,a9 as V,aa as X,K as H,ab as J,ag as K}from"./vendor.-e8za0Pb1711337837835.js";import{l as Y}from"./utils.MPxjewin1711337837835.js";import{c as q,d as Q,a as U}from"./ExtensionUtilities.6PM5ntza1711337837835.js";import{m as W}from"./mercator.ciCk-WjI1711337837835.js";import"./Water2.JKAv0Wjh1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),oe={__name:"chinaMapMesh",async setup(C){let o,r;(()=>{g.prototype.computeBoundsTree=q,g.prototype.disposeBoundsTree=Q,N.prototype.raycast=U})();const f=W().center([104,37.5]).translate([0,0]),h=([o,r]=S(()=>Y("./plugins/simpleGIS/json/china.json","features")),o=await o,r(),o),p={depth:10,bevelEnabled:!1},_=[];(()=>{h.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const m=new z;for(let i=0;i<s.length;i++){const[y,v]=f(s[i]);i===0&&m.moveTo(y,-v),m.lineTo(y,-v)}_.push({shape:m,properties:e.properties})})})})})();const k=new $({color:"#3480C4",linewidth:1,linecap:"round"}),d=R();B(()=>{d.value&&d.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,k];e.material=t})});let a=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),a=e})();const P=(e,t)=>{e.object.material[0].color.set(16711680),a.innerText=e.object.properties.name,a.style.visibility="visible"},L=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),a.style.visibility="hidden"},j=(e,t)=>{a.style.left="".concat(t.clientX+6,"px"),a.style.top="".concat(t.clientY+6,"px")},{onLoop:G}=M();return G(()=>{}),(e,t)=>(c(),T("TresGroup",{ref_key:"tgRef",ref:d},[(c(),T(A,null,D(_,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:P,onPointerLeave:L,onPointerMove:j},[l("TresExtrudeGeometry",{args:[n.shape,p]},null,8,ee),te],40,Z)),64))],512))}},ae=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),me=F({__name:"chinaMap",setup(C){const o=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:u}=M();return u(()=>{}),B(()=>{}),(f,h)=>{const p=I("TresCanvas");return c(),E(p,O(o,{"window-size":""}),{default:b(()=>[ae,w(H(J),V(X(r)),null,16),(c(),E(K,null,{default:b(()=>[w(oe)]),_:1}))]),_:1},16)}}});export{me as default};
|
||||
import{aD as S,bH as $,k as R,a5 as B,o as c,c as T,E as A,G as D,X as l,au as g,aw as N,c5 as z,a8 as M,a0 as F,a1 as x,r as I,v as E,D as b,a7 as O,a as w,a9 as V,aa as X,K as H,ab as J,ag as K}from"./vendor.qAzAwG5n1711373106450.js";import{l as Y}from"./utils.tqavjKNs1711373106450.js";import{c as q,d as Q,a as U}from"./ExtensionUtilities.T05lUX8b1711373106450.js";import{m as W}from"./mercator.ciCk-WjI1711373106450.js";import"./Water2.sn8z3JRB1711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),oe={__name:"chinaMapMesh",async setup(C){let o,r;(()=>{g.prototype.computeBoundsTree=q,g.prototype.disposeBoundsTree=Q,N.prototype.raycast=U})();const f=W().center([104,37.5]).translate([0,0]),h=([o,r]=S(()=>Y("./plugins/simpleGIS/json/china.json","features")),o=await o,r(),o),p={depth:10,bevelEnabled:!1},_=[];(()=>{h.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const m=new z;for(let i=0;i<s.length;i++){const[y,v]=f(s[i]);i===0&&m.moveTo(y,-v),m.lineTo(y,-v)}_.push({shape:m,properties:e.properties})})})})})();const k=new $({color:"#3480C4",linewidth:1,linecap:"round"}),d=R();B(()=>{d.value&&d.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,k];e.material=t})});let a=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),a=e})();const P=(e,t)=>{e.object.material[0].color.set(16711680),a.innerText=e.object.properties.name,a.style.visibility="visible"},L=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),a.style.visibility="hidden"},j=(e,t)=>{a.style.left="".concat(t.clientX+6,"px"),a.style.top="".concat(t.clientY+6,"px")},{onLoop:G}=M();return G(()=>{}),(e,t)=>(c(),T("TresGroup",{ref_key:"tgRef",ref:d},[(c(),T(A,null,D(_,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:P,onPointerLeave:L,onPointerMove:j},[l("TresExtrudeGeometry",{args:[n.shape,p]},null,8,ee),te],40,Z)),64))],512))}},ae=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),me=F({__name:"chinaMap",setup(C){const o=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:u}=M();return u(()=>{}),B(()=>{}),(f,h)=>{const p=I("TresCanvas");return c(),E(p,O(o,{"window-size":""}),{default:b(()=>[ae,w(H(J),V(X(r)),null,16),(c(),E(K,null,{default:b(()=>[w(oe)]),_:1}))]),_:1},16)}}});export{me as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.rCJ1JZqz1711337837835.js";import{a0 as p,aD as g,aE as w,a1 as v,aq as y,o,c as b,X 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,a8 as $}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./Water2.JKAv0Wjh1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.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}))]))}}),q=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{q as default};
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.xeRjmYts1711373106450.js";import{a0 as p,aD as g,aE as w,a1 as v,aq as y,o,c as b,X 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,a8 as $}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./Water2.sn8z3JRB1711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.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}))]))}}),q=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{q as default};
|
@ -1 +1 @@
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.rCJ1JZqz1711337837835.js";import{a0 as _,aD as h,aE as f,a1 as w,aq as y,o as a,c as g,X as x,K as c,v as r,D as o,a as l,a7 as B,ag as m}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./Water2.JKAv0Wjh1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.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,j)=>(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}))]))}}),S=_({__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{S as default};
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.xeRjmYts1711373106450.js";import{a0 as _,aD as h,aE as f,a1 as w,aq as y,o as a,c as g,X as x,K as c,v as r,D as o,a as l,a7 as B,ag as m}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./Water2.sn8z3JRB1711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.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,j)=>(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}))]))}}),S=_({__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{S as default};
|
@ -1 +1 @@
|
||||
import{a0 as m,k as f,b2 as o,b3 as l,a5 as h,aq as g,r as w,o as d,v as x,D as T,a as b,K as s,ab as v,X as e,c as C,G as I,aT as i,ap as B,E as k}from"./vendor.-e8za0Pb1711337837835.js";const M=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),P=e("TresGridHelper",{args:[2,10]},null,-1),y=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),E=["args"],G=["color","side","clipIntersection"],z=m({__name:"clippingMaterial",setup(L){const t=f(),c=[];for(let n=1;n<30;n+=2)c.push(n);const a=[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};h(()=>{if(t.value){const n=t.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new g({title:"裁剪参数",expanded:!0});return r.addBinding(a[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(a[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(a[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,H)=>{const _=w("TresCanvas");return d(),x(_,{ref_key:"tcRef",ref:t,"window-size":""},{default:T(()=>[M,P,y,b(s(v)),e("TresGroup",null,[(d(),C(k,null,I(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,E),e("TresMeshLambertMaterial",{color:[s(i).randInt(.1,1),s(i).randInt(0,1),s(i).randInt(0,1)],side:s(B),clippingPlanes:a,clipIntersection:u.clipIntersection},null,8,G)])),64))])]),_:1},512)}}});export{z as default};
|
||||
import{a0 as m,k as f,b2 as o,b3 as l,a5 as h,aq as g,r as w,o as d,v as x,D as T,a as b,K as s,ab as v,X as e,c as C,G as I,aT as i,ap as B,E as k}from"./vendor.qAzAwG5n1711373106450.js";const M=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),P=e("TresGridHelper",{args:[2,10]},null,-1),y=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),E=["args"],G=["color","side","clipIntersection"],z=m({__name:"clippingMaterial",setup(L){const t=f(),c=[];for(let n=1;n<30;n+=2)c.push(n);const a=[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};h(()=>{if(t.value){const n=t.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new g({title:"裁剪参数",expanded:!0});return r.addBinding(a[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(a[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(a[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,H)=>{const _=w("TresCanvas");return d(),x(_,{ref_key:"tcRef",ref:t,"window-size":""},{default:T(()=>[M,P,y,b(s(v)),e("TresGroup",null,[(d(),C(k,null,I(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,E),e("TresMeshLambertMaterial",{color:[s(i).randInt(.1,1),s(i).randInt(0,1),s(i).randInt(0,1)],side:s(B),clippingPlanes:a,clipIntersection:u.clipIntersection},null,8,G)])),64))])]),_:1},512)}}});export{z as default};
|
@ -1 +1 @@
|
||||
import{a0 as d,aD as m,bd as _,bZ as s,bO as g,b3 as i,az as l,o as v,c as w,K as b,a8 as f}from"./vendor.-e8za0Pb1711337837835.js";import{S as n}from"./SPE.Ez7LrsxT1711337837835.js";const h=["object","position"],B=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}=f();return u(({dt:o})=>{a.tick(o)}),(o,C)=>(v(),w("primitive",{object:b(c),position:o.cPosition,renderOrder:3e3},null,8,h))}});export{B as _};
|
||||
import{a0 as d,aD as m,bd as _,bZ as s,bO as g,b3 as i,az as l,o as v,c as w,K as b,a8 as f}from"./vendor.qAzAwG5n1711373106450.js";import{S as n}from"./SPE.OnBFknJf1711373106450.js";const h=["object","position"],B=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}=f();return u(({dt:o})=>{a.tick(o)}),(o,C)=>(v(),w("primitive",{object:b(c),position:o.cPosition,renderOrder:3e3},null,8,h))}});export{B as _};
|
@ -1 +1 @@
|
||||
import{a0 as i,bB as p,aw as l,bJ as m,ay as r,a5 as f,o as u,c as y,K as d,az as _}from"./vendor.-e8za0Pb1711337837835.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{a0 as i,bB as p,aw as l,bJ as m,ay as r,a5 as f,o as u,c as y,K as d,az as _}from"./vendor.qAzAwG5n1711373106450.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 _};
|
1
dist/js/clouds.Ip6MsR2i1711373106450.js
vendored
Normal file
1
dist/js/clouds.Ip6MsR2i1711373106450.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as r}from"./cloudMesh.vue_vue_type_script_setup_true_lang.DPhP3qm51711373106450.js";import{a0 as s,o as a,v as o,D as t,ag as _,a as m}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./SPE.OnBFknJf1711373106450.js";const k=s({__name:"clouds",setup(i){return(n,p)=>(a(),o(e,null,{ability:t(()=>[(a(),o(_,null,{default:t(()=>[m(r)]),_:1}))]),_:1}))}});export{k as default};
|
1
dist/js/clouds.YlY8D4ZO1711337837835.js
vendored
1
dist/js/clouds.YlY8D4ZO1711337837835.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as r}from"./cloudMesh.vue_vue_type_script_setup_true_lang.TTjvs0kO1711337837835.js";import{a0 as s,o as a,v as o,D as t,ag as _,a as m}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./SPE.Ez7LrsxT1711337837835.js";const k=s({__name:"clouds",setup(i){return(n,p)=>(a(),o(e,null,{ability:t(()=>[(a(),o(_,null,{default:t(()=>[m(r)]),_:1}))]),_:1}))}});export{k as default};
|
@ -1 +1 @@
|
||||
import{m as c,_ as i}from"./mergeTres.qqE8hhhU1711337837835.js";import{a0 as _,a1 as p,r as m,o as l,c as d,a as s,D as u,a7 as h,E as f,ah as C,ai as v,X as e,_ as b}from"./vendor.-e8za0Pb1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";const t=a=>(C("data-v-06a790bb"),a=a(),v(),a),T=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),x=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),M=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=_({__name:"cubeMesh",setup(a){const o=[116.52,39.79],r=p({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>{const n=m("TresCanvas");return l(),d(f,null,[s(c,{center:o}),s(n,h({id:"tresCanvas",ref:"tcRef"},r),{default:u(()=>[T,x,M,s(i,{center:o})]),_:1},16)],64)}}}),w=b(g,[["__scopeId","data-v-06a790bb"]]);export{w as default};
|
||||
import{m as c,_ as i}from"./mergeTres.8ZB-ubbV1711373106450.js";import{a0 as _,a1 as p,r as m,o as l,c as d,a as s,D as u,a7 as h,E as f,ah as C,ai as v,X as e,_ as b}from"./vendor.qAzAwG5n1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";const t=a=>(C("data-v-06a790bb"),a=a(),v(),a),T=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),x=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),M=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=_({__name:"cubeMesh",setup(a){const o=[116.52,39.79],r=p({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>{const n=m("TresCanvas");return l(),d(f,null,[s(c,{center:o}),s(n,h({id:"tresCanvas",ref:"tcRef"},r),{default:u(()=>[T,x,M,s(i,{center:o})]),_:1},16)],64)}}}),w=b(g,[["__scopeId","data-v-06a790bb"]]);export{w as default};
|
@ -1 +1 @@
|
||||
import{a0 as l,aD as r,w as i,K as t,o as _,c as d,X as p,H as u,t as m,a as f,c3 as h,Y as x,bv as g}from"./vendor.-e8za0Pb1711337837835.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},v=l({__name:"default",async setup(b){let e,a;const{hasFinishLoading:n,progress:s}=([e,a]=r(()=>g()),e=await e,a(),e);return i(()=>s.value,async(o,c)=>{console.log(o,c)}),(o,c)=>t(n)?x("",!0):(_(),d("div",w,[p("div",y,[u(" 载入中... "+m(t(s))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{v as _};
|
||||
import{a0 as l,aD as r,w as i,K as t,o as _,c as d,X as p,H as u,t as m,a as f,c3 as h,Y as x,bv as g}from"./vendor.qAzAwG5n1711373106450.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},v=l({__name:"default",async setup(b){let e,a;const{hasFinishLoading:n,progress:s}=([e,a]=r(()=>g()),e=await e,a(),e);return i(()=>s.value,async(o,c)=>{console.log(o,c)}),(o,c)=>t(n)?x("",!0):(_(),d("div",w,[p("div",y,[u(" 载入中... "+m(t(s))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{v as _};
|
@ -1 +1 @@
|
||||
import{a0 as y,aD as L,aE as S,ak as E,bb as _,a5 as N,az as R,o as z,c as A,K as D,a8 as G}from"./vendor.-e8za0Pb1711337837835.js";import{r as F,u as H}from"./device.EKQcwDIT1711337837835.js";const K=["object"],q=y({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let l,u;const t=v,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),g=F(r.Sketchfab_model),{camera:h,renderer:f,scene:s,sizes:m}=E();let n=null,d=null,a=null;const M=new _({color:"black"});N(()=>{if(h.value){f.value.setPixelRatio(window.devicePixelRatio),s.value.add(g);const{finalComposer:e,effectComposer:o,bloomPass:P}=H(s.value,h.value,f.value,m.width.value,m.height.value);n=e,d=o,a=P,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={},b=e=>{(e.isMesh||e.type==="GridHelper"||e.name==="reflectorShaderMesh")&&(i[e.uuid]=e.material,e.material=M)},k=e=>{i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])},{onLoop:w,onAfterLoop:B}=G();let p=.03,c=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),x=c.material.clone(),C=new _({color:new R("red"),transparent:!0,opacity:1});return w(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=p,r.blades_turbine_003.rotation.x+=p),Math.floor(e)%2?c.material=x:c.material=C}),B(({elapsed:e})=>{d&&(s.value.traverse(o=>{b(o)}),d.render(e)),n&&(s.value.traverse(o=>{k(o)}),n.render(e))}),(e,o)=>(z(),A("primitive",{object:D(r).Sketchfab_model},null,8,K))}});export{q as _};
|
||||
import{a0 as y,aD as L,aE as S,ak as E,bb as _,a5 as N,az as R,o as z,c as A,K as D,a8 as G}from"./vendor.qAzAwG5n1711373106450.js";import{r as F,u as H}from"./device.xMKp9ugt1711373106450.js";const K=["object"],q=y({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let l,u;const t=v,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),g=F(r.Sketchfab_model),{camera:h,renderer:f,scene:s,sizes:m}=E();let n=null,d=null,a=null;const M=new _({color:"black"});N(()=>{if(h.value){f.value.setPixelRatio(window.devicePixelRatio),s.value.add(g);const{finalComposer:e,effectComposer:o,bloomPass:P}=H(s.value,h.value,f.value,m.width.value,m.height.value);n=e,d=o,a=P,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={},b=e=>{(e.isMesh||e.type==="GridHelper"||e.name==="reflectorShaderMesh")&&(i[e.uuid]=e.material,e.material=M)},k=e=>{i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])},{onLoop:w,onAfterLoop:B}=G();let p=.03,c=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),x=c.material.clone(),C=new _({color:new R("red"),transparent:!0,opacity:1});return w(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=p,r.blades_turbine_003.rotation.x+=p),Math.floor(e)%2?c.material=x:c.material=C}),B(({elapsed:e})=>{d&&(s.value.traverse(o=>{b(o)}),d.render(e)),n&&(s.value.traverse(o=>{k(o)}),n.render(e))}),(e,o)=>(z(),A("primitive",{object:D(r).Sketchfab_model},null,8,K))}});export{q as _};
|
@ -1 +1 @@
|
||||
import{b5 as h,bw as _,cw as M,cx as v,cy as C,cz as T,cA as P,ch as S,cB as x,az as m,bb as b,bH as N,bQ as E,bK as A,aH as F,ax as w}from"./vendor.-e8za0Pb1711337837835.js";import{m as I}from"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";import{P as R,F as G,R as O,E as g,S as U}from"./EffectComposer.4iBSRi1M1711337837835.js";import{U as D}from"./UnrealBloomPass.ceNMyCeg1711337837835.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",B="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",L={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=L;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={},M.getTransfer(this._outputColorSpace)===v&&(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===x&&(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 b({color:c,transparent:!0,opacity:.3}),f=new N({color:new m(c),depthTest:!0,transparent:!0}),K=o=>{const e=[];o.traverse(a=>{a.isMesh&&(e.push(a.geometry),a.material=V)});const t=I(e),i=new E(t,Math.PI*6.137),r=new A(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 F(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:y,fragmentShader:B,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{K as r,k as u};
|
||||
import{b5 as h,bw as _,cw as M,cx as v,cy as C,cz as T,cA as P,ch as S,cB as x,az as m,bb as b,bH as N,bQ as E,bK as A,aH as F,ax as w}from"./vendor.qAzAwG5n1711373106450.js";import{m as I}from"./BufferGeometryUtils.Ok9QJftT1711373106450.js";import{P as R,F as G,R as O,E as g,S as U}from"./EffectComposer.rmqSd-Uk1711373106450.js";import{U as D}from"./UnrealBloomPass.F6L0WcBA1711373106450.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",B="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",L={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=L;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={},M.getTransfer(this._outputColorSpace)===v&&(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===x&&(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 b({color:c,transparent:!0,opacity:.3}),f=new N({color:new m(c),depthTest:!0,transparent:!0}),K=o=>{const e=[];o.traverse(a=>{a.isMesh&&(e.push(a.geometry),a.material=V)});const t=I(e),i=new E(t,Math.PI*6.137),r=new A(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 F(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:y,fragmentShader:B,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{K as r,k as u};
|
@ -1 +1 @@
|
||||
import{a0 as _,a1 as o,a2 as u,a3 as f,a4 as h,aq as g,r as v,o as n,c as C,a,K as r,D as i,a7 as B,E as T,ab as w,a9 as l,aa as p,v as S,ag as b,X as t}from"./vendor.-e8za0Pb1711337837835.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.SyAI50fN1711337837835.js";import{_ as P}from"./device.vue_vue_type_script_setup_true_lang.vPYjfP4q1711337837835.js";import"./starLoading.LNwTQb5e1711337837835.js";import"./bubbleLoading.XUeV1jic1711337837835.js";import"./device.EKQcwDIT1711337837835.js";import"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";import"./EffectComposer.4iBSRi1M1711337837835.js";import"./UnrealBloomPass.ceNMyCeg1711337837835.js";const M=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),R=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),k=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),y=t("TresGridHelper",{position:[0,-1,0]},null,-1),K=_({__name:"deviceLight",setup(L){const c=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:f,toneMapping:h,disableRender:!0}),d=o({autoRotate:!0}),e=o({threshold:0,strength:.6,radius:.21}),s=new g({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}),(N,z)=>{const m=v("TresCanvas");return n(),C(T,null,[a(r(x)),a(m,B(c,{"window-size":""}),{default:i(()=>[M,a(r(w),l(p(d)),null,16),R,k,(n(),S(b,null,{default:i(()=>[a(P,l(p(e)),null,16)]),_:1})),y]),_:1},16)],64)}}});export{K as default};
|
||||
import{a0 as _,a1 as o,a2 as u,a3 as f,a4 as h,aq as g,r as v,o as n,c as C,a,K as r,D as i,a7 as B,E as T,ab as w,a9 as l,aa as p,v as S,ag as b,X as t}from"./vendor.qAzAwG5n1711373106450.js";/* empty css */import{_ as x}from"./randomLoading.vue_vue_type_script_setup_true_lang.EymsFXaw1711373106450.js";import{_ as P}from"./device.vue_vue_type_script_setup_true_lang.CZDnDdKy1711373106450.js";import"./starLoading.lMpJi0wl1711373106450.js";import"./bubbleLoading.nC5i2Fqh1711373106450.js";import"./device.xMKp9ugt1711373106450.js";import"./BufferGeometryUtils.Ok9QJftT1711373106450.js";import"./EffectComposer.rmqSd-Uk1711373106450.js";import"./UnrealBloomPass.F6L0WcBA1711373106450.js";const M=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),R=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),k=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),y=t("TresGridHelper",{position:[0,-1,0]},null,-1),K=_({__name:"deviceLight",setup(L){const c=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:f,toneMapping:h,disableRender:!0}),d=o({autoRotate:!0}),e=o({threshold:0,strength:.6,radius:.21}),s=new g({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}),(N,z)=>{const m=v("TresCanvas");return n(),C(T,null,[a(r(x)),a(m,B(c,{"window-size":""}),{default:i(()=>[M,a(r(w),l(p(d)),null,16),R,k,(n(),S(b,null,{default:i(()=>[a(P,l(p(e)),null,16)]),_:1})),y]),_:1},16)],64)}}});export{K as default};
|
@ -1 +1 @@
|
||||
import{a0 as P,aD as $,aE as F,ak as G,bb as w,a5 as V,az as X,o as g,c as q,X as n,K as v,E as I,a8 as K,a1 as _,a2 as O,a3 as j,a4 as H,aq as J,r as Q,v as M,D as k,a7 as U,a as x,a9 as S,aa as y,ab as W,ag as Y}from"./vendor.-e8za0Pb1711337837835.js";import{r as Z,u as ee}from"./device.EKQcwDIT1711337837835.js";import"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";import"./EffectComposer.4iBSRi1M1711337837835.js";import"./UnrealBloomPass.ceNMyCeg1711337837835.js";const te=["object"],ae=["object"],se=P({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(b){let r,l;const t=b,{nodes:a}=([r,l]=$(()=>F("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:d,renderer:u,scene:p,sizes:B}=G();let h=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(d.value){const{finalComposer:e,effectComposer:o,bloomPass:A}=ee(p.value,d.value,u.value,B.width.value,B.height.value);h=e,m=o,s=A,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:z,onAfterLoop:D}=K();let C=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),E=f.material.clone(),R=new w({color:new X("red"),transparent:!0,opacity:1});return z(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=C,a.blades_turbine_003.rotation.x+=C),Math.floor(e)%2?f.material=E:f.material=R}),D(({elapsed:e})=>{m&&(p.value.traverse(o=>{L(o)}),m.render(e)),h&&(p.value.traverse(o=>{N(o)}),h.render(e))}),(e,o)=>(g(),q(I,null,[n("primitive",{object:v(a).Sketchfab_model},null,8,te),n("primitive",{object:v(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),pe=P({__name:"deviceLightByComposerTres",setup(b){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:O,outputColorSpace:j,toneMapping:H}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new J({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,d)=>{const u=Q("TresCanvas");return g(),M(u,U(r,{"window-size":""}),{default:k(()=>[re,x(v(W),S(y(l)),null,16),oe,ne,(g(),M(Y,null,{default:k(()=>[x(se,S(y(t)),null,16)]),_:1}))]),_:1},16)}}});export{pe as default};
|
||||
import{a0 as P,aD as $,aE as F,ak as G,bb as w,a5 as V,az as X,o as g,c as q,X as n,K as v,E as I,a8 as K,a1 as _,a2 as O,a3 as j,a4 as H,aq as J,r as Q,v as M,D as k,a7 as U,a as x,a9 as S,aa as y,ab as W,ag as Y}from"./vendor.qAzAwG5n1711373106450.js";import{r as Z,u as ee}from"./device.xMKp9ugt1711373106450.js";import"./BufferGeometryUtils.Ok9QJftT1711373106450.js";import"./EffectComposer.rmqSd-Uk1711373106450.js";import"./UnrealBloomPass.F6L0WcBA1711373106450.js";const te=["object"],ae=["object"],se=P({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(b){let r,l;const t=b,{nodes:a}=([r,l]=$(()=>F("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:d,renderer:u,scene:p,sizes:B}=G();let h=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(d.value){const{finalComposer:e,effectComposer:o,bloomPass:A}=ee(p.value,d.value,u.value,B.width.value,B.height.value);h=e,m=o,s=A,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:z,onAfterLoop:D}=K();let C=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),E=f.material.clone(),R=new w({color:new X("red"),transparent:!0,opacity:1});return z(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=C,a.blades_turbine_003.rotation.x+=C),Math.floor(e)%2?f.material=E:f.material=R}),D(({elapsed:e})=>{m&&(p.value.traverse(o=>{L(o)}),m.render(e)),h&&(p.value.traverse(o=>{N(o)}),h.render(e))}),(e,o)=>(g(),q(I,null,[n("primitive",{object:v(a).Sketchfab_model},null,8,te),n("primitive",{object:v(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),pe=P({__name:"deviceLightByComposerTres",setup(b){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:O,outputColorSpace:j,toneMapping:H}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new J({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,d)=>{const u=Q("TresCanvas");return g(),M(u,U(r,{"window-size":""}),{default:k(()=>[re,x(v(W),S(y(l)),null,16),oe,ne,(g(),M(Y,null,{default:k(()=>[x(se,S(y(t)),null,16)]),_:1}))]),_:1},16)}}});export{pe as default};
|
@ -1 +1 @@
|
||||
import{a0 as _,a1 as o,o as i,v as c,D as l,a7 as p,K as u,al as y,X as t,H as w,k as b,a8 as R,a2 as T,a3 as k,a4 as I,r as M,c as P,a,E as z,ab as B,a9 as x,aa as g,ag as C}from"./vendor.-e8za0Pb1711337837835.js";import{_ as $}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.JkajjVSK1711337837835.js";/* empty css */import{_ as O}from"./randomLoading.vue_vue_type_script_setup_true_lang.SyAI50fN1711337837835.js";import{i as E}from"./index.oRU9r-cR1711337837835.js";import{_ as L}from"./device.vue_vue_type_script_setup_true_lang.vPYjfP4q1711337837835.js";import"./ReflectorMaterial.nM2PMP0_1711337837835.js";import"./dither.glsl.y2WXw1t-1711337837835.js";import"./OimoPhysicsBuffer.QJCJGi8L1711337837835.js";import"./starLoading.LNwTQb5e1711337837835.js";import"./bubbleLoading.XUeV1jic1711337837835.js";import"./device.EKQcwDIT1711337837835.js";import"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";import"./EffectComposer.4iBSRi1M1711337837835.js";import"./UnrealBloomPass.ceNMyCeg1711337837835.js";const F=t("div",{class:"card pos-relative text-white"},[t("div",{class:"card-body"},[t("h3",null,[t("span",null,"⚙️"),w(" Toyota 2JZ-GTE")]),t("div",{class:"flex justify-between flex-wrap"},[t("div",{class:"Onec"},[t("p",null," 输出功率 kW "),t("h1",null," 980 - 1000 ")]),t("div",{class:"Onec"},[t("p",null," 排量 升 "),t("h1",null," 3.0 - 3.5 ")]),t("div",{class:"Onec"},[t("p",null," 最大扭矩 磅-英尺 "),t("h1",null," 320 - 330 ")])])])],-1),N=_({__name:"divContent",setup(h){const s=o({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:1,zIndexRange:[9e5,0]});return(e,n)=>(i(),c(u(y),p(s,{position:[1,0,2],scale:[2,2,2],rotation:[-Math.PI/2,0,-Math.PI/2]}),{default:l(()=>[F]),_:1},16,["rotation"]))}}),D=t("div",{id:"main",style:{width:"500px",height:"300px"}},null,-1),G=_({__name:"useHtmlComChart",setup(h){const s=o({wrapperClass:"chartDiv",as:"div",transform:!0,distanceFactor:2,zIndexRange:[9e5,0]});let e=null;const n={title:{text:"最大输出功率",textStyle:{fontSize:18},padding:[20,20]},backgroundColor:"#b8e4ff3b",grid:{left:"10",right:"20",bottom:"10",top:"70",containLabel:!0},xAxis:{type:"category",data:["01","03","06","09","12","15","18"],axisLabel:{fontSize:18}},yAxis:{type:"value",axisLabel:{fontSize:18}},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0,lineStyle:{color:"#ffffffff"},animationDuration:function(v){return v*100+3e3}}],animationEasing:"elasticOut"},f=()=>{e=E(document.getElementById("main"),"dark"),e.setOption(n),e.on("finished",()=>{r=!0})},d=b(null);let r=!1;const m=()=>{r=!1,e.off("finished"),e.clear(),e.on("finished",()=>{r=!0}),e.setOption(n)},{onLoop:S}=R();return S(()=>{d.value&&!e&&f(),e&&r&&m()}),(v,V)=>(i(),c(u(y),p({ref_key:"htmlRef",ref:d},s,{position:[0,0,-1]}),{default:l(()=>[D]),_:1},16))}}),H=t("TresPerspectiveCamera",{position:[-4,5,4],fov:45,near:1,far:1e3},null,-1),st=_({__name:"deviceLightReflector",setup(h){const s=o({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),e=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:k,toneMapping:I,disableRender:!0}),n=o({autoRotate:!0}),f=o({threshold:.37,strength:1.6,radius:.1});return(d,r)=>{const m=M("TresCanvas");return i(),P(z,null,[a(u(O)),a(m,p(e,{"window-size":""}),{default:l(()=>[H,a(u(B),x(g(n)),null,16),(i(),c(C,null,{default:l(()=>[a(L,x(g(f)),null,16)]),_:1})),(i(),c(C,null,{default:l(()=>[a($,p(s,{position:[0,0,0]}),null,16)]),_:1})),a(N),a(G,{position:[-.5,-.001,2.25],rotation:[-Math.PI/2,0,-Math.PI/2]},null,8,["rotation"])]),_:1},16)],64)}}});export{st as default};
|
||||
import{a0 as _,a1 as o,o as i,v as c,D as l,a7 as p,K as u,al as y,X as t,H as w,k as b,a8 as R,a2 as T,a3 as k,a4 as I,r as M,c as P,a,E as z,ab as B,a9 as x,aa as g,ag as C}from"./vendor.qAzAwG5n1711373106450.js";import{_ as $}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.8QtKqBIV1711373106450.js";/* empty css */import{_ as O}from"./randomLoading.vue_vue_type_script_setup_true_lang.EymsFXaw1711373106450.js";import{i as E}from"./index.oRU9r-cR1711373106450.js";import{_ as L}from"./device.vue_vue_type_script_setup_true_lang.CZDnDdKy1711373106450.js";import"./ReflectorMaterial.ppSFokzh1711373106450.js";import"./dither.glsl.y2WXw1t-1711373106450.js";import"./OimoPhysicsBuffer.3ogrGV8s1711373106450.js";import"./starLoading.lMpJi0wl1711373106450.js";import"./bubbleLoading.nC5i2Fqh1711373106450.js";import"./device.xMKp9ugt1711373106450.js";import"./BufferGeometryUtils.Ok9QJftT1711373106450.js";import"./EffectComposer.rmqSd-Uk1711373106450.js";import"./UnrealBloomPass.F6L0WcBA1711373106450.js";const F=t("div",{class:"card pos-relative text-white"},[t("div",{class:"card-body"},[t("h3",null,[t("span",null,"⚙️"),w(" Toyota 2JZ-GTE")]),t("div",{class:"flex justify-between flex-wrap"},[t("div",{class:"Onec"},[t("p",null," 输出功率 kW "),t("h1",null," 980 - 1000 ")]),t("div",{class:"Onec"},[t("p",null," 排量 升 "),t("h1",null," 3.0 - 3.5 ")]),t("div",{class:"Onec"},[t("p",null," 最大扭矩 磅-英尺 "),t("h1",null," 320 - 330 ")])])])],-1),N=_({__name:"divContent",setup(h){const s=o({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:1,zIndexRange:[9e5,0]});return(e,n)=>(i(),c(u(y),p(s,{position:[1,0,2],scale:[2,2,2],rotation:[-Math.PI/2,0,-Math.PI/2]}),{default:l(()=>[F]),_:1},16,["rotation"]))}}),D=t("div",{id:"main",style:{width:"500px",height:"300px"}},null,-1),G=_({__name:"useHtmlComChart",setup(h){const s=o({wrapperClass:"chartDiv",as:"div",transform:!0,distanceFactor:2,zIndexRange:[9e5,0]});let e=null;const n={title:{text:"最大输出功率",textStyle:{fontSize:18},padding:[20,20]},backgroundColor:"#b8e4ff3b",grid:{left:"10",right:"20",bottom:"10",top:"70",containLabel:!0},xAxis:{type:"category",data:["01","03","06","09","12","15","18"],axisLabel:{fontSize:18}},yAxis:{type:"value",axisLabel:{fontSize:18}},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0,lineStyle:{color:"#ffffffff"},animationDuration:function(v){return v*100+3e3}}],animationEasing:"elasticOut"},f=()=>{e=E(document.getElementById("main"),"dark"),e.setOption(n),e.on("finished",()=>{r=!0})},d=b(null);let r=!1;const m=()=>{r=!1,e.off("finished"),e.clear(),e.on("finished",()=>{r=!0}),e.setOption(n)},{onLoop:S}=R();return S(()=>{d.value&&!e&&f(),e&&r&&m()}),(v,V)=>(i(),c(u(y),p({ref_key:"htmlRef",ref:d},s,{position:[0,0,-1]}),{default:l(()=>[D]),_:1},16))}}),H=t("TresPerspectiveCamera",{position:[-4,5,4],fov:45,near:1,far:1e3},null,-1),st=_({__name:"deviceLightReflector",setup(h){const s=o({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),e=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:k,toneMapping:I,disableRender:!0}),n=o({autoRotate:!0}),f=o({threshold:.37,strength:1.6,radius:.1});return(d,r)=>{const m=M("TresCanvas");return i(),P(z,null,[a(u(O)),a(m,p(e,{"window-size":""}),{default:l(()=>[H,a(u(B),x(g(n)),null,16),(i(),c(C,null,{default:l(()=>[a(L,x(g(f)),null,16)]),_:1})),(i(),c(C,null,{default:l(()=>[a($,p(s,{position:[0,0,0]}),null,16)]),_:1})),a(N),a(G,{position:[-.5,-.001,2.25],rotation:[-Math.PI/2,0,-Math.PI/2]},null,8,["rotation"])]),_:1},16)],64)}}});export{st as default};
|
@ -1 +1 @@
|
||||
import{a0 as b,a1 as s,aq as y,aD as C,a2 as S,a3 as v,a4 as x,r as T,o as n,c as k,a as m,K as l,D as f,a7 as i,E as P,ab as R,a9 as M,aa as N,X as d,v as c,Y as _,ag as O}from"./vendor.-e8za0Pb1711337837835.js";import{O as $,l as G}from"./util.k2JquaLz1711337837835.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang.SyAI50fN1711337837835.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.YYMXSoCE1711337837835.js";import{_ as z,a as A}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.T7qX4iMQ1711337837835.js";import"./starLoading.LNwTQb5e1711337837835.js";import"./bubbleLoading.XUeV1jic1711337837835.js";import"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";const D=d("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=d("TresAmbientLight",{intensity:.5},null,-1),L={position:[0,120,0]},q=d("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",oa=b({__name:"digitalBrain",async setup(H){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new y({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const o=s({color:"#84ccff",show:!0,opacity:1});a.addBinding(o,"show",{label:"脑轮廓显示"}),a.addBinding(o,"color",{label:"脑轮廓颜色"}),a.addBinding(o,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const t=s({color:"#9e00af",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 h=new $,p=([r,u]=C(()=>G(F,h)),r=await r,u(),r),g=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:v,toneMapping:x}),w=s({autoRotate:!0,autoRotateSpeed:2});return(I,K)=>{const B=T("TresCanvas");return n(),k(P,null,[m(l(J)),m(B,i(g,{"window-size":""}),{default:f(()=>[D,m(l(R),M(N(w)),null,16),E,d("TresGroup",L,[e.show?(n(),c(V,i({key:0,model:l(p)},e),null,16,["model"])):_("",!0),(n(),c(O,null,{default:f(()=>[o.show?(n(),c(z,i({key:0,model:l(p)},o),null,16,["model"])):_("",!0)]),_:1})),t.show?(n(),c(A,i({key:1,model:l(p)},t),null,16,["model"])):_("",!0)]),q]),_:1},16)],64)}}});export{oa as default};
|
||||
import{a0 as b,a1 as s,aq as y,aD as C,a2 as S,a3 as v,a4 as x,r as T,o as n,c as k,a as m,K as l,D as f,a7 as i,E as P,ab as R,a9 as M,aa as N,X as d,v as c,Y as _,ag as O}from"./vendor.qAzAwG5n1711373106450.js";import{O as $,l as G}from"./util.UH1xwTPD1711373106450.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang.EymsFXaw1711373106450.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.6feO0-6R1711373106450.js";import{_ as z,a as A}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.PqDxmi871711373106450.js";import"./starLoading.lMpJi0wl1711373106450.js";import"./bubbleLoading.nC5i2Fqh1711373106450.js";import"./BufferGeometryUtils.Ok9QJftT1711373106450.js";const D=d("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=d("TresAmbientLight",{intensity:.5},null,-1),L={position:[0,120,0]},q=d("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",oa=b({__name:"digitalBrain",async setup(H){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new y({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const o=s({color:"#84ccff",show:!0,opacity:1});a.addBinding(o,"show",{label:"脑轮廓显示"}),a.addBinding(o,"color",{label:"脑轮廓颜色"}),a.addBinding(o,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const t=s({color:"#9e00af",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 h=new $,p=([r,u]=C(()=>G(F,h)),r=await r,u(),r),g=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:v,toneMapping:x}),w=s({autoRotate:!0,autoRotateSpeed:2});return(I,K)=>{const B=T("TresCanvas");return n(),k(P,null,[m(l(J)),m(B,i(g,{"window-size":""}),{default:f(()=>[D,m(l(R),M(N(w)),null,16),E,d("TresGroup",L,[e.show?(n(),c(V,i({key:0,model:l(p)},e),null,16,["model"])):_("",!0),(n(),c(O,null,{default:f(()=>[o.show?(n(),c(z,i({key:0,model:l(p)},o),null,16,["model"])):_("",!0)]),_:1})),t.show?(n(),c(A,i({key:1,model:l(p)},t),null,16,["model"])):_("",!0)]),q]),_:1},16)],64)}}});export{oa as default};
|
@ -1 +1 @@
|
||||
import{a0 as S,a1 as o,aq as v,aD as x,a2 as k,a3 as T,a4 as P,r as R,o as n,c as $,a as l,K as r,D as f,a7 as c,E as z,ab as M,a9 as h,aa as g,X as _,v as d,Y as m,ag as N}from"./vendor.-e8za0Pb1711337837835.js";import{O,l as G}from"./util.k2JquaLz1711337837835.js";import{_ as J}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.s5fQTtDK1711337837835.js";/* empty css */import{_ as L}from"./randomLoading.vue_vue_type_script_setup_true_lang.SyAI50fN1711337837835.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.YYMXSoCE1711337837835.js";import{_ as A,a as D}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.T7qX4iMQ1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.js";import"./starLoading.LNwTQb5e1711337837835.js";import"./bubbleLoading.XUeV1jic1711337837835.js";import"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";const E=_("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),F=_("TresAmbientLight",{intensity:.5},null,-1),q={position:[0,120,0]},I="./plugins/medical/model/brainparts.OBJ",na=S({__name:"digitalBrainFloor",async setup(K){let i,u;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new v({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const t=o({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=o({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 B=new O,p=([i,u]=x(()=>G(I,B)),i=await i,u(),i),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:T,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(X,Y)=>{const C=R("TresCanvas");return n(),$(z,null,[l(r(L)),l(C,c(b,{"window-size":""}),{default:f(()=>[E,l(r(M),h(g(y)),null,16),F,_("TresGroup",q,[e.show?(n(),d(V,c({key:0,model:r(p)},e),null,16,["model"])):m("",!0),(n(),d(N,null,{default:f(()=>[t.show?(n(),d(A,c({key:0,model:r(p)},t),null,16,["model"])):m("",!0)]),_:1})),s.show?(n(),d(D,c({key:1,model:r(p)},s),null,16,["model"])):m("",!0)]),l(J,h(g(w)),null,16)]),_:1},16)],64)}}});export{na as default};
|
||||
import{a0 as S,a1 as o,aq as v,aD as x,a2 as k,a3 as T,a4 as P,r as R,o as n,c as $,a as l,K as r,D as f,a7 as c,E as z,ab as M,a9 as h,aa as g,X as _,v as d,Y as m,ag as N}from"./vendor.qAzAwG5n1711373106450.js";import{O,l as G}from"./util.UH1xwTPD1711373106450.js";import{_ as J}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.azJS7Jd41711373106450.js";/* empty css */import{_ as L}from"./randomLoading.vue_vue_type_script_setup_true_lang.EymsFXaw1711373106450.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.6feO0-6R1711373106450.js";import{_ as A,a as D}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.PqDxmi871711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.js";import"./starLoading.lMpJi0wl1711373106450.js";import"./bubbleLoading.nC5i2Fqh1711373106450.js";import"./BufferGeometryUtils.Ok9QJftT1711373106450.js";const E=_("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),F=_("TresAmbientLight",{intensity:.5},null,-1),q={position:[0,120,0]},I="./plugins/medical/model/brainparts.OBJ",na=S({__name:"digitalBrainFloor",async setup(K){let i,u;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new v({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const t=o({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=o({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 B=new O,p=([i,u]=x(()=>G(I,B)),i=await i,u(),i),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:T,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(X,Y)=>{const C=R("TresCanvas");return n(),$(z,null,[l(r(L)),l(C,c(b,{"window-size":""}),{default:f(()=>[E,l(r(M),h(g(y)),null,16),F,_("TresGroup",q,[e.show?(n(),d(V,c({key:0,model:r(p)},e),null,16,["model"])):m("",!0),(n(),d(N,null,{default:f(()=>[t.show?(n(),d(A,c({key:0,model:r(p)},t),null,16,["model"])):m("",!0)]),_:1})),s.show?(n(),d(D,c({key:1,model:r(p)},s),null,16,["model"])):m("",!0)]),l(J,h(g(w)),null,16)]),_:1},16)],64)}}});export{na as default};
|
@ -1 +1 @@
|
||||
import{a0 as c,a1 as _,k as h,r as f,o,v as i,D as a,X as t,a as e,H as g,t as T,a7 as d,K as n,al as m,c as $,am as y,E as w,ab as C,ag as v,a9 as D,aa as S}from"./vendor.-e8za0Pb1711337837835.js";/* empty css */import{_ as k}from"./randomLoading.vue_vue_type_script_setup_true_lang.SyAI50fN1711337837835.js";import{_ as B}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.JkajjVSK1711337837835.js";import{_ as F}from"./model.vue_vue_type_script_setup_true_lang._CS1eqpq1711337837835.js";import"./starLoading.LNwTQb5e1711337837835.js";import"./bubbleLoading.XUeV1jic1711337837835.js";import"./ReflectorMaterial.nM2PMP0_1711337837835.js";import"./dither.glsl.y2WXw1t-1711337837835.js";import"./OimoPhysicsBuffer.QJCJGi8L1711337837835.js";const P=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),b={class:"parallelogram"},L=t("span",null,"🔆 飞机螺旋桨",-1),z=c({__name:"illustratePropeller",setup(p){const s=_({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=h(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,l)=>{const x=f("timeDiv");return o(),i(n(m),d(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[P,t("div",b,[L,e(x,null,{default:a(()=>[g("📆: "+T(r.value),1)]),_:1})])]),_:1},16)}}}),E=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),I={class:"parallelogram"},M=t("span",null,"🪃 飞机机翼",-1),N=c({__name:"illustrateWing",setup(p){const s=_({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const l=f("contentDiv");return o(),i(n(m),d(s,{position:[-110,180,60]}),{default:a(()=>[E,t("div",I,[M,e(l,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),R=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),V=c({__name:"illustrateTire",setup(p){const s=_({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(o(),i(n(m),d(s,{position:[-120,130,150]}),{default:a(()=>[R]),_: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),W=c({__name:"illustrateTireMesh",setup(p){const s=_({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=h(null);return(u,l)=>(o(),$(w,null,[e(n(m),d(s,{position:[180,30,150]}),{default:a(()=>[G]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[H,e(n(y))],512)],64))}}),A=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),J=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),K=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),st=c({__name:"divIllustrate",setup(p){const s=_({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>{const l=f("TresCanvas");return o(),$(w,null,[e(n(k)),e(l,{clearColor:"#333","window-size":""},{default:a(()=>[A,e(n(C)),J,K,(o(),i(v,null,{default:a(()=>[e(F)]),_:1})),(o(),i(v,null,{default:a(()=>[e(B,D(S(s)),null,16)]),_:1})),e(z),e(N),e(V),e(W)]),_:1})],64)}}});export{st as default};
|
||||
import{a0 as c,a1 as _,k as h,r as f,o,v as i,D as a,X as t,a as e,H as g,t as T,a7 as d,K as n,al as m,c as $,am as y,E as w,ab as C,ag as v,a9 as D,aa as S}from"./vendor.qAzAwG5n1711373106450.js";/* empty css */import{_ as k}from"./randomLoading.vue_vue_type_script_setup_true_lang.EymsFXaw1711373106450.js";import{_ as B}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.8QtKqBIV1711373106450.js";import{_ as F}from"./model.vue_vue_type_script_setup_true_lang.BrjtxsMA1711373106450.js";import"./starLoading.lMpJi0wl1711373106450.js";import"./bubbleLoading.nC5i2Fqh1711373106450.js";import"./ReflectorMaterial.ppSFokzh1711373106450.js";import"./dither.glsl.y2WXw1t-1711373106450.js";import"./OimoPhysicsBuffer.3ogrGV8s1711373106450.js";const P=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),b={class:"parallelogram"},L=t("span",null,"🔆 飞机螺旋桨",-1),z=c({__name:"illustratePropeller",setup(p){const s=_({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=h(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,l)=>{const x=f("timeDiv");return o(),i(n(m),d(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[P,t("div",b,[L,e(x,null,{default:a(()=>[g("📆: "+T(r.value),1)]),_:1})])]),_:1},16)}}}),E=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),I={class:"parallelogram"},M=t("span",null,"🪃 飞机机翼",-1),N=c({__name:"illustrateWing",setup(p){const s=_({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const l=f("contentDiv");return o(),i(n(m),d(s,{position:[-110,180,60]}),{default:a(()=>[E,t("div",I,[M,e(l,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),R=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),V=c({__name:"illustrateTire",setup(p){const s=_({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(o(),i(n(m),d(s,{position:[-120,130,150]}),{default:a(()=>[R]),_: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),W=c({__name:"illustrateTireMesh",setup(p){const s=_({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=h(null);return(u,l)=>(o(),$(w,null,[e(n(m),d(s,{position:[180,30,150]}),{default:a(()=>[G]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[H,e(n(y))],512)],64))}}),A=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),J=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),K=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),st=c({__name:"divIllustrate",setup(p){const s=_({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>{const l=f("TresCanvas");return o(),$(w,null,[e(n(k)),e(l,{clearColor:"#333","window-size":""},{default:a(()=>[A,e(n(C)),J,K,(o(),i(v,null,{default:a(()=>[e(F)]),_:1})),(o(),i(v,null,{default:a(()=>[e(B,D(S(s)),null,16)]),_:1})),e(z),e(N),e(V),e(W)]),_:1})],64)}}});export{st as default};
|
@ -1 +1 @@
|
||||
import{a0 as _,a1 as r,o as a,v as c,D as d,a9 as u,aa as m,K as e,al as p,X as s,r as v,a as i,ab as g}from"./vendor.-e8za0Pb1711337837835.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=_({__name:"divS1",setup(l){const n=r({wrapperClass:"divS1",as:"div"});return(t,o)=>(a(),c(e(p),u(m(n)),{default:d(()=>[$]),_:1},16))}}),C={class:"poputs_show_cl"},w={class:"oneline"},x=s("div",{class:"name"},"最远距离(km)",-1),S=s("div",{class:"num_s"},"120",-1),I=["src"],j=s("div",{class:"num_end"},"30",-1),T={class:"oneline"},U=s("div",{class:"name"},"切片(层)",-1),P=s("div",{class:"num_s"},"10",-1),b=["src"],k=s("div",{class:"num_end"},"50",-1),B={class:"oneline"},M=s("div",{class:"name"},"最大速度(m/s)",-1),N=s("div",{class:"num_s"},"12",-1),y=["src"],z=s("div",{class:"num_end"},"46",-1),V=_({__name:"divS2",setup(l){const n=r({wrapperClass:"divS2",as:"div"});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",C,[s("div",w,[x,S,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,I),j]),s("div",T,[U,P,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,b),k]),s("div",B,[M,N,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,y),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"],X=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),W=["src"],Y=s("div",{class:"num_end"},"46",-1),Z=_({__name:"divSprite",setup(l){const n=r({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",D,[s("div",F,[G,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),X]),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,W),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=_({__name:"divSample",setup(l){return(n,t)=>{const o=v("TresCanvas");return a(),c(o,{clearColor:"#999","window-size":""},{default:d(()=>[ss,i(e(g)),s("TresMesh",es,[ts,ns,i(f),i(V),i(Z)])]),_:1})}}});export{is as default};
|
||||
import{a0 as _,a1 as r,o as a,v as c,D as d,a9 as u,aa as m,K as e,al as p,X as s,r as v,a as i,ab as g}from"./vendor.qAzAwG5n1711373106450.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=_({__name:"divS1",setup(l){const n=r({wrapperClass:"divS1",as:"div"});return(t,o)=>(a(),c(e(p),u(m(n)),{default:d(()=>[$]),_:1},16))}}),C={class:"poputs_show_cl"},w={class:"oneline"},x=s("div",{class:"name"},"最远距离(km)",-1),S=s("div",{class:"num_s"},"120",-1),I=["src"],j=s("div",{class:"num_end"},"30",-1),T={class:"oneline"},U=s("div",{class:"name"},"切片(层)",-1),P=s("div",{class:"num_s"},"10",-1),b=["src"],k=s("div",{class:"num_end"},"50",-1),B={class:"oneline"},M=s("div",{class:"name"},"最大速度(m/s)",-1),N=s("div",{class:"num_s"},"12",-1),y=["src"],z=s("div",{class:"num_end"},"46",-1),V=_({__name:"divS2",setup(l){const n=r({wrapperClass:"divS2",as:"div"});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",C,[s("div",w,[x,S,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,I),j]),s("div",T,[U,P,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,b),k]),s("div",B,[M,N,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,y),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"],X=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),W=["src"],Y=s("div",{class:"num_end"},"46",-1),Z=_({__name:"divSprite",setup(l){const n=r({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",D,[s("div",F,[G,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),X]),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,W),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=_({__name:"divSample",setup(l){return(n,t)=>{const o=v("TresCanvas");return a(),c(o,{clearColor:"#999","window-size":""},{default:d(()=>[ss,i(e(g)),s("TresMesh",es,[ts,ns,i(f),i(V),i(Z)])]),_:1})}}});export{is as default};
|
@ -1,4 +1,4 @@
|
||||
import{a0 as ye,ac as Qr,k as li,a6 as Hi,o as bt,v as we,K as R,a_ as Zr,a8 as _i,aD as ci,bd as di,c as Fe,X as C,aA as Bt,E as Ie,aP as Jr,b3 as tn,G as en,ap as Se,r as rn,a as Et,D as Te,a7 as nn,a3 as sn,cm as an,ab as on,ag as Ve}from"./vendor.-e8za0Pb1711337837835.js";import{_ as un}from"./default.vue_vue_type_script_setup_true_lang.ROIHt0ye1711337837835.js";const fn=ye({__name:"starts",setup(f){const{onLoop:t}=_i(),e=Qr(0);t(({delta:r})=>{e.value+=.02*r});const i=li();return Hi(()=>{i.value.value.material.color.setHex(5076687),i.value.value.scale.set(5,5,5)}),(r,n)=>(bt(),we(R(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=C("TresSphereGeometry",{args:[50,32,32]},null,-1),_n=["map"],cn=C("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,[C("TresMesh",hn,[ln,C("TresMeshBasicMaterial",{map:R(i)[0]},null,8,_n)]),C("TresMesh",null,[cn,C("TresMeshBasicMaterial",{map:R(i)[1],alphaMap:R(i)[1],blending:R(Bt),transparent:!0},null,8,dn)]),C("TresSprite",pn,[C("TresSpriteMaterial",{color:"#4d76cf",map:R(i)[2],blending:R(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,mn)]),C("TresSprite",gn,[C("TresSpriteMaterial",{color:"#4d76cf",map:R(i)[3],blending:R(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{a0 as ye,ac as Qr,k as li,a6 as Hi,o as bt,v as we,K as R,a_ as Zr,a8 as _i,aD as ci,bd as di,c as Fe,X as C,aA as Bt,E as Ie,aP as Jr,b3 as tn,G as en,ap as Se,r as rn,a as Et,D as Te,a7 as nn,a3 as sn,cm as an,ab as on,ag as Ve}from"./vendor.qAzAwG5n1711373106450.js";import{_ as un}from"./default.vue_vue_type_script_setup_true_lang.A6Q_rkEu1711373106450.js";const fn=ye({__name:"starts",setup(f){const{onLoop:t}=_i(),e=Qr(0);t(({delta:r})=>{e.value+=.02*r});const i=li();return Hi(()=>{i.value.value.material.color.setHex(5076687),i.value.value.scale.set(5,5,5)}),(r,n)=>(bt(),we(R(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=C("TresSphereGeometry",{args:[50,32,32]},null,-1),_n=["map"],cn=C("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,[C("TresMesh",hn,[ln,C("TresMeshBasicMaterial",{map:R(i)[0]},null,8,_n)]),C("TresMesh",null,[cn,C("TresMeshBasicMaterial",{map:R(i)[1],alphaMap:R(i)[1],blending:R(Bt),transparent:!0},null,8,dn)]),C("TresSprite",pn,[C("TresSpriteMaterial",{color:"#4d76cf",map:R(i)[2],blending:R(Bt),depthWrite:!1,depthTest:!1,transparent:!0},null,8,mn)]),C("TresSprite",gn,[C("TresSpriteMaterial",{color:"#4d76cf",map:R(i)[3],blending:R(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
|
||||
*
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a0 as m,ak as P,k as t,a5 as h,o as p,c as E,a as _,K as v,a$ as M,X as s,E as b,aH as R,a8 as $,r as L,v as N,D as G,ab as H}from"./vendor.-e8za0Pb1711337837835.js";import{R as V,E as z}from"./EffectComposer.4iBSRi1M1711337837835.js";import{U as D}from"./UnrealBloomPass.ceNMyCeg1711337837835.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],X=m({__name:"ecLayers",setup(y){const{camera:e,renderer:a,scene:n,sizes:r}=P(),l=t(),c=t(),i=t();let o=null;h(()=>{l.value&&l.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),r.width.value&&x(n.value,e.value,a.value,r.width.value,r.height.value)});const u={threshold:0,strength:.972,radius:.21},x=(f,d,T,g,w)=>{const C=new V(f,d),k=new D(new R(g,w),u.strength,u.radius,u.threshold);o=new z(T),o.addPass(C),o.addPass(k)},{onLoop:B}=$();return B(()=>{o&&e.value&&(a.value.clear(),e.value.layers.set(1),o.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(n.value,e.value))}),(f,d)=>(p(),E(b,null,[_(v(M),{ref_key:"normalBox",ref:l,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))}}),j=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),q=s("TresAmbientLight",{intensity:1},null,-1),J=s("TresGridHelper",{args:[10,10]},null,-1),Y=m({__name:"effectComposerLayers",setup(y){const e=t();return h(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,n)=>{const r=L("TresCanvas");return p(),N(r,{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:G(()=>[j,q,_(v(H)),J,_(X)]),_:1},512)}}});export{Y as default};
|
||||
import{a0 as m,ak as P,k as t,a5 as h,o as p,c as E,a as _,K as v,a$ as M,X as s,E as b,aH as R,a8 as $,r as L,v as N,D as G,ab as H}from"./vendor.qAzAwG5n1711373106450.js";import{R as V,E as z}from"./EffectComposer.rmqSd-Uk1711373106450.js";import{U as D}from"./UnrealBloomPass.F6L0WcBA1711373106450.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],X=m({__name:"ecLayers",setup(y){const{camera:e,renderer:a,scene:n,sizes:r}=P(),l=t(),c=t(),i=t();let o=null;h(()=>{l.value&&l.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),r.width.value&&x(n.value,e.value,a.value,r.width.value,r.height.value)});const u={threshold:0,strength:.972,radius:.21},x=(f,d,T,g,w)=>{const C=new V(f,d),k=new D(new R(g,w),u.strength,u.radius,u.threshold);o=new z(T),o.addPass(C),o.addPass(k)},{onLoop:B}=$();return B(()=>{o&&e.value&&(a.value.clear(),e.value.layers.set(1),o.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(n.value,e.value))}),(f,d)=>(p(),E(b,null,[_(v(M),{ref_key:"normalBox",ref:l,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))}}),j=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),q=s("TresAmbientLight",{intensity:1},null,-1),J=s("TresGridHelper",{args:[10,10]},null,-1),Y=m({__name:"effectComposerLayers",setup(y){const e=t();return h(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,n)=>{const r=L("TresCanvas");return p(),N(r,{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:G(()=>[j,q,_(v(H)),J,_(X)]),_:1},512)}}});export{Y as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a0 as p,k as m,ak as S,a5 as x,o as T,c as k,X as e,E as M,a8 as U,aH as D,ax as E,r as R,v as N,D as V,a as _,K as $,ab as F}from"./vendor.-e8za0Pb1711337837835.js";import{R as G,E as h,S as L}from"./EffectComposer.4iBSRi1M1711337837835.js";import{U as z}from"./UnrealBloomPass.ceNMyCeg1711337837835.js";const H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),j=e("TresMeshNormalMaterial",null,null,-1),A=[H,j],I=e("TresBoxGeometry",{args:[1,1,1]},null,-1),K=e("TresMeshNormalMaterial",null,null,-1),X=[I,K],q=p({__name:"ecLayerShaderPass",setup(g){const s=m(),r=m(),{camera:t,renderer:o,scene:f,sizes:u}=S(),d={strength:.572,radius:.51,threshold:0};let v=null,a=null,n=null;const w=(l,i,c,C,b)=>{v=new G(l,i);const B=new z(new D(C,b),d.strength,d.radius,d.threshold);a=new h(c),a.renderToScreen=!1,a.addPass(v),a.addPass(B)},P=l=>{n=new h(l);const i=new E({uniforms:{baseTexture:{value:null},bloomTexture:{value:a.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:{}}),c=new L(i,"baseTexture");c.needsSwap=!0,n.addPass(v),n.addPass(c)};x(()=>{s.value&&s.value.layers.set(0),r.value&&r.value.layers.set(1),u.width.value&&(w(f.value,t.value,o.value,u.width.value,u.height.value),P(o.value))});const{onLoop:y}=U();return y(()=>{a&&n&&t.value&&(o.value.clear(),t.value.layers.set(1),a.render(),o.value.clearDepth(),t.value.layers.set(0),n.render(f.value,t.value))}),(l,i)=>(T(),k(M,null,[e("TresMesh",{ref_key:"normalBox",ref:s,position:[3,2,1]},A,512),e("TresMesh",{ref_key:"shineBox",ref:r,position:[0,2,-4]},X,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=p({__name:"effectComposerShaderPass",setup(g){const s=m();return x(()=>{if(s.value){let r=s.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>{const o=R("TresCanvas");return T(),N(o,{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:V(()=>[J,O,_($(F)),Q,_(q)]),_:1},512)}}});export{ee as default};
|
||||
import{a0 as p,k as m,ak as S,a5 as x,o as T,c as k,X as e,E as M,a8 as U,aH as D,ax as E,r as R,v as N,D as V,a as _,K as $,ab as F}from"./vendor.qAzAwG5n1711373106450.js";import{R as G,E as h,S as L}from"./EffectComposer.rmqSd-Uk1711373106450.js";import{U as z}from"./UnrealBloomPass.F6L0WcBA1711373106450.js";const H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),j=e("TresMeshNormalMaterial",null,null,-1),A=[H,j],I=e("TresBoxGeometry",{args:[1,1,1]},null,-1),K=e("TresMeshNormalMaterial",null,null,-1),X=[I,K],q=p({__name:"ecLayerShaderPass",setup(g){const s=m(),r=m(),{camera:t,renderer:o,scene:f,sizes:u}=S(),d={strength:.572,radius:.51,threshold:0};let v=null,a=null,n=null;const w=(l,i,c,C,b)=>{v=new G(l,i);const B=new z(new D(C,b),d.strength,d.radius,d.threshold);a=new h(c),a.renderToScreen=!1,a.addPass(v),a.addPass(B)},P=l=>{n=new h(l);const i=new E({uniforms:{baseTexture:{value:null},bloomTexture:{value:a.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:{}}),c=new L(i,"baseTexture");c.needsSwap=!0,n.addPass(v),n.addPass(c)};x(()=>{s.value&&s.value.layers.set(0),r.value&&r.value.layers.set(1),u.width.value&&(w(f.value,t.value,o.value,u.width.value,u.height.value),P(o.value))});const{onLoop:y}=U();return y(()=>{a&&n&&t.value&&(o.value.clear(),t.value.layers.set(1),a.render(),o.value.clearDepth(),t.value.layers.set(0),n.render(f.value,t.value))}),(l,i)=>(T(),k(M,null,[e("TresMesh",{ref_key:"normalBox",ref:s,position:[3,2,1]},A,512),e("TresMesh",{ref_key:"shineBox",ref:r,position:[0,2,-4]},X,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=p({__name:"effectComposerShaderPass",setup(g){const s=m();return x(()=>{if(s.value){let r=s.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>{const o=R("TresCanvas");return T(),N(o,{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:V(()=>[J,O,_($(F)),Q,_(q)]),_:1},512)}}});export{ee as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{ax as p,bL as a,az as s,aA as v,ap as u,a0 as h,aq as _,a1 as b,br as t,aw as y,bM as S,bq as C,a5 as x,r as M,o as r,v as d,D as f,a as c,K as i,ab as T,X as n,ag as k,bN as G}from"./vendor.-e8za0Pb1711337837835.js";class B extends p{constructor(o={}){super(),this.vertexShader="\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main() {\n vec4 modelPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * viewMatrix * modelPosition;\n vec4 modelNormal = modelMatrix * vec4(normal, 0.0);\n vPosition = modelPosition.xyz;\n vNormal = modelNormal.xyz;\n\n }\n ",this.fragmentShader="\n uniform vec3 glowColor;\n uniform float falloff;\n uniform float glowSharpness;\n uniform float glowInternalRadius;\n uniform float opacity;\n\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main()\n {\n // Normal\n vec3 normal = normalize(vNormal);\n if(!gl_FrontFacing)\n normal *= - 1.0;\n vec3 viewDirection = normalize(cameraPosition - vPosition);\n float fresnel = dot(viewDirection, normal);\n fresnel = pow(fresnel, glowInternalRadius + 0.1);\n float falloff = smoothstep(0., falloff, fresnel);\n float fakeGlow = fresnel;\n fakeGlow += fresnel * glowSharpness;\n fakeGlow *= falloff;\n gl_FragColor = vec4(clamp(glowColor * fresnel, 0., 1.0), clamp(fakeGlow, 0., opacity));\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n } \n ",this.uniforms={opacity:new a(o.opacity!==void 0?o.opacity:1),glowInternalRadius:new a(o.glowInternalRadius!==void 0?o.glowInternalRadius:6),glowSharpness:new a(o.glowSharpness!==void 0?o.glowSharpness:.5),falloff:new a(o.falloff!==void 0?o.falloff:.1),glowColor:new a(o.glowColor!==void 0?new s(o.glowColor):new s("#00d5ff"))},this.setValues(o),this.depthTest=o.depthTest!==void 0?o.depthTest:!1,this.blending=o.blendMode!==void 0?o.blendMode:v,this.transparent=!0,this.side=o.side!==void 0?o.side:u}}const P=B,I=n("TresPerspectiveCamera",{position:[0,25,25],near:.1,fov:65},null,-1),N=n("TresAmbientLight",{intensity:1.5},null,-1),R=n("TresDirectionalLight",{position:[100,100,60],intensity:20},null,-1),F=n("TresGridHelper",{args:[20,10]},null,-1),z={position:[0,6,0]},D=n("TresMesh",null,[n("TresTorusKnotGeometry",{args:[4,.5,128,128]}),n("TresMeshPhysicalMaterial",{color:"blue",roughness:.2,clearcoat:1})],-1),j=["object"],V=h({__name:"fakeGlow",setup(w){const o=new _({title:"辉光参数",expanded:!0}),e=b({glowColor:"#a058c1",falloff:1.4,glowInternalRadius:3.7,glowSharpness:0,opacity:1,side:t,depthTest:!1}),l=new P,g=new y(new S(4,3.8,128,128),l);return o.addBinding(e,"glowColor",{label:"颜色"}),o.addBinding(e,"falloff",{label:"衰减",min:0,max:10,step:.1}),o.addBinding(e,"glowInternalRadius",{label:"内半径",min:-5,max:5,step:.1}),o.addBinding(e,"glowSharpness",{label:"清晰度",min:0,max:10,step:.1}),o.addBinding(e,"opacity",{label:"透明",min:0,max:1,step:.1}),o.addBinding(e,"side",{label:"材质面",options:{FrontSide:t,BackSide:C,DoubleSide:u}}),x(()=>{l.uniforms.falloff.value=e.falloff,l.uniforms.glowColor.value=new s(e.glowColor),l.uniforms.glowInternalRadius.value=e.glowInternalRadius,l.uniforms.glowSharpness.value=e.glowSharpness,l.uniforms.opacity.value=e.opacity,l.side=e.side}),(A,K)=>{const m=M("TresCanvas");return r(),d(m,{"window-size":""},{default:f(()=>[I,N,R,c(i(T),{autoRotate:""}),F,n("TresGroup",z,[D,n("primitive",{object:i(g)},null,8,j)]),(r(),d(k,null,{default:f(()=>[c(i(G),{preset:"city"})]),_:1}))]),_:1})}}});export{V as default};
|
||||
import{ax as p,bL as a,az as s,aA as v,ap as u,a0 as h,aq as _,a1 as b,br as t,aw as y,bM as S,bq as C,a5 as x,r as M,o as r,v as d,D as f,a as c,K as i,ab as T,X as n,ag as k,bN as G}from"./vendor.qAzAwG5n1711373106450.js";class B extends p{constructor(o={}){super(),this.vertexShader="\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main() {\n vec4 modelPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * viewMatrix * modelPosition;\n vec4 modelNormal = modelMatrix * vec4(normal, 0.0);\n vPosition = modelPosition.xyz;\n vNormal = modelNormal.xyz;\n\n }\n ",this.fragmentShader="\n uniform vec3 glowColor;\n uniform float falloff;\n uniform float glowSharpness;\n uniform float glowInternalRadius;\n uniform float opacity;\n\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main()\n {\n // Normal\n vec3 normal = normalize(vNormal);\n if(!gl_FrontFacing)\n normal *= - 1.0;\n vec3 viewDirection = normalize(cameraPosition - vPosition);\n float fresnel = dot(viewDirection, normal);\n fresnel = pow(fresnel, glowInternalRadius + 0.1);\n float falloff = smoothstep(0., falloff, fresnel);\n float fakeGlow = fresnel;\n fakeGlow += fresnel * glowSharpness;\n fakeGlow *= falloff;\n gl_FragColor = vec4(clamp(glowColor * fresnel, 0., 1.0), clamp(fakeGlow, 0., opacity));\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n } \n ",this.uniforms={opacity:new a(o.opacity!==void 0?o.opacity:1),glowInternalRadius:new a(o.glowInternalRadius!==void 0?o.glowInternalRadius:6),glowSharpness:new a(o.glowSharpness!==void 0?o.glowSharpness:.5),falloff:new a(o.falloff!==void 0?o.falloff:.1),glowColor:new a(o.glowColor!==void 0?new s(o.glowColor):new s("#00d5ff"))},this.setValues(o),this.depthTest=o.depthTest!==void 0?o.depthTest:!1,this.blending=o.blendMode!==void 0?o.blendMode:v,this.transparent=!0,this.side=o.side!==void 0?o.side:u}}const P=B,I=n("TresPerspectiveCamera",{position:[0,25,25],near:.1,fov:65},null,-1),N=n("TresAmbientLight",{intensity:1.5},null,-1),R=n("TresDirectionalLight",{position:[100,100,60],intensity:20},null,-1),F=n("TresGridHelper",{args:[20,10]},null,-1),z={position:[0,6,0]},D=n("TresMesh",null,[n("TresTorusKnotGeometry",{args:[4,.5,128,128]}),n("TresMeshPhysicalMaterial",{color:"blue",roughness:.2,clearcoat:1})],-1),j=["object"],V=h({__name:"fakeGlow",setup(w){const o=new _({title:"辉光参数",expanded:!0}),e=b({glowColor:"#a058c1",falloff:1.4,glowInternalRadius:3.7,glowSharpness:0,opacity:1,side:t,depthTest:!1}),l=new P,g=new y(new S(4,3.8,128,128),l);return o.addBinding(e,"glowColor",{label:"颜色"}),o.addBinding(e,"falloff",{label:"衰减",min:0,max:10,step:.1}),o.addBinding(e,"glowInternalRadius",{label:"内半径",min:-5,max:5,step:.1}),o.addBinding(e,"glowSharpness",{label:"清晰度",min:0,max:10,step:.1}),o.addBinding(e,"opacity",{label:"透明",min:0,max:1,step:.1}),o.addBinding(e,"side",{label:"材质面",options:{FrontSide:t,BackSide:C,DoubleSide:u}}),x(()=>{l.uniforms.falloff.value=e.falloff,l.uniforms.glowColor.value=new s(e.glowColor),l.uniforms.glowInternalRadius.value=e.glowInternalRadius,l.uniforms.glowSharpness.value=e.glowSharpness,l.uniforms.opacity.value=e.opacity,l.side=e.side}),(A,K)=>{const m=M("TresCanvas");return r(),d(m,{"window-size":""},{default:f(()=>[I,N,R,c(i(T),{autoRotate:""}),F,n("TresGroup",z,[D,n("primitive",{object:i(g)},null,8,j)]),(r(),d(k,null,{default:f(()=>[c(i(G),{preset:"city"})]),_:1}))]),_:1})}}});export{V as default};
|
@ -1 +1 @@
|
||||
import{a0 as n,k as s,a5 as p,a1 as r,aq as m,o as c,v as d,D as f,a as o,a7 as l}from"./vendor.-e8za0Pb1711337837835.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as i}from"./rippleMesh.vue_vue_type_script_setup_true_lang.T8hGLz7b1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./utils.MPxjewin1711337837835.js";import"./Water2.JKAv0Wjh1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.js";import"./ExtensionUtilities.6PM5ntza1711337837835.js";const $=n({__name:"fence",setup(y){const t=s();p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const e=r({color:"#00ffdd",opacity:.8,num:8,speed:.2}),a=new m({title:"围墙效果",expanded:!0});return a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"opacity",{label:"透明度",min:0,max:1,step:.1}),a.addBinding(e,"speed",{label:"滚动速度",min:0,max:1,step:.1}),a.addBinding(e,"num",{label:"条纹数",min:0,max:20,step:1}),(_,u)=>(c(),d(x,{ref_key:"pagesShowRef",ref:t},{ability:f(()=>[o(i,{"position-y":20,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}),o(i,l({"position-y":20,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}]},e),null,16)]),_:1},512))}});export{$ as default};
|
||||
import{a0 as n,k as s,a5 as p,a1 as r,aq as m,o as c,v as d,D as f,a as o,a7 as l}from"./vendor.qAzAwG5n1711373106450.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as i}from"./rippleMesh.vue_vue_type_script_setup_true_lang.lGDROKGu1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./utils.tqavjKNs1711373106450.js";import"./Water2.sn8z3JRB1711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.js";import"./ExtensionUtilities.T05lUX8b1711373106450.js";const $=n({__name:"fence",setup(y){const t=s();p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const e=r({color:"#00ffdd",opacity:.8,num:8,speed:.2}),a=new m({title:"围墙效果",expanded:!0});return a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"opacity",{label:"透明度",min:0,max:1,step:.1}),a.addBinding(e,"speed",{label:"滚动速度",min:0,max:1,step:.1}),a.addBinding(e,"num",{label:"条纹数",min:0,max:20,step:1}),(_,u)=>(c(),d(x,{ref_key:"pagesShowRef",ref:t},{ability:f(()=>[o(i,{"position-y":20,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}),o(i,l({"position-y":20,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}]},e),null,16)]),_:1},512))}});export{$ as default};
|
@ -1 +1 @@
|
||||
import{a0 as r,aq as o,a1 as m,k as l,a5 as c,o as i,c as p,a as n,D as s,E as f,v as d,a7 as _,ag as u}from"./vendor.-e8za0Pb1711337837835.js";import{_ as g}from"./default.vue_vue_type_script_setup_true_lang.ROIHt0ye1711337837835.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as B}from"./fireA.vue_vue_type_script_setup_true_lang.0grO6oC11711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.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 t=l();return c(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)}),(b,h)=>(i(),p(f,null,[n(g),n(x,{ref_key:"pagesShowRef",ref:t},{ability:s(()=>[(i(),d(u,null,{default:s(()=>[n(B,_(a,{position:[200,19,120]}),null,16)]),_:1}))]),_:1},512)],64))}});export{R as default};
|
||||
import{a0 as r,aq as o,a1 as m,k as l,a5 as c,o as i,c as p,a as n,D as s,E as f,v as d,a7 as _,ag as u}from"./vendor.qAzAwG5n1711373106450.js";import{_ as g}from"./default.vue_vue_type_script_setup_true_lang.A6Q_rkEu1711373106450.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as B}from"./fireA.vue_vue_type_script_setup_true_lang.0v4cyht-1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.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 t=l();return c(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)}),(b,h)=>(i(),p(f,null,[n(g),n(x,{ref_key:"pagesShowRef",ref:t},{ability:s(()=>[(i(),d(u,null,{default:s(()=>[n(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
1
dist/js/fireB.HxEZ3RX91711373106450.js
vendored
Normal file
1
dist/js/fireB.HxEZ3RX91711373106450.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{_ as r}from"./fireB.vue_vue_type_script_setup_true_lang.29bq1rlU1711373106450.js";import{a0 as s,o as a,v as t,D as e,ag as _,a as i}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./SPE.OnBFknJf1711373106450.js";const h=s({__name:"fireB",setup(m){return(n,p)=>(a(),t(o,null,{ability:e(()=>[(a(),t(_,null,{default:e(()=>[i(r)]),_:1}))]),_:1}))}});export{h as default};
|
1
dist/js/fireB.dE3Tqr0D1711337837835.js
vendored
1
dist/js/fireB.dE3Tqr0D1711337837835.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as o}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{_ as r}from"./fireB.vue_vue_type_script_setup_true_lang.WQJ1OnkR1711337837835.js";import{a0 as s,o as a,v as t,D as e,ag as _,a as i}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./SPE.Ez7LrsxT1711337837835.js";const h=s({__name:"fireB",setup(m){return(n,p)=>(a(),t(o,null,{ability:e(()=>[(a(),t(_,null,{default:e(()=>[i(r)]),_:1}))]),_:1}))}});export{h as default};
|
@ -1 +1 @@
|
||||
import{a0 as l,aD as u,bd as d,aA as m,b3 as e,az as _,o as w,c as b,K as f,a8 as v}from"./vendor.-e8za0Pb1711337837835.js";import{S as o}from"./SPE.Ez7LrsxT1711337837835.js";const g=["object"],k=l({__name:"fireB",async setup(h){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}=v();return c(({dt:n})=>{i.tick(n)}),(n,x)=>(w(),b("primitive",{object:f(p),position:[-130,26,20],renderOrder:3001},null,8,g))}});export{k as _};
|
||||
import{a0 as l,aD as u,bd as d,aA as m,b3 as e,az as _,o as w,c as b,K as f,a8 as v}from"./vendor.qAzAwG5n1711373106450.js";import{S as o}from"./SPE.OnBFknJf1711373106450.js";const g=["object"],k=l({__name:"fireB",async setup(h){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}=v();return c(({dt:n})=>{i.tick(n)}),(n,x)=>(w(),b("primitive",{object:f(p),position:[-130,26,20],renderOrder:3001},null,8,g))}});export{k as _};
|
@ -1 +1 @@
|
||||
import{_ as w}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{a0 as p,aD as b,bd as x,aH as E,aA as g,b3 as o,az as s,o as r,c as h,K as y,a8 as B,v as n,D as l,ag as C,a as k}from"./vendor.-e8za0Pb1711337837835.js";import{S as t}from"./SPE.Ez7LrsxT1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";const A=["object"],S=p({__name:"fireBall",async setup(c){let e,a;const{map:u}=([e,a]=b(()=>x({map:"./plugins/digitalCity/image/sprite-explosion.png"})),e=await e,a(),e),i=new t.Group({texture:{value:u,frames:new E(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}=B();return v(({dt:f})=>{i.tick()}),(f,j)=>(r(),h("primitive",{object:y(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.yoJYH6Cf1711373106450.js";import{a0 as p,aD as b,bd as x,aH as E,aA as g,b3 as o,az as s,o as r,c as h,K as y,a8 as B,v as n,D as l,ag as C,a as k}from"./vendor.qAzAwG5n1711373106450.js";import{S as t}from"./SPE.OnBFknJf1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";const A=["object"],S=p({__name:"fireBall",async setup(c){let e,a;const{map:u}=([e,a]=b(()=>x({map:"./plugins/digitalCity/image/sprite-explosion.png"})),e=await e,a(),e),i=new t.Group({texture:{value:u,frames:new E(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}=B();return v(({dt:f})=>{i.tick()}),(f,j)=>(r(),h("primitive",{object:y(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};
|
@ -1 +1 @@
|
||||
import{a0 as l,r as c,o as d,v as _,D as m,a7 as u,a2 as h,a4 as f,a as e,K as s,aV as C,aW as g,aX as T,X as a}from"./vendor.-e8za0Pb1711337837835.js";const v=a("TresPerspectiveCamera",{position:[0,3,10]},null,-1),w=a("TresGridHelper",{args:[100,100]},null,-1),B=a("TresAmbientLight",{intensity:1},null,-1),M=l({__name:"firstPersonControls",setup(b){const t={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:f},r=o=>console.log(o);return(o,n)=>{const i=c("TresCanvas");return d(),_(i,u(t,{"window-size":""}),{default:m(()=>[e(s(C)),v,e(s(g),{"make-default":"",onIsLock:n[0]||(n[0]=p=>r(p))}),e(s(T),{"head-bobbing":""}),w,B]),_:1},16)}}});export{M as default};
|
||||
import{a0 as l,r as c,o as d,v as _,D as m,a7 as u,a2 as h,a4 as f,a as e,K as s,aV as C,aW as g,aX as T,X as a}from"./vendor.qAzAwG5n1711373106450.js";const v=a("TresPerspectiveCamera",{position:[0,3,10]},null,-1),w=a("TresGridHelper",{args:[100,100]},null,-1),B=a("TresAmbientLight",{intensity:1},null,-1),M=l({__name:"firstPersonControls",setup(b){const t={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:f},r=o=>console.log(o);return(o,n)=>{const i=c("TresCanvas");return d(),_(i,u(t,{"window-size":""}),{default:m(()=>[e(s(C)),v,e(s(g),{"make-default":"",onIsLock:n[0]||(n[0]=p=>r(p))}),e(s(T),{"head-bobbing":""}),w,B]),_:1},16)}}});export{M as default};
|
@ -1 +1 @@
|
||||
import{_ as i}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{a0 as l,ak as d,w as t,o as s,c,Y as p,c4 as u,az as f,a1 as g,aq as m,v as _,D as v,a as x,a9 as h,aa as y}from"./vendor.-e8za0Pb1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.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.yoJYH6Cf1711373106450.js";import{a0 as l,ak as d,w as t,o as s,c,Y as p,c4 as u,az as f,a1 as g,aq as m,v as _,D as v,a as x,a9 as h,aa as y}from"./vendor.qAzAwG5n1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.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};
|
@ -1 +1 @@
|
||||
import{a0 as u,k as d,ac as r,w as h,r as f,o as m,v as T,D as l,a7 as M,a2 as g,a3 as C,a4 as v,X as e,a,K as s,am as i,aZ as w,a$ as x,ap as y,ab as B}from"./vendor.-e8za0Pb1711337837835.js";const k=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),R={"position-x":3},b=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),G={position:[0,0,-1]},S=e("TresPlaneGeometry",{args:[3,3]},null,-1),D=["side"],N=e("TresGridHelper",{args:[10,10]},null,-1),P=e("TresAmbientLight",{intensity:1},null,-1),z=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),V=u({__name:"glassMaterial",setup(H){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:g,outputColorSpace:C,toneMapping:v},p=d(),t=r(),o=r();return h(t,n=>{o.value.value.material.dispose(),o.value.value.material=n.MeshGlassMaterialClass}),(n,K)=>{const _=f("TresCanvas");return m(),T(_,M(c,{ref_key:"context",ref:p,"window-size":""}),{default:l(()=>[k,e("TresMesh",R,[b,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(w),{scale:.5},{default:l(()=>[a(s(i))]),_:1}),a(s(x),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",G,[S,e("TresMeshBasicMaterial",{side:s(y),color:16716049},null,8,D)]),N,P,z,a(s(B))]),_:1},16)}}});export{V as default};
|
||||
import{a0 as u,k as d,ac as r,w as h,r as f,o as m,v as T,D as l,a7 as M,a2 as g,a3 as C,a4 as v,X as e,a,K as s,am as i,aZ as w,a$ as x,ap as y,ab as B}from"./vendor.qAzAwG5n1711373106450.js";const k=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),R={"position-x":3},b=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),G={position:[0,0,-1]},S=e("TresPlaneGeometry",{args:[3,3]},null,-1),D=["side"],N=e("TresGridHelper",{args:[10,10]},null,-1),P=e("TresAmbientLight",{intensity:1},null,-1),z=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),V=u({__name:"glassMaterial",setup(H){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:g,outputColorSpace:C,toneMapping:v},p=d(),t=r(),o=r();return h(t,n=>{o.value.value.material.dispose(),o.value.value.material=n.MeshGlassMaterialClass}),(n,K)=>{const _=f("TresCanvas");return m(),T(_,M(c,{ref_key:"context",ref:p,"window-size":""}),{default:l(()=>[k,e("TresMesh",R,[b,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(w),{scale:.5},{default:l(()=>[a(s(i))]),_:1}),a(s(x),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",G,[S,e("TresMeshBasicMaterial",{side:s(y),color:16716049},null,8,D)]),N,P,z,a(s(B))]),_:1},16)}}});export{V as default};
|
1
dist/js/heatmap.14EB1Qaq1711337837835.js
vendored
1
dist/js/heatmap.14EB1Qaq1711337837835.js
vendored
@ -1 +0,0 @@
|
||||
import{a0 as n,a1 as o,aq as i,o as s,c as r,a as e,D as m,E as p,a7 as l}from"./vendor.-e8za0Pb1711337837835.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang.dRfkc9Mn1711337837835.js";import{_ as c}from"./default.vue_vue_type_script_setup_true_lang.ROIHt0ye1711337837835.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import"./heatmap.eR4ogE4Q1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";const R=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{R as default};
|
1
dist/js/heatmap.IJMIpHgI1711373106450.js
vendored
Normal file
1
dist/js/heatmap.IJMIpHgI1711373106450.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{a0 as n,a1 as o,aq as i,o as s,c as r,a as e,D as m,E as p,a7 as l}from"./vendor.qAzAwG5n1711373106450.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang.LG_X8igE1711373106450.js";import{_ as c}from"./default.vue_vue_type_script_setup_true_lang.A6Q_rkEu1711373106450.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import"./heatmap.nPYeOq9i1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";const R=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{R as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aT as f,aj as V,k as m,a0 as U,c2 as H,bf as N,aw as b,a5 as O,o as y,c as _,X as M,K as r,E as P,au as D,ax as X,ap as $,_ as k,a6 as F,aQ as G,I as R,J as Y,t as q,Z as z,aD as J,a1 as S,aq as K,a as p,D as Q,a7 as B}from"./vendor.-e8za0Pb1711337837835.js";import{_ as W,l as Z,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.jz5YlqDH1711337837835.js";import{h as te}from"./heatmap.eR4ogE4Q1711337837835.js";import{r as ae}from"./utils.MPxjewin1711337837835.js";import{m as oe}from"./BufferGeometryUtils.vxj2e_EJ1711337837835.js";import{c as ne,d as se,a as ie}from"./ExtensionUtilities.6PM5ntza1711337837835.js";import"./vanilla-307d3a93.esm.Zw1n6cOj1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";import"./LineSegments2.9FCFlFb11711337837835.js";import"./Water2.JKAv0Wjh1711337837835.js";import"./Reflector.Ujb4L6xE1711337837835.js";const T=36,v=-10,C=(o,e)=>o.getValueAt(e)+v,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:f.randInt(1,o._config.width),y:f.randInt(1,o._config.height),value:f.randInt(v,T)}),t++}o.setData({max:T,min:v,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=V("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=ne,D.prototype.disposeBoundsTree=se,b.prototype.raycast=ie})();const t=o,a=ce();re(a);const n=new H(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new X({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:$}),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 x=l.geometry.clone().applyMatrix4(l.matrix),u=oe([g,x]);u.applyMatrix4(new N().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const w=c(n),E=new b(u,w);O(()=>{t.opacity&&(w.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))}},L=s=>{s&&d.$patch({showDiv:!0})},A=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(y(),_(P,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:j,onPointerEnter:L,onPointerLeave:A},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 F(()=>{window.addEventListener("mousemove",a)}),G(()=>{window.removeEventListener("mousemove",a)}),(n,c)=>R((y(),_("div",{class:"title",style:z(t.value)},"温度:"+q(r(e).temperature)+"℃ ",5)),[[Y,r(e).showDiv]])}},de=k(me,[["__scopeId","data-v-fac3e7fd"]]),Se=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,x)=>(y(),_(P,null,[p(W,{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{Se as default};
|
||||
import{aT as f,aj as V,k as m,a0 as U,c2 as H,bf as N,aw as b,a5 as O,o as y,c as _,X as M,K as r,E as P,au as D,ax as X,ap as $,_ as k,a6 as F,aQ as G,I as R,J as Y,t as q,Z as z,aD as J,a1 as S,aq as K,a as p,D as Q,a7 as B}from"./vendor.qAzAwG5n1711373106450.js";import{_ as W,l as Z,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.yoJYH6Cf1711373106450.js";import{h as te}from"./heatmap.nPYeOq9i1711373106450.js";import{r as ae}from"./utils.tqavjKNs1711373106450.js";import{m as oe}from"./BufferGeometryUtils.Ok9QJftT1711373106450.js";import{c as ne,d as se,a as ie}from"./ExtensionUtilities.T05lUX8b1711373106450.js";import"./vanilla-307d3a93.esm.2R22idcC1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";import"./LineSegments2.VvAxsHzb1711373106450.js";import"./Water2.sn8z3JRB1711373106450.js";import"./Reflector.g_Iv9JDg1711373106450.js";const T=36,v=-10,C=(o,e)=>o.getValueAt(e)+v,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:f.randInt(1,o._config.width),y:f.randInt(1,o._config.height),value:f.randInt(v,T)}),t++}o.setData({max:T,min:v,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=V("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=ne,D.prototype.disposeBoundsTree=se,b.prototype.raycast=ie})();const t=o,a=ce();re(a);const n=new H(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new X({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:$}),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 x=l.geometry.clone().applyMatrix4(l.matrix),u=oe([g,x]);u.applyMatrix4(new N().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const w=c(n),E=new b(u,w);O(()=>{t.opacity&&(w.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))}},L=s=>{s&&d.$patch({showDiv:!0})},A=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(y(),_(P,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:j,onPointerEnter:L,onPointerLeave:A},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 F(()=>{window.addEventListener("mousemove",a)}),G(()=>{window.removeEventListener("mousemove",a)}),(n,c)=>R((y(),_("div",{class:"title",style:z(t.value)},"温度:"+q(r(e).temperature)+"℃ ",5)),[[Y,r(e).showDiv]])}},de=k(me,[["__scopeId","data-v-fac3e7fd"]]),Se=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,x)=>(y(),_(P,null,[p(W,{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{Se as default};
|
@ -1 +1 @@
|
||||
import{a0 as c,k as f,a8 as u,a1 as d,aq as _,r as h,o as m,v as C,D as g,a7 as r,a3 as v,cm as w,a as i,K as S,ab as y,X as a}from"./vendor.-e8za0Pb1711337837835.js";import{_ as R}from"./heatmapJS.vue_vue_type_script_setup_true_lang.dRfkc9Mn1711337837835.js";import"./heatmap.eR4ogE4Q1711337837835.js";import"./_commonjsHelpers.5-cIlDoe1711337837835.js";const T=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),J=c({__name:"heatmapExample",setup(P){const l={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:v,shadowMapType:w,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 _({title:"参数",expanded:!0});return n.addBinding(o,"show2dCanvas",{label:"显示二维图"}),n.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,b)=>{const p=h("TresCanvas");return m(),C(p,r(l,{"window-size":""}),{default:g(()=>[T,i(S(y),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,i(R,r({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16)}}});export{J as default};
|
||||
import{a0 as c,k as f,a8 as u,a1 as d,aq as _,r as h,o as m,v as C,D as g,a7 as r,a3 as v,cm as w,a as i,K as S,ab as y,X as a}from"./vendor.qAzAwG5n1711373106450.js";import{_ as R}from"./heatmapJS.vue_vue_type_script_setup_true_lang.LG_X8igE1711373106450.js";import"./heatmap.nPYeOq9i1711373106450.js";import"./_commonjsHelpers.5-cIlDoe1711373106450.js";const T=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),J=c({__name:"heatmapExample",setup(P){const l={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:v,shadowMapType:w,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 _({title:"参数",expanded:!0});return n.addBinding(o,"show2dCanvas",{label:"显示二维图"}),n.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,b)=>{const p=h("TresCanvas");return m(),C(p,r(l,{"window-size":""}),{default:g(()=>[T,i(S(y),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,i(R,r({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16)}}});export{J as default};
|
@ -1 +1 @@
|
||||
import{a0 as d,c2 as m,ap as g,a5 as f,o as y,c as x,X as p,a9 as _,aa as M}from"./vendor.-e8za0Pb1711337837835.js";import{h as R}from"./heatmap.eR4ogE4Q1711337837835.js";const w=["position"],b=["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(u,{expose:c}){const a=u;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},[p("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,b),p("TresShaderMaterial",_(M(l)),null,16)],8,w))}});export{C as _};
|
||||
import{a0 as d,c2 as m,ap as g,a5 as f,o as y,c as x,X as p,a9 as _,aa as M}from"./vendor.qAzAwG5n1711373106450.js";import{h as R}from"./heatmap.nPYeOq9i1711373106450.js";const w=["position"],b=["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(u,{expose:c}){const a=u;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},[p("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,b),p("TresShaderMaterial",_(M(l)),null,16)],8,w))}});export{C as _};
|
@ -1 +1 @@
|
||||
import{a0 as u,k as i,a1 as h,r as d,o as m,v as f,D as s,a7 as t,a2 as T,a3 as x,a4 as M,a as o,K as a,ab as g,X as e,al as n}from"./vendor.-e8za0Pb1711337837835.js";const w=e("TresPerspectiveCamera",{position:[3,0,8]},null,-1),C={position:[1,1,1]},v=e("TresBoxGeometry",null,null,-1),y=e("TresMeshNormalMaterial",null,null,-1),B=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),N=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Sphere ⭕️ ",-1),k=e("TresTorusGeometry",null,null,-1),I=e("TresMeshNormalMaterial",null,null,-1),R=e("h1",{class:"bg-white text-xs p-0.5 text-fuchsia-500"}," I'm a Sprite 👻 ",-1),G=e("h1",{class:"bg-blue-gray-900 text-xs rounded p-0.5 text-green-100"}," I'm just a Div 🔖 ",-1),D=e("TresAmbientLight",{intensity:1},null,-1),A=u({__name:"htmls",setup(P){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:x,toneMapping:M},l=i(null),p=i(null),r=h({wrapperClass:"wrapper",as:"div",center:!0});return(V,j)=>{const _=d("TresCanvas");return m(),f(_,t(c,{"window-size":""}),{default:s(()=>[w,o(a(g)),e("TresMesh",C,[v,y,o(a(n),t(r,{transform:"",occlude:[l.value]}),{default:s(()=>[B]),_:1},16,["occlude"])]),e("TresMesh",{ref_key:"sphereRef",ref:l,position:[4,1,1]},[b,S,o(a(n),t(r,{transform:""}),{default:s(()=>[N]),_:1},16)],512),e("TresMesh",{ref_key:"torusRef",ref:p,position:[7,1,1]},[k,I,o(a(n),t(r,{transform:"",sprite:""}),{default:s(()=>[R]),_:1},16)],512),o(a(n),t({position:[2,-1,1]},r,{transform:"",sprite:""}),{default:s(()=>[G]),_:1},16),D]),_:1},16)}}});export{A as default};
|
||||
import{a0 as u,k as i,a1 as h,r as d,o as m,v as f,D as s,a7 as t,a2 as T,a3 as x,a4 as M,a as o,K as a,ab as g,X as e,al as n}from"./vendor.qAzAwG5n1711373106450.js";const w=e("TresPerspectiveCamera",{position:[3,0,8]},null,-1),C={position:[1,1,1]},v=e("TresBoxGeometry",null,null,-1),y=e("TresMeshNormalMaterial",null,null,-1),B=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),N=e("h1",{class:"bg-white text-xs p-0.5 rounded"}," I'm a Sphere ⭕️ ",-1),k=e("TresTorusGeometry",null,null,-1),I=e("TresMeshNormalMaterial",null,null,-1),R=e("h1",{class:"bg-white text-xs p-0.5 text-fuchsia-500"}," I'm a Sprite 👻 ",-1),G=e("h1",{class:"bg-blue-gray-900 text-xs rounded p-0.5 text-green-100"}," I'm just a Div 🔖 ",-1),D=e("TresAmbientLight",{intensity:1},null,-1),A=u({__name:"htmls",setup(P){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:x,toneMapping:M},l=i(null),p=i(null),r=h({wrapperClass:"wrapper",as:"div",center:!0});return(V,j)=>{const _=d("TresCanvas");return m(),f(_,t(c,{"window-size":""}),{default:s(()=>[w,o(a(g)),e("TresMesh",C,[v,y,o(a(n),t(r,{transform:"",occlude:[l.value]}),{default:s(()=>[B]),_:1},16,["occlude"])]),e("TresMesh",{ref_key:"sphereRef",ref:l,position:[4,1,1]},[b,S,o(a(n),t(r,{transform:""}),{default:s(()=>[N]),_:1},16)],512),e("TresMesh",{ref_key:"torusRef",ref:p,position:[7,1,1]},[k,I,o(a(n),t(r,{transform:"",sprite:""}),{default:s(()=>[R]),_:1},16)],512),o(a(n),t({position:[2,-1,1]},r,{transform:"",sprite:""}),{default:s(()=>[G]),_:1},16),D]),_:1},16)}}});export{A as default};
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user