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: # .gitignore # src/plugins/postProcessing/pages/webglPostProcessing.vue
This commit is contained in:
commit
25df9fe447
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@
|
||||
#因为这两个库从npm包很难下载,且有的下架了
|
||||
#!/node_modules/@alienkitty/
|
||||
#!/node_modules/oimophysics/
|
||||
yarn.lock
|
||||
|
@ -1 +0,0 @@
|
||||
.illustrate1>div:first-of-type{position:relative!important}.illustrate1,.illustrate1 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrate1 .cStyle1{width:15px;height:15px;background-color:rgba(255,255,255,0);border-radius:50%;border:5px solid white}.illustrate1 .cStyle1:before{content:" ";position:relative;top:-134px;left:-19px;width:500px;height:6px;display:block;transform:rotate(328deg);background-color:#fff}.illustrate1 .parallelogram{width:300px;height:30px;color:#fff;position:relative;top:-309px;left:456px;text-align:right;font-size:38px}.illustrate1 .parallelogram span{position:relative;right:18px;top:-30px;font-weight:bolder}.illustrate1 .parallelogram timeDiv{font-size:26px;position:relative;top:-23px;display:block;text-align:left}.illustrate1 .parallelogram:before{content:"";transform:skew(-45deg);background:linear-gradient(45deg,#ff0000d9,#ffff00d9);position:absolute;z-index:-1;top:0;left:0;bottom:0;right:0}.illustrate2>div:first-of-type{position:relative!important}.illustrate2,.illustrate2 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrate2 .cStyle1{width:15px;height:15px;background-color:rgba(255,255,255,0);border-radius:50%;border:5px solid white}.illustrate2 .cStyle1:before{content:" ";position:relative;top:-155px;left:-446px;width:500px;height:6px;display:block;transform:rotate(218deg);background-color:#fff}.illustrate2 .parallelogram{width:360px;height:30px;color:#fff;position:relative;top:-329px;left:-760px;text-align:right;font-size:38px}.illustrate2 .parallelogram span{position:relative;right:18px;top:-30px;font-weight:bolder}.illustrate2 .parallelogram contentDiv{text-align:left;font-size:26px;display:block;margin-top:-19px}.illustrate2 .parallelogram:before{content:"";transform:skew(-45deg);background:linear-gradient(45deg,#5a65fc,#ff00f6);position:absolute;z-index:-1;top:0;left:0;bottom:0;right:0}.illustrateTire>div:first-of-type{position:relative!important}.illustrateTire,.illustrateTire #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrateTire .card{color:#fff;width:22em}.illustrateTire .card .glass{position:absolute;top:0;left:0;width:50%;height:100%;background:rgba(255,255,255,.1)}.illustrateTire .card .card-body{padding:2px 18px;color:#fff}.illustrateTire .card .card-body p{text-indent:2em}.illustrateTire .card:before,.illustrateTire .card:after{position:absolute;content:"";top:-2px;left:-2px;right:-2px;bottom:-2px}.illustrateTire .card:before{z-index:-1;background:#3b0002}.illustrateTire .card:after{--gradientColor1: #fffa80;--gradientColor2: #040c27;--gradientColor3: #ffffff;z-index:-2;background:linear-gradient(235deg,var(--gradientColor1),var(--gradientColor2),var(--gradientColor3));filter:blur(40px);animation:glow 4s linear infinite}.illustrateTireMesh>div:first-of-type{position:relative!important}.illustrateTireMesh,.illustrateTireMesh #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrateTireMesh .card{color:#fff;width:20em}.illustrateTireMesh .card .glass{position:absolute;top:0;left:0;width:50%;height:100%;background:rgba(255,255,255,.1)}.illustrateTireMesh .card .card-body{padding:2px 18px;color:#fff1ae}.illustrateTireMesh .card .card-body p{text-indent:2em}.illustrateTireMesh .card:before,.illustrateTireMesh .card:after{position:absolute;content:"";top:-2px;left:-2px;right:-2px;bottom:-2px}.illustrateTireMesh .card:before{z-index:-1;background:#000}.illustrateTireMesh .card:after{--gradientColor1: #f31d1e;--gradientColor2: #ffffff;--gradientColor3: #ffffa2;z-index:-2;background:linear-gradient(235deg,var(--gradientColor1),var(--gradientColor2),var(--gradientColor3));filter:blur(40px);animation:glow 4s linear infinite}
|
1
dist/css/divIllustrate.tHWbfM2B1706848575142.css
vendored
Normal file
1
dist/css/divIllustrate.tHWbfM2B1706848575142.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.illustrate1>div:first-of-type{position:relative!important}.illustrate1,.illustrate1 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrate1 .cStyle1{width:15px;height:15px;background-color:rgba(255,255,255,0);border-radius:50%;border:5px solid white}.illustrate1 .cStyle1:before{content:" ";position:relative;top:-134px;left:-19px;width:500px;height:6px;display:block;transform:rotate(328deg);background-color:#fff}.illustrate1 .parallelogram{width:300px;height:30px;color:#fff;position:relative;top:-309px;left:456px;text-align:right;font-size:38px}.illustrate1 .parallelogram span{position:relative;right:18px;top:-30px;font-weight:bolder}.illustrate1 .parallelogram timeDiv{font-size:26px;position:relative;top:-23px;display:block;text-align:left}.illustrate1 .parallelogram:before{content:"";transform:skew(-45deg);background:linear-gradient(45deg,rgba(255,0,0,.85),rgba(255,255,0,.85));position:absolute;z-index:-1;top:0;left:0;bottom:0;right:0}.illustrate2>div:first-of-type{position:relative!important}.illustrate2,.illustrate2 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrate2 .cStyle1{width:15px;height:15px;background-color:rgba(255,255,255,0);border-radius:50%;border:5px solid white}.illustrate2 .cStyle1:before{content:" ";position:relative;top:-155px;left:-446px;width:500px;height:6px;display:block;transform:rotate(218deg);background-color:#fff}.illustrate2 .parallelogram{width:360px;height:30px;color:#fff;position:relative;top:-329px;left:-760px;text-align:right;font-size:38px}.illustrate2 .parallelogram span{position:relative;right:18px;top:-30px;font-weight:bolder}.illustrate2 .parallelogram contentDiv{text-align:left;font-size:26px;display:block;margin-top:-19px}.illustrate2 .parallelogram:before{content:"";transform:skew(-45deg);background:linear-gradient(45deg,#5a65fc,#ff00f6);position:absolute;z-index:-1;top:0;left:0;bottom:0;right:0}.illustrateTire>div:first-of-type{position:relative!important}.illustrateTire,.illustrateTire #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrateTire .card{color:#fff;width:22em}.illustrateTire .card .glass{position:absolute;top:0;left:0;width:50%;height:100%;background:rgba(255,255,255,.1)}.illustrateTire .card .card-body{padding:2px 18px;color:#fff}.illustrateTire .card .card-body p{text-indent:2em}.illustrateTire .card:before,.illustrateTire .card:after{position:absolute;content:"";top:-2px;left:-2px;right:-2px;bottom:-2px}.illustrateTire .card:before{z-index:-1;background:#3b0002}.illustrateTire .card:after{--gradientColor1: #fffa80;--gradientColor2: #040c27;--gradientColor3: #ffffff;z-index:-2;background:linear-gradient(235deg,var(--gradientColor1),var(--gradientColor2),var(--gradientColor3));filter:blur(40px);animation:glow 4s linear infinite}.illustrateTireMesh>div:first-of-type{position:relative!important}.illustrateTireMesh,.illustrateTireMesh #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.illustrateTireMesh .card{color:#fff;width:20em}.illustrateTireMesh .card .glass{position:absolute;top:0;left:0;width:50%;height:100%;background:rgba(255,255,255,.1)}.illustrateTireMesh .card .card-body{padding:2px 18px;color:#fff1ae}.illustrateTireMesh .card .card-body p{text-indent:2em}.illustrateTireMesh .card:before,.illustrateTireMesh .card:after{position:absolute;content:"";top:-2px;left:-2px;right:-2px;bottom:-2px}.illustrateTireMesh .card:before{z-index:-1;background:#000}.illustrateTireMesh .card:after{--gradientColor1: #f31d1e;--gradientColor2: #ffffff;--gradientColor3: #ffffa2;z-index:-2;background:linear-gradient(235deg,var(--gradientColor1),var(--gradientColor2),var(--gradientColor3));filter:blur(40px);animation:glow 4s linear infinite}
|
1
dist/css/divSample.f79a269f1706685333825.css
vendored
1
dist/css/divSample.f79a269f1706685333825.css
vendored
@ -1 +0,0 @@
|
||||
.divS1>div:first-of-type{position:relative!important}.divS1{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS1 .boxStyle1{padding:10px;border-left:10px solid #336699;background-image:linear-gradient(132deg,#00336680,#00336610)}.divS2{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS2>div:first-of-type{position:relative!important}.divS2,.divS2 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS2 .poputs_show_cl{opacity:1;position:relative;top:100px;left:60px;padding:8px;background-color:rgba(0,0,0,.58);border-radius:12px;border:1px solid #7af5e06b}.divS2 .oneline{margin:6px 10px;font-size:13px;display:flex}.divS2 .oneline .name{color:#4bd7e6;width:7em;text-align:right}.divS2 .oneline .num_s{width:2em;text-align:center;color:#f7a61f}.divS2 .oneline .num_end{width:2em;text-align:center;color:#08b0dd}
|
1
dist/css/divSample.vSCSchbx1706848575142.css
vendored
Normal file
1
dist/css/divSample.vSCSchbx1706848575142.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.divS1>div:first-of-type{position:relative!important}.divS1{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS1 .boxStyle1{padding:10px;border-left:10px solid #336699;background-image:linear-gradient(132deg,rgba(0,51,102,.5),rgba(0,51,102,.063))}.divS2{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS2>div:first-of-type{position:relative!important}.divS2,.divS2 #inner{-webkit-user-select:none;user-select:none;pointer-events:none!important}.divS2 .poputs_show_cl{opacity:1;position:relative;top:100px;left:60px;padding:8px;background-color:rgba(0,0,0,.58);border-radius:12px;border:1px solid #7af5e06b}.divS2 .oneline{margin:6px 10px;font-size:13px;display:flex}.divS2 .oneline .name{color:#4bd7e6;width:7em;text-align:right}.divS2 .oneline .num_s{width:2em;text-align:center;color:#f7a61f}.divS2 .oneline .num_end{width:2em;text-align:center;color:#08b0dd}
|
@ -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{width:300px;height:300px}svg circle{stroke:#fff}.circle{transform-origin:center}#arc1{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota infinite linear}#arc3{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota infinite linear}#arc4{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota infinite linear reverse}#arc5{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota infinite linear}#arc6{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota infinite linear alternate}#arc7{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota infinite linear reverse}text{fill:#fff;font:700 24px sans-serif}@keyframes rota{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-2fd00402]{font-family:sans-serif}.circleScale[data-v-2fd00402]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-2fd00402]{animation:circleScaleExpandOld-2fd00402 1s ease-in forwards}.circleScaleAnimationNew[data-v-2fd00402]{animation:circleScaleExpandNew-2fd00402 1s ease-out forwards}@keyframes circleScaleExpandOld-2fd00402{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-2fd00402{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-2fd00402]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-2fd00402]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-2fd00402]{background-image:url(/icegl-three-vue-tres/png/heatmap2.5817d32c1706685333825.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-2fd00402]{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{width:300px;height:300px}svg circle{stroke:#fff}.circle{transform-origin:center}#arc1{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota infinite linear}#arc3{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota infinite linear}#arc4{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota infinite linear reverse}#arc5{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota infinite linear}#arc6{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota infinite linear alternate}#arc7{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota infinite linear reverse}text{fill:#fff;font:700 24px sans-serif}@keyframes rota{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-2fd00402]{font-family:sans-serif}.circleScale[data-v-2fd00402]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-2fd00402]{animation:circleScaleExpandOld-2fd00402 1s ease-in forwards}.circleScaleAnimationNew[data-v-2fd00402]{animation:circleScaleExpandNew-2fd00402 1s ease-out forwards}@keyframes circleScaleExpandOld-2fd00402{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-2fd00402{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-2fd00402]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-2fd00402]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-2fd00402]{background-image:url(/icegl-three-vue-tres/png/heatmap2.cUx8f8j51706848575142.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-2fd00402]{list-style:none}
|
1
dist/css/index.53a052091706685333825.css
vendored
1
dist/css/index.53a052091706685333825.css
vendored
File diff suppressed because one or more lines are too long
1
dist/css/index.90eL70MT1706848575142.css
vendored
Normal file
1
dist/css/index.90eL70MT1706848575142.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/vendor.25MBa4FE1706848575142.css
vendored
Normal file
1
dist/css/vendor.25MBa4FE1706848575142.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/vendor.28ba15231706685333825.css
vendored
1
dist/css/vendor.28ba15231706685333825.css
vendored
File diff suppressed because one or more lines are too long
30
dist/index.html
vendored
30
dist/index.html
vendored
@ -1,7 +1,33 @@
|
||||
<!doctype html><html lang="en"><head><script type="module" crossorigin src="/icegl-three-vue-tres/js/polyfills.ee021f4e1706685333825.js"></script><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>TvT.js</title><link rel="shortcut icon" type="image/x-icon" href="./logo.png"><script>var _hmt = _hmt || [];
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<script type="module" crossorigin src="/icegl-three-vue-tres/js/polyfills.DzE7dPh91706848575142.js"></script>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
TvT.js
|
||||
</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./logo.png">
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
const hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?3c442b1ada04ec23771dfc94ea581c10";
|
||||
const s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();</script><script type="module" crossorigin src="/icegl-three-vue-tres/js/index.616e1acc1706685333825.js"></script><link rel="modulepreload" crossorigin href="/icegl-three-vue-tres/js/vendor.7da8be181706685333825.js"><link rel="stylesheet" href="/icegl-three-vue-tres/css/vendor.28ba15231706685333825.css"><link rel="stylesheet" href="/icegl-three-vue-tres/css/index.53a052091706685333825.css"></head><body><div id="app"></div></body></html>
|
||||
})();
|
||||
</script>
|
||||
|
||||
<script type="module" crossorigin src="/icegl-three-vue-tres/js/index.8VMXzOue1706848575142.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/icegl-three-vue-tres/js/vendor.FyjOyGIG1706848575142.js">
|
||||
<link rel="stylesheet" crossorigin href="/icegl-three-vue-tres/css/vendor.25MBa4FE1706848575142.css">
|
||||
<link rel="stylesheet" crossorigin href="/icegl-three-vue-tres/css/index.90eL70MT1706848575142.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div></body>
|
||||
|
||||
</html>
|
@ -1 +0,0 @@
|
||||
import{b3 as p,b4 as y}from"./vendor.7da8be181706685333825.js";function E(i,c=!1){const l=i[0].index!==null,a=new Set(Object.keys(i[0].attributes)),m=new Set(Object.keys(i[0].morphAttributes)),f={},u={},h=i[0].morphTargetsRelative,o=new p;let n=0;for(let e=0;e<i.length;++e){const r=i[e];let s=0;if(l!==(r.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 t in r.attributes){if(!a.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+'. All geometries must have compatible attributes; make sure "'+t+'" attribute exists among all geometries, or in none of them.'),null;f[t]===void 0&&(f[t]=[]),f[t].push(r.attributes[t]),s++}if(s!==a.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(h!==r.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const t in r.morphAttributes){if(!m.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphAttributes must be consistent throughout all geometries."),null;u[t]===void 0&&(u[t]=[]),u[t].push(r.morphAttributes[t])}if(c){let t;if(l)t=r.index.count;else if(r.attributes.position!==void 0)t=r.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;o.addGroup(n,t,e),n+=t}}if(l){let e=0;const r=[];for(let s=0;s<i.length;++s){const t=i[s].index;for(let d=0;d<t.count;++d)r.push(t.getX(d)+e);e+=i[s].attributes.position.count}o.setIndex(r)}for(const e in f){const r=g(f[e]);if(!r)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" attribute."),null;o.setAttribute(e,r)}for(const e in u){const r=u[e][0].length;if(r===0)break;o.morphAttributes=o.morphAttributes||{},o.morphAttributes[e]=[];for(let s=0;s<r;++s){const t=[];for(let b=0;b<u[e].length;++b)t.push(u[e][b][s]);const d=g(t);if(!d)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" morphAttribute."),null;o.morphAttributes[e].push(d)}}return o}function g(i){let c,l,a,m=-1,f=0;for(let n=0;n<i.length;++n){const e=i[n];if(e.isInterleavedBufferAttribute)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. InterleavedBufferAttributes are not supported."),null;if(c===void 0&&(c=e.array.constructor),c!==e.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(l===void 0&&(l=e.itemSize),l!==e.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(a===void 0&&(a=e.normalized),a!==e.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(m===-1&&(m=e.gpuType),m!==e.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;f+=e.array.length}const u=new c(f);let h=0;for(let n=0;n<i.length;++n)u.set(i[n].array,h),h+=i[n].array.length;const o=new y(u,l,a);return m!==void 0&&(o.gpuType=m),o}export{E as m};
|
1
dist/js/BufferGeometryUtils.6nTMTofG1706848575142.js
vendored
Normal file
1
dist/js/BufferGeometryUtils.6nTMTofG1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{b4 as p,b5 as y}from"./vendor.FyjOyGIG1706848575142.js";function T(o,b=!1){const n=o[0].index!==null,a=new Set(Object.keys(o[0].attributes)),c=new Set(Object.keys(o[0].morphAttributes)),m={},l={},h=o[0].morphTargetsRelative,s=new p;let f=0;for(let e=0;e<o.length;++e){const r=o[e];let i=0;if(n!==(r.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 t in r.attributes){if(!a.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+'. All geometries must have compatible attributes; make sure "'+t+'" attribute exists among all geometries, or in none of them.'),null;m[t]===void 0&&(m[t]=[]),m[t].push(r.attributes[t]),i++}if(i!==a.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(h!==r.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const t in r.morphAttributes){if(!c.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+e+". .morphAttributes must be consistent throughout all geometries."),null;l[t]===void 0&&(l[t]=[]),l[t].push(r.morphAttributes[t])}if(b){let t;if(n)t=r.index.count;else if(r.attributes.position!==void 0)t=r.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;s.addGroup(f,t,e),f+=t}}if(n){let e=0;const r=[];for(let i=0;i<o.length;++i){const t=o[i].index;for(let u=0;u<t.count;++u)r.push(t.getX(u)+e);e+=o[i].attributes.position.count}s.setIndex(r)}for(const e in m){const r=g(m[e]);if(!r)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" attribute."),null;s.setAttribute(e,r)}for(const e in l){const r=l[e][0].length;if(r===0)break;s.morphAttributes=s.morphAttributes||{},s.morphAttributes[e]=[];for(let i=0;i<r;++i){const t=[];for(let d=0;d<l[e].length;++d)t.push(l[e][d][i]);const u=g(t);if(!u)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+e+" morphAttribute."),null;s.morphAttributes[e].push(u)}}return s}function g(o){let b,n,a,c=-1,m=0;for(let f=0;f<o.length;++f){const e=o[f];if(b===void 0&&(b=e.array.constructor),b!==e.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(n===void 0&&(n=e.itemSize),n!==e.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(a===void 0&&(a=e.normalized),a!==e.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(c===-1&&(c=e.gpuType),c!==e.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;m+=e.count*n}const l=new b(m),h=new y(l,n,a);let s=0;for(let f=0;f<o.length;++f){const e=o[f];if(e.isInterleavedBufferAttribute){const r=s/n;for(let i=0,t=e.count;i<t;i++)for(let u=0;u<n;u++){const d=e.getComponent(i,u);h.setComponent(i+r,u,d)}}else l.set(e.array,s);s+=e.count*n}return c!==void 0&&(h.gpuType=c),h}export{T as m};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aR as r,aS as t}from"./vendor.7da8be181706685333825.js";import{P as o,F as n}from"./EffectComposer.f39088b61706685333825.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{aS as r,aT as t}from"./vendor.FyjOyGIG1706848575142.js";import{P as o,F as n}from"./EffectComposer.Y8NMOSXa1706848575142.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
1
dist/js/MaskPass.a5e8b12c1706685333825.js
vendored
1
dist/js/MaskPass.a5e8b12c1706685333825.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/MaskPass.af5YNiWj1706848575142.js
vendored
Normal file
1
dist/js/MaskPass.af5YNiWj1706848575142.js
vendored
Normal file
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{co as z,b0 as B,aW as S,cp as G,cq as Y,b_ as V}from"./vendor.7da8be181706685333825.js";class q extends z{constructor(g){super(g),this.type=B}parse(g){const _=function(r,a){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(a||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(a||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(a||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(a||""))}},u="\n",D=function(r,a,t){a=a||1024;let s=r.pos,i=-1,e=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&e<a&&s<r.byteLength;)l+=o,e+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=e+i+1),l+o.slice(0,i)):!1},N=function(r){const a=/^#\?(\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*$/,e={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(a))||_(3,"bad initial token"),e.valid|=1,e.programtype=o[1],e.string+=l+"\n";l=D(r),l!==!1;){if(e.string+=l+"\n",l.charAt(0)==="#"){e.comments+=l+"\n";continue}if((o=l.match(t))&&(e.gamma=parseFloat(o[1])),(o=l.match(n))&&(e.exposure=parseFloat(o[1])),(o=l.match(s))&&(e.valid|=2,e.format=o[1]),(o=l.match(i))&&(e.valid|=4,e.height=parseInt(o[1],10),e.width=parseInt(o[2],10)),e.valid&2&&e.valid&4)break}return e.valid&2||_(3,"missing format specifier"),e.valid&4||_(3,"missing image size specifier"),e},v=function(r,a,t){const n=a;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*a*t);s.length||_(4,"unable to allocate buffer space");let i=0,e=0;const l=4*n,o=new Uint8Array(4),E=new Uint8Array(l);let H=t;for(;H>0&&e<r.byteLength;){e+4>r.byteLength&&_(1),o[0]=r[e++],o[1]=r[e++],o[2]=r[e++],o[3]=r[e++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&e<r.byteLength;){c=r[e++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[e++];for(let U=0;U<c;U++)E[R++]=m}else E.set(r.subarray(e,e+c),R),R+=c,e+=c}const P=n;for(let h=0;h<P;h++){let m=0;s[i]=E[h+m],m+=n,s[i+1]=E[h+m],m+=n,s[i+2]=E[h+m],m+=n,s[i+3]=E[h+m],i+=4}H--}return s},x=function(r,a,t,n){const s=r[a+3],i=Math.pow(2,s-128)/255;t[n+0]=r[a+0]*i,t[n+1]=r[a+1]*i,t[n+2]=r[a+2]*i,t[n+3]=1},C=function(r,a,t,n){const s=r[a+3],i=Math.pow(2,s-128)/255;t[n+0]=G.toHalfFloat(Math.min(r[a+0]*i,65504)),t[n+1]=G.toHalfFloat(Math.min(r[a+1]*i,65504)),t[n+2]=G.toHalfFloat(Math.min(r[a+2]*i,65504)),t[n+3]=G.toHalfFloat(1)},w=new Uint8Array(g);w.pos=0;const d=N(w),f=d.width,k=d.height,y=v(w.subarray(w.pos),f,k);let L,I,p;switch(this.type){case S: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=S;break;case B:p=y.length/4;const a=new Uint16Array(p*4);for(let t=0;t<p;t++)C(y,t*4,a,t*4);L=a,I=B;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:d.string,gamma:d.gamma,exposure:d.exposure,type:I}}setDataType(g){return this.type=g,this}load(g,b,A,F){function M(_,T){switch(_.type){case S:case B:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,M,A,F)}}export{q as R};
|
||||
import{cp as z,b1 as B,aX as S,cq as G,cr as $,b$ as V}from"./vendor.FyjOyGIG1706848575142.js";class q extends z{constructor(g){super(g),this.type=B}parse(g){const _=function(r,a){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(a||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(a||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(a||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(a||""))}},u="\n",D=function(r,a,t){a=a||1024;let s=r.pos,i=-1,e=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&e<a&&s<r.byteLength;)l+=o,e+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=e+i+1),l+o.slice(0,i)):!1},N=function(r){const a=/^#\?(\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*$/,e={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(a))||_(3,"bad initial token"),e.valid|=1,e.programtype=o[1],e.string+=l+"\n";l=D(r),l!==!1;){if(e.string+=l+"\n",l.charAt(0)==="#"){e.comments+=l+"\n";continue}if((o=l.match(t))&&(e.gamma=parseFloat(o[1])),(o=l.match(n))&&(e.exposure=parseFloat(o[1])),(o=l.match(s))&&(e.valid|=2,e.format=o[1]),(o=l.match(i))&&(e.valid|=4,e.height=parseInt(o[1],10),e.width=parseInt(o[2],10)),e.valid&2&&e.valid&4)break}return e.valid&2||_(3,"missing format specifier"),e.valid&4||_(3,"missing image size specifier"),e},v=function(r,a,t){const n=a;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*a*t);s.length||_(4,"unable to allocate buffer space");let i=0,e=0;const l=4*n,o=new Uint8Array(4),E=new Uint8Array(l);let H=t;for(;H>0&&e<r.byteLength;){e+4>r.byteLength&&_(1),o[0]=r[e++],o[1]=r[e++],o[2]=r[e++],o[3]=r[e++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&e<r.byteLength;){c=r[e++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[e++];for(let U=0;U<c;U++)E[R++]=m}else E.set(r.subarray(e,e+c),R),R+=c,e+=c}const P=n;for(let h=0;h<P;h++){let m=0;s[i]=E[h+m],m+=n,s[i+1]=E[h+m],m+=n,s[i+2]=E[h+m],m+=n,s[i+3]=E[h+m],i+=4}H--}return s},x=function(r,a,t,n){const s=r[a+3],i=Math.pow(2,s-128)/255;t[n+0]=r[a+0]*i,t[n+1]=r[a+1]*i,t[n+2]=r[a+2]*i,t[n+3]=1},C=function(r,a,t,n){const s=r[a+3],i=Math.pow(2,s-128)/255;t[n+0]=G.toHalfFloat(Math.min(r[a+0]*i,65504)),t[n+1]=G.toHalfFloat(Math.min(r[a+1]*i,65504)),t[n+2]=G.toHalfFloat(Math.min(r[a+2]*i,65504)),t[n+3]=G.toHalfFloat(1)},w=new Uint8Array(g);w.pos=0;const d=N(w),f=d.width,k=d.height,y=v(w.subarray(w.pos),f,k);let L,I,p;switch(this.type){case S: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=S;break;case B:p=y.length/4;const a=new Uint16Array(p*4);for(let t=0;t<p;t++)C(y,t*4,a,t*4);L=a,I=B;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:d.string,gamma:d.gamma,exposure:d.exposure,type:I}}setDataType(g){return this.type=g,this}load(g,b,A,F){function M(_,T){switch(_.type){case S:case B:_.colorSpace=$,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}b&&b(_,T)}return super.load(g,M,A,F)}}export{q as R};
|
@ -1 +1 @@
|
||||
import{ao as A,bm as k,al as R,aN as z,aO as c,bh as S,bl as W,a_ as B,b0 as H,aS as I,aR as N}from"./vendor.7da8be181706685333825.js";class w extends A{constructor(P,o={}){super(P),this.isReflector=!0,this.type="Reflector",this.camera=new k;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),_=o.textureWidth||512,F=o.textureHeight||512,T=o.clipBias||0,u=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new z,n=new c,i=new c,M=new c,d=new S,v=new c(0,0,-1),r=new W,m=new c,b=new c,f=new W,p=new S,t=this.camera,h=new B(_,F,{samples:j,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:N.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,O,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 C=e.getRenderTarget(),D=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(O,t),e.xr.enabled=D,e.shadowMap.autoUpdate=V,e.setRenderTarget(C);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
||||
import{ap as A,bn as k,am as R,aO as z,aP as c,bi as P,bm as S,a$ as B,b1 as H,aT as I,aS as q}from"./vendor.FyjOyGIG1706848575142.js";class w extends A{constructor(W,o={}){super(W),this.isReflector=!0,this.type="Reflector",this.camera=new k;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),T=o.textureWidth||512,_=o.textureHeight||512,F=o.clipBias||0,u=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new z,n=new c,i=new c,M=new c,d=new P,v=new c(0,0,-1),r=new S,m=new c,b=new c,f=new S,p=new P,t=this.camera,h=new B(T,_,{samples:j,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,O,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-F,a.elements[14]=r.w,l.visible=!1;const C=e.getRenderTarget(),D=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(O,t),e.xr.enabled=D,e.shadowMap.autoUpdate=V,e.setRenderTarget(C);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
@ -1 +1 @@
|
||||
import{be as c,bf as s,bg as m,bh as d,al as t,bi as g,aX as M}from"./vendor.7da8be181706685333825.js";import{d as x}from"./dither.glsl.1a24d3091706685333825.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{bf as c,bg as m,bh as s,bi as d,am as t,bj as g,aY as M}from"./vendor.FyjOyGIG1706848575142.js";import{d as x}from"./dither.glsl.y2WXw1t-1706848575142.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:m,defines:{},uniforms:{tMap:{value:null},tReflect:{value:null},uMapTransform:{value:new s},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
1
dist/js/Water2.Fe0HVd_t1706848575142.js
vendored
Normal file
1
dist/js/Water2.Fe0HVd_t1706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/Water2.bf2708e31706685333825.js
vendored
1
dist/js/Water2.bf2708e31706685333825.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{Z as c,a3 as v,o as l,v as f,C as p,a6 as m,J as o,a7 as u,V as t,a as g,a8 as a,a9 as r,aa as h,aP as _,au as x}from"./vendor.7da8be181706685333825.js";const T="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",V={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},j=t("TresAmbientLight",{color:"#ffffff"},null,-1),C=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),D=["rotation-x"],P=t("TresPlaneGeometry",{args:[400,400]},null,-1),k=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),M=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),L=c({__name:"argestCircle",setup(z){const i={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:T,fragmentShader:y,side:_,blending:x,depthWrite:!1,transparent:!0},{onLoop:d}=v();return d(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,b)=>(l(),f(o(u),m(i,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",V,null,512),g(o(h),a(r(s)),null,16),j,C,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[P,t("TresShaderMaterial",a(r(e)),null,16)],8,D),k,M]),_:1},16))}});export{L as default};
|
||||
import{$ as c,a4 as v,o as l,v as f,D as p,a7 as m,K as o,a8 as u,W as t,a as g,a9 as a,aa as r,ab as h,aQ as _,av as x}from"./vendor.FyjOyGIG1706848575142.js";const T="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",y="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",j={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},D=t("TresAmbientLight",{color:"#ffffff"},null,-1),V=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),k=["rotation-x"],C=t("TresPlaneGeometry",{args:[400,400]},null,-1),M=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),P=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),w=c({__name:"argestCircle",setup(b){const i={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:T,fragmentShader:y,side:_,blending:x,depthWrite:!1,transparent:!0},{onLoop:d}=v();return d(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,z)=>(l(),f(o(u),m(i,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(o(h),a(r(s)),null,16),D,V,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[C,t("TresShaderMaterial",a(r(e)),null,16)],8,k),M,P]),_:1},16))}});export{w as default};
|
1
dist/js/bloomPass.JNqt-kxS1706848575142.js
vendored
Normal file
1
dist/js/bloomPass.JNqt-kxS1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as _,as as E,a5 as L,a4 as M,o as w,v as P,K as c,aL as N,aq as R,aY as T,ap as V,an as k,a_ as y,D as z,a8 as F,a as f,ab as G,W as d}from"./vendor.FyjOyGIG1706848575142.js";import{R as p,E as H}from"./EffectComposer.Y8NMOSXa1706848575142.js";import{U as S}from"./UnrealBloomPass.SBT8vOqL1706848575142.js";import{F as U}from"./FilmPass.4b83xxCF1706848575142.js";const $=_({__name:"bloomPass",setup(v){const{camera:n,renderer:i,scene:g,sizes:s}=E(),l={threshold:0,strength:.972,radius:.21};let e=null;const b=(a,t,m,h,u)=>{const o=new p(a,t),r=new S(new T(h,u),l.strength,l.radius,l.threshold);e=new H(m),e.addPass(o),e.addPass(r)},C=(a,t,m,h,u)=>{let o=new V(new k(1,1,1),new y);o.position.set(0,2,-4),a.add(o);var r=new p(a,t);r.clear=!1,e.addPass(r);const B=new U;e.addPass(B)};L(()=>{s.width.value&&(b(g.value,n.value,i.value,s.width.value,s.height.value),C(new R,n.value,i.value,s.width.value,s.height.value))});const{onLoop:x}=M();return x(()=>{e&&e.render()}),(a,t)=>(w(),P(c(N),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),q=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),A=d("TresAmbientLight",{intensity:1},null,-1),D=d("TresGridHelper",{args:[10,10]},null,-1),j=_({__name:"bloomPass",setup(v){return(n,i)=>(w(),P(c(F),{disableRender:"","window-size":""},{default:z(()=>[q,A,f(c(G)),D,f($)]),_:1}))}});export{j as default};
|
1
dist/js/bloomPass.cb8bf5e71706685333825.js
vendored
1
dist/js/bloomPass.cb8bf5e71706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{Z as _,ar as E,ap as x,a3 as B,o as P,v as w,J as c,aK as V,aX as y,ao as M,am as N,aZ as R,C as T,a7 as k,a as h,aa as z,V as d}from"./vendor.7da8be181706685333825.js";import{R as u,E as F}from"./EffectComposer.f39088b61706685333825.js";import{U as G}from"./UnrealBloomPass.18e211271706685333825.js";import{F as H}from"./FilmPass.60872b0d1706685333825.js";const L=_({__name:"bloomPass",setup(v){const{camera:n,renderer:l,scene:g,sizes:a}=E(),i={threshold:0,strength:.972,radius:.21};let e=null;((s,o,m,f,p)=>{const t=new u(s,o),r=new G(new y(f,p),i.strength,i.radius,i.threshold);e=new F(m),e.addPass(t),e.addPass(r)})(g.value,n.value,l.value,a.width.value,a.height.value),((s,o,m,f,p)=>{let t=new M(new N(1,1,1),new R);t.position.set(0,2,-4),s.add(t);var r=new u(s,o);r.clear=!1,e.addPass(r);const C=new H;e.addPass(C)})(new x,n.value,l.value,a.width.value,a.height.value);const{onLoop:b}=B();return b(()=>{e&&e.render()}),(s,o)=>(P(),w(c(V),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),S=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),U=d("TresAmbientLight",{intensity:1},null,-1),Z=d("TresGridHelper",{args:[10,10]},null,-1),j=_({__name:"bloomPass",setup(v){return(n,l)=>(P(),w(c(k),{disableRender:"","window-size":""},{default:T(()=>[S,U,h(c(z)),Z,h(L)]),_:1}))}});export{j as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/buildings.fc5b0fdb1706685333825.js
vendored
1
dist/js/buildings.fc5b0fdb1706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{Z as _,k as u,ai as f,a5 as w,as as y,$ as p,o as d,v as s,C as h,J as g,W as m}from"./vendor.7da8be181706685333825.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";const X=_({__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,{showBuildings:!1,ref_key:"pagesShowRef",ref:b},{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{X as default};
|
1
dist/js/buildings.oSjBxp7Q1706848575142.js
vendored
Normal file
1
dist/js/buildings.oSjBxp7Q1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as _,k as u,aj as f,a6 as w,at as y,a0 as p,o as d,v as s,D as h,K as g,X as m}from"./vendor.FyjOyGIG1706848575142.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.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,{showBuildings:!1,ref_key:"pagesShowRef",ref:b},{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
dist/js/buildingsEffectA.qz0z38ls1706848575142.js
vendored
Normal file
1
dist/js/buildingsEffectA.qz0z38ls1706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import{Z as c,ai as d,b8 as g,$ as h,ab as y,a4 as b,o,c as z,V as A,a6 as k,J as v,v as r,C as n,ah as f,a as s}from"./vendor.7da8be181706685333825.js";import{_ as w,a as x}from"./radraB.vue_vue_type_script_setup_true_lang.0e47ab6b1706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";const B=["position","scale"],C=["map"],p=c({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(l){let t,i;const e=l,{map:u}=([t,i]=d(()=>g({map:e.img})),t=await t,i(),t),m=h({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),a=y(null);return b(()=>{a.value&&(a.value.geometry=a.value.geometry.clone(),a.value.geometry.translate(e.offset[0],e.offset[1],0))}),(S,$)=>(o(),z("TresSprite",{ref_key:"tsRef",ref:a,position:e.position,scale:e.scale,renderOrder:"99999"},[A("TresSpriteMaterial",k(m,{map:v(u)}),null,16,C)],8,B))}}),J=c({__name:"buildingsMarkA",setup(l){return(t,i)=>(o(),r(_,{ref:"pagesShowRef"},{ability:n(()=>[(o(),r(f,null,{default:n(()=>[s(p,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),s(w,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(o(),r(f,null,{default:n(()=>[s(p,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),s(x,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{J as default};
|
1
dist/js/buildingsMarkA.nu6qVYNT1706848575142.js
vendored
Normal file
1
dist/js/buildingsMarkA.nu6qVYNT1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import{$ as c,aj as d,b9 as g,a0 as h,ac as y,a5 as z,o,c as A,W as b,a7 as k,K as v,v as r,D as n,ai as f,a as s}from"./vendor.FyjOyGIG1706848575142.js";import{_ as w,a as x}from"./radraB.vue_vue_type_script_setup_true_lang.gmCTPAh11706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";const B=["position","scale"],C=["map"],p=c({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(l){let t,i;const e=l,{map:u}=([t,i]=d(()=>g({map:e.img})),t=await t,i(),t),m=h({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),a=y(null);return z(()=>{a.value&&(a.value.geometry=a.value.geometry.clone(),a.value.geometry.translate(e.offset[0],e.offset[1],0))}),(S,$)=>(o(),A("TresSprite",{ref_key:"tsRef",ref:a,position:e.position,scale:e.scale,renderOrder:"99999"},[b("TresSpriteMaterial",k(m,{map:v(u)}),null,16,C)],8,B))}}),W=c({__name:"buildingsMarkA",setup(l){return(t,i)=>(o(),r(_,{ref:"pagesShowRef"},{ability:n(()=>[(o(),r(f,null,{default:n(()=>[s(p,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),s(w,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(o(),r(f,null,{default:n(()=>[s(p,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),s(x,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{W as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/buildingsPassA.hShkzPr71706848575142.js
vendored
Normal file
1
dist/js/buildingsPassA.hShkzPr71706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{Z as g,$ as x,ab as u,ay as D,az as i,o as k,v as y,C,a6 as p,J as h,a7 as M,a0 as f,a1 as F,a2 as T,a as b,aA as w,V as o}from"./vendor.7da8be181706685333825.js";const G=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),A=o("TresGridHelper",{position:[0,-1,0]},null,-1),S=o("TresBoxGeometry",{args:[2,2,2]},null,-1),E=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),N=[S,E],V=o("TresAmbientLight",{intensity:1},null,-1),J=g({__name:"cameraControls",setup(z){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:F,toneMapping:T},n=x({distance:5,minDistance:0,maxDistance:100}),e=u(),r=u(),{pane:l}=D(),d=l.addFolder({title:"距离参数"});d.addBinding(n,"distance",{label:"设置距离",step:.01,min:0,max:100}),d.addBinding(n,"minDistance",{label:"最小距离",step:.01,min:0,max:10}),d.addBinding(n,"maxDistance",{label:"最大距离",step:.01,min:0,max:100});const c=l.addFolder({title:"远近"});c.addButton({title:"(+1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(1,!0)}),c.addButton({title:"(-1)"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.dolly(-1,!0)});const s=l.addFolder({title:"旋转"});s.addButton({title:"Rotate theta 45°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(45*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta -90°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(-90*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate theta 360°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(360*i.DEG2RAD,0,!0)}),s.addButton({title:"Rotate phi 20°"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.rotate(0,20*i.DEG2RAD,!0)}),l.addFolder({title:"移动"}).addButton({title:"对焦到 box of the mesh"}).on("click",()=>{var t,a;(a=(t=e==null?void 0:e.value)==null?void 0:t.value)==null||a.fitToBox(r.value,!0)});function _(){console.log("change")}function v(){console.log("start")}function B(){console.log("end")}return(t,a)=>(k(),y(h(M),p(m,{"window-size":""}),{default:C(()=>[G,b(h(w),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:_,onStart:v,onEnd:B}),null,16),A,o("TresMesh",{ref_key:"boxMeshRef",ref:r},N,512),V]),_:1},16))}});export{J as default};
|
1
dist/js/cameraControls.xKRzQLp91706848575142.js
vendored
Normal file
1
dist/js/cameraControls.xKRzQLp91706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as g,a0 as D,ac as u,az as x,aA as i,o as k,v as M,D as f,a7 as p,K as h,a8 as C,a1 as F,a2 as T,a3 as w,a as y,aB as b,W as o}from"./vendor.FyjOyGIG1706848575142.js";const G=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),A=o("TresGridHelper",{position:[0,-1,0]},null,-1),S=o("TresBoxGeometry",{args:[2,2,2]},null,-1),E=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),N=[S,E],z=o("TresAmbientLight",{intensity:1},null,-1),H=g({__name:"cameraControls",setup(L){const m={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:F,outputColorSpace:T,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 _(){console.log("change")}function B(){console.log("start")}function v(){console.log("end")}return(t,a)=>(k(),M(h(C),p(m,{"window-size":""}),{default:f(()=>[G,y(h(b),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:_,onStart:B,onEnd:v}),null,16),A,o("TresMesh",{ref_key:"boxMeshRef",ref:r},N,512),z]),_:1},16))}});export{H as default};
|
1
dist/js/city2.e4637f471706685333825.js
vendored
1
dist/js/city2.e4637f471706685333825.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/city2.g9_O2fd71706848575142.js
vendored
Normal file
1
dist/js/city2.g9_O2fd71706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/cityRiver.eIsrS-4h1706848575142.js
vendored
Normal file
1
dist/js/cityRiver.eIsrS-4h1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.ewISVdVx1706848575142.js";import{$ as p,aj as w,ak as g,a0 as v,at as y,o,c as b,W as x,K as m,v as n,D as l,a as _,a7 as B,ai as f,ac as R,a5 as C,a4 as $}from"./vendor.FyjOyGIG1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";import"./Water2.Fe0HVd_t1706848575142.js";import"./Reflector.N8cU5Z751706848575142.js";const k={position:[0,0,-2]},j=["object"],G=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=w(()=>g("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,S)=>(o(),b("TresGroup",k,[x("primitive",{object:m(r)},null,8,j),(o(),n(f,null,{default:l(()=>[_(h,B({"position-y":1e-4,waterGeometry:m(a).mesh_0.geometry},s),null,16,["waterGeometry"])]),_:1}))]))}}),D=p({__name:"cityRiver",setup(d){const e=R(null);C(()=>{e.value&&e.value.$refs.perspectiveCameraRef.position.set(4,2.15,3.6)});const{onLoop:t}=$();return t(()=>{e.value&&console.log(e.value.$refs.perspectiveCameraRef)}),(r,a)=>(o(),n(u,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!1,ref_key:"pagesShowRef",ref:e,autoRotate:!1},{ability:l(()=>[(o(),n(f,null,{default:l(()=>[_(G)]),_:1}))]),_:1},512))}});export{D as default};
|
1
dist/js/cityRiver.fc18c1451706685333825.js
vendored
1
dist/js/cityRiver.fc18c1451706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.3bc702461706685333825.js";import{Z as p,ai as w,aj as g,$ as v,as as b,o,c as y,V as x,J as m,v as n,C as l,a as _,a6 as B,ah as f,ab as C,a4 as R,a3 as $}from"./vendor.7da8be181706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";import"./Water2.bf2708e31706685333825.js";import"./Reflector.2ec56a0e1706685333825.js";const V={position:[0,0,-2]},j=["object"],k=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=w(()=>g("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 b({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,G)=>(o(),y("TresGroup",V,[x("primitive",{object:m(r)},null,8,j),(o(),n(f,null,{default:l(()=>[_(h,B({"position-y":1e-4,waterGeometry:m(a).mesh_0.geometry},s),null,16,["waterGeometry"])]),_:1}))]))}}),L=p({__name:"cityRiver",setup(d){const e=C(null);R(()=>{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(()=>[_(k)]),_:1}))]),_:1},512))}});export{L as default};
|
1
dist/js/cityRiver2.8f54c2cf1706685333825.js
vendored
1
dist/js/cityRiver2.8f54c2cf1706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.3bc702461706685333825.js";import{Z as _,ai as h,aj as f,$ as w,as as y,o as a,c as x,V as g,J as c,v as r,C as o,a as l,a6 as B,ah as m}from"./vendor.7da8be181706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";import"./Water2.bf2708e31706685333825.js";import"./Reflector.2ec56a0e1706685333825.js";const C={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},j=["object"],k=_({__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"),(G,$)=>(a(),x("TresGroup",C,[g("primitive",{object:c(n)},null,8,j),(a(),r(m,null,{default:o(()=>[l(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),T=_({__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(k)]),_:1}))]),_:1}))}});export{T as default};
|
1
dist/js/cityRiver2.S7iAHtxs1706848575142.js
vendored
Normal file
1
dist/js/cityRiver2.S7iAHtxs1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.ewISVdVx1706848575142.js";import{$ as _,aj as h,ak as f,a0 as w,at as y,o as a,c as x,W as g,K as c,v as r,D as o,a as l,a7 as B,ai as m}from"./vendor.FyjOyGIG1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";import"./Water2.Fe0HVd_t1706848575142.js";import"./Reflector.N8cU5Z751706848575142.js";const k={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},C=["object"],j=_({__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"),(G,$)=>(a(),x("TresGroup",k,[g("primitive",{object:c(n)},null,8,C),(a(),r(m,null,{default:o(()=>[l(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),V=_({__name:"cityRiver2",setup(p){return(e,s)=>(a(),r(d,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!0},{ability:o(()=>[(a(),r(m,null,{default:o(()=>[l(j)]),_:1}))]),_:1}))}});export{V as default};
|
@ -1 +0,0 @@
|
||||
import{Z as _,k as m,aN as l,aO as o,a4 as f,as as h,o as d,v as g,C as w,J as a,a7 as x,a as I,aa as B,V as e,c as C,E as T,az as i,aP as b,D as k}from"./vendor.7da8be181706685333825.js";const v=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),M=["args"],E=["color","side","clipIntersection"],G=_({__name:"clippingMaterial",setup(L){const s=m(),c=[];for(let n=1;n<30;n+=2)c.push(n);const t=[new l(new o(1,0,0),0),new l(new o(0,-1,0),0),new l(new o(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};f(()=>{if(s.value){let n=s.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new h({title:"裁剪参数",expanded:!0});return r.addBinding(t[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(t[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(t[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,V)=>(d(),g(a(x),{ref_key:"tcRef",ref:s,"window-size":""},{default:w(()=>[v,P,y,I(a(B)),e("TresGroup",null,[(d(),C(k,null,T(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,M),e("TresMeshLambertMaterial",{color:[a(i).randInt(.1,1),a(i).randInt(0,1),a(i).randInt(0,1)],side:a(b),clippingPlanes:t,clipIntersection:u.clipIntersection},null,8,E)])),64))])]),_:1},512))}});export{G as default};
|
1
dist/js/clippingMaterial.lJNZuQzI1706848575142.js
vendored
Normal file
1
dist/js/clippingMaterial.lJNZuQzI1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as _,k as m,aO as l,aP as o,a5 as f,at as h,o as d,v as g,D as w,K as a,a8 as x,a as I,ab as b,W as e,c as B,G as T,aA as i,aQ as k,E as v}from"./vendor.FyjOyGIG1706848575142.js";const C=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),P=e("TresGridHelper",{args:[2,10]},null,-1),L=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),M=["args"],y=["color","side","clipIntersection"],V=_({__name:"clippingMaterial",setup(E){const s=m(),c=[];for(let n=1;n<30;n+=2)c.push(n);const t=[new l(new o(1,0,0),0),new l(new o(0,-1,0),0),new l(new o(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};f(()=>{if(s.value){let n=s.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new h({title:"裁剪参数",expanded:!0});return r.addBinding(t[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(t[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(t[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,G)=>(d(),g(a(x),{ref_key:"tcRef",ref:s,"window-size":""},{default:w(()=>[C,P,L,I(a(b)),e("TresGroup",null,[(d(),B(v,null,T(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,M),e("TresMeshLambertMaterial",{color:[a(i).randInt(.1,1),a(i).randInt(0,1),a(i).randInt(0,1)],side:a(k),clippingPlanes:t,clipIntersection:u.clipIntersection},null,8,y)])),64))])]),_:1},512))}});export{V as default};
|
@ -1 +1 @@
|
||||
import{Z as i,bk as p,ao as l,c6 as m,c7 as r,a4 as f,o as u,c as y,J as d,al as _}from"./vendor.7da8be181706685333825.js";const v=["object"],M=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{M as _};
|
||||
import{$ as i,bl as p,ap as l,c7 as m,c8 as r,a5 as f,o as u,c as y,K as d,am as _}from"./vendor.FyjOyGIG1706848575142.js";const v=["object"],M=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{M as _};
|
@ -1 +1 @@
|
||||
import{aR as h,be as _,cb as M,cc as v,cd as C,ce as T,cf as P,bY as S,cg as N,al as m,b1 as b,ch as x,b9 as E,ba as A,aX as F,aS as R}from"./vendor.7da8be181706685333825.js";import{m as w}from"./BufferGeometryUtils.4dc864dd1706685333825.js";import{P as I,F as G,R as O,E as g,S as U}from"./EffectComposer.f39088b61706685333825.js";import{U as D}from"./UnrealBloomPass.18e211271706685333825.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",L="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",B={name:"OutputShader",uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:"\n precision highp float;\n\n uniform mat4 modelViewMatrix;\n uniform mat4 projectionMatrix;\n\n attribute vec3 position;\n attribute vec2 uv;\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n \n precision highp float;\n\n uniform sampler2D tDiffuse;\n\n #include <tonemapping_pars_fragment>\n #include <colorspace_pars_fragment>\n\n varying vec2 vUv;\n\n void main() {\n\n gl_FragColor = texture2D( tDiffuse, vUv );\n\n // tone mapping\n\n #ifdef LINEAR_TONE_MAPPING\n\n gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );\n\n #elif defined( REINHARD_TONE_MAPPING )\n\n gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );\n\n #elif defined( CINEON_TONE_MAPPING )\n\n gl_FragColor.rgb = OptimizedCineonToneMapping( gl_FragColor.rgb );\n\n #elif defined( ACES_FILMIC_TONE_MAPPING )\n\n gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );\n\n #elif defined( AGX_TONE_MAPPING )\n\n gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );\n\n #endif\n\n // color space\n\n #ifdef SRGB_TRANSFER\n\n gl_FragColor = sRGBTransferOETF( gl_FragColor );\n\n #endif\n\n }"};class Q extends I{constructor(){super();const e=B;this.uniforms=h.clone(e.uniforms),this.material=new _({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new G(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,i){this.uniforms.tDiffuse.value=i.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},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===N&&(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 x({color:new m(c),depthTest:!0,transparent:!0}),Y=o=>{const e=[];o.traverse(a=>{a.isMesh&&(e.push(a.geometry),a.material=V)});const t=w(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 R({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:y,fragmentShader:L,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{Y as r,k as u};
|
||||
import{aS as h,bf as _,cc as M,cd as v,ce as T,cf as C,cg as P,b_ as S,ch as N,am as m,b2 as b,ci as x,ba as E,bb as A,aY as F,aT as w}from"./vendor.FyjOyGIG1706848575142.js";import{m as I}from"./BufferGeometryUtils.6nTMTofG1706848575142.js";import{P as R,F as G,R as O,E as g,S as U}from"./EffectComposer.Y8NMOSXa1706848575142.js";import{U as D}from"./UnrealBloomPass.SBT8vOqL1706848575142.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",L="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}",B={name:"OutputShader",uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:"\n precision highp float;\n\n uniform mat4 modelViewMatrix;\n uniform mat4 projectionMatrix;\n\n attribute vec3 position;\n attribute vec2 uv;\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n \n precision highp float;\n\n uniform sampler2D tDiffuse;\n\n #include <tonemapping_pars_fragment>\n #include <colorspace_pars_fragment>\n\n varying vec2 vUv;\n\n void main() {\n\n gl_FragColor = texture2D( tDiffuse, vUv );\n\n // tone mapping\n\n #ifdef LINEAR_TONE_MAPPING\n\n gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );\n\n #elif defined( REINHARD_TONE_MAPPING )\n\n gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );\n\n #elif defined( CINEON_TONE_MAPPING )\n\n gl_FragColor.rgb = OptimizedCineonToneMapping( gl_FragColor.rgb );\n\n #elif defined( ACES_FILMIC_TONE_MAPPING )\n\n gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );\n\n #elif defined( AGX_TONE_MAPPING )\n\n gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );\n\n #endif\n\n // color space\n\n #ifdef SRGB_TRANSFER\n\n gl_FragColor = sRGBTransferOETF( gl_FragColor );\n\n #endif\n\n }"};class Q extends R{constructor(){super();const e=B;this.uniforms=h.clone(e.uniforms),this.material=new _({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new G(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,i){this.uniforms.tDiffuse.value=i.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},M.getTransfer(this._outputColorSpace)===v&&(this.material.defines.SRGB_TRANSFER=""),this._toneMapping===T?this.material.defines.LINEAR_TONE_MAPPING="":this._toneMapping===C?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===N&&(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 x({color:new m(c),depthTest:!0,transparent:!0}),Y=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:L,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{Y as r,k as u};
|
@ -1 +0,0 @@
|
||||
import{Z as P,ai as L,aj as S,ar as N,b1 as p,a4 as A,a3 as E,al as G,o as z,c as D,J as F}from"./vendor.7da8be181706685333825.js";import{r as H,u as J}from"./device.be71f4211706685333825.js";const O=["object"],Z=P({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(_){let o,u;const t=_,{nodes:a}=([o,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),o=await o,u(),o),v=H(a.Sketchfab_model),{camera:h,renderer:g,scene:s,sizes:f}=N();let n=null,c=null,r=null;const M=new p({color:"black"});A(()=>{if(h.value){s.value.add(v);const{finalComposer:e,effectComposer:l,bloomPass:x}=J(s.value,h.value,g.value,f.width.value,f.height.value);n=e,c=l,r=x,r.threshold=t.threshold,r.strength=t.strength,r.radius=t.radius}t.threshold&&(r.threshold=t.threshold),t.strength&&(r.strength=t.strength),t.radius&&(r.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:B,onAfterLoop:w}=E();let m=.03,d=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),C=d.material.clone(),y=new p({color:new G("red"),transparent:!0,opacity:1});return B(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=m,a.blades_turbine_003.rotation.x+=m),Math.floor(e)%2?d.material=C:d.material=y}),w(({elapsed:e})=>{c&&(s.value.traverse(l=>{b(l)}),c.render(e)),n&&(s.value.traverse(l=>{k(l)}),n.render(e))}),(e,l)=>(z(),D("primitive",{object:F(a).Sketchfab_model},null,8,O))}});export{Z as _};
|
1
dist/js/device.vue_vue_type_script_setup_true_lang.iLxbAb151706848575142.js
vendored
Normal file
1
dist/js/device.vue_vue_type_script_setup_true_lang.iLxbAb151706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as P,aj as L,ak as S,as as N,b2 as _,a5 as A,a4 as E,am as G,o as z,c as D,K as F}from"./vendor.FyjOyGIG1706848575142.js";import{r as H,u as K}from"./device.Uqnl_uKH1706848575142.js";const O=["object"],$=P({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(p){let s,u;const t=p,{nodes:a}=([s,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),s=await s,u(),s),g=H(a.Sketchfab_model),{camera:h,renderer:v,scene:l,sizes:m}=N();let n=null,c=null,r=null;const M=new _({color:"black"});A(()=>{if(h.value){l.value.add(g);const{finalComposer:e,effectComposer:o,bloomPass:x}=K(l.value,h.value,v.value,m.width.value,m.height.value);n=e,c=o,r=x,r.threshold=t.threshold,r.strength=t.strength,r.radius=t.radius}t.threshold&&(r.threshold=t.threshold),t.strength&&(r.strength=t.strength),t.radius&&(r.radius=t.radius)});const i={},k=e=>{(e.isMesh||e.type==="GridHelper"||e.name==="reflectorShaderMesh")&&(i[e.uuid]=e.material,e.material=M)},b=e=>{i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])},{onLoop:B,onAfterLoop:w}=E();let f=.03,d=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),C=d.material.clone(),y=new _({color:new G("red"),transparent:!0,opacity:1});return B(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=f,a.blades_turbine_003.rotation.x+=f),Math.floor(e)%2?d.material=C:d.material=y}),w(({elapsed:e})=>{c&&(l.value.traverse(o=>{k(o)}),c.render(e)),n&&(l.value.traverse(o=>{b(o)}),n.render(e))}),(e,o)=>(z(),D("primitive",{object:F(a).Sketchfab_model},null,8,O))}});export{$ as _};
|
1
dist/js/deviceLight.5a58585c1706685333825.js
vendored
1
dist/js/deviceLight.5a58585c1706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{Z as m,$ as s,a0 as _,a1 as h,a2 as f,as as g,o,v as n,C as i,a6 as B,J as r,a7 as C,a as l,a8 as p,a9 as d,aa as v,ah as w,V as a}from"./vendor.7da8be181706685333825.js";import{_ as S}from"./device.vue_vue_type_script_setup_true_lang.36a93b381706685333825.js";import"./device.be71f4211706685333825.js";import"./BufferGeometryUtils.4dc864dd1706685333825.js";import"./EffectComposer.f39088b61706685333825.js";import"./UnrealBloomPass.18e211271706685333825.js";const x=a("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),T=a("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),b=a("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),P=a("TresGridHelper",{position:[0,-1,0]},null,-1),$=m({__name:"deviceLight",setup(y){const c=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:_,outputColorSpace:h,toneMapping:f,disableRender:!0}),u=s({autoRotate:!0}),e=s({threshold:0,strength:.6,radius:.21}),t=new g({title:"参数"});return t.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),t.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),t.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(M,R)=>(o(),n(r(C),B(c,{"window-size":""}),{default:i(()=>[x,l(r(v),p(d(u)),null,16),T,b,(o(),n(w,null,{default:i(()=>[l(S,p(d(e)),null,16)]),_:1})),P]),_:1},16))}});export{$ as default};
|
1
dist/js/deviceLight.EIEsCm4Q1706848575142.js
vendored
Normal file
1
dist/js/deviceLight.EIEsCm4Q1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as m,a0 as s,a1 as _,a2 as h,a3 as f,at as g,o,v as n,D as i,a7 as B,K as r,a8 as v,a as l,a9 as p,aa as d,ab as w,ai as C,W as a}from"./vendor.FyjOyGIG1706848575142.js";import{_ as S}from"./device.vue_vue_type_script_setup_true_lang.iLxbAb151706848575142.js";import"./device.Uqnl_uKH1706848575142.js";import"./BufferGeometryUtils.6nTMTofG1706848575142.js";import"./EffectComposer.Y8NMOSXa1706848575142.js";import"./UnrealBloomPass.SBT8vOqL1706848575142.js";const b=a("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),x=a("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),T=a("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),P=a("TresGridHelper",{position:[0,-1,0]},null,-1),V=m({__name:"deviceLight",setup(L){const c=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:_,outputColorSpace:h,toneMapping:f,disableRender:!0}),u=s({autoRotate:!0}),e=s({threshold:0,strength:.6,radius:.21}),t=new g({title:"参数"});return t.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),t.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),t.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(M,R)=>(o(),n(r(v),B(c,{"window-size":""}),{default:i(()=>[b,l(r(w),p(d(u)),null,16),x,T,(o(),n(C,null,{default:i(()=>[l(S,p(d(e)),null,16)]),_:1})),P]),_:1},16))}});export{V as default};
|
1
dist/js/deviceLightByComposerTres.6iSJPEnb1706848575142.js
vendored
Normal file
1
dist/js/deviceLightByComposerTres.6iSJPEnb1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as y,aj as E,ak as F,as as G,b2 as w,a5 as V,a4 as j,am as I,o as g,c as K,W as l,K as d,E as O,a0 as _,a1 as W,a2 as X,a3 as q,at as H,v as C,D as M,a7 as J,a8 as Q,a as k,a9 as x,aa as S,ab as U,ai as Y}from"./vendor.FyjOyGIG1706848575142.js";import{r as Z,u as ee}from"./device.Uqnl_uKH1706848575142.js";import"./BufferGeometryUtils.6nTMTofG1706848575142.js";import"./EffectComposer.Y8NMOSXa1706848575142.js";import"./UnrealBloomPass.SBT8vOqL1706848575142.js";const te=["object"],ae=["object"],se=y({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let r,n;const t=v,{nodes:a}=([r,n]=E(()=>F("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,n(),r),i=Z(a.Sketchfab_model),{camera:u,renderer:P,scene:h,sizes:b}=G();let p=null,m=null,s=null;const L=new w({color:"black"});V(()=>{if(u.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(h.value,u.value,P.value,b.width.value,b.height.value);p=e,m=o,s=D,s.threshold=t.threshold,s.strength=t.strength,s.radius=t.radius}t.threshold&&(s.threshold=t.threshold),t.strength&&(s.strength=t.strength),t.radius&&(s.radius=t.radius)});const c={},T=e=>{e.isMesh&&(c[e.uuid]=e.material,e.material=L)},N=e=>{c[e.uuid]&&(e.material=c[e.uuid],delete c[e.uuid])},{onLoop:R,onAfterLoop:$}=j();let B=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),z=f.material.clone(),A=new w({color:new I("red"),transparent:!0,opacity:1});return R(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=B,a.blades_turbine_003.rotation.x+=B),Math.floor(e)%2?f.material=z:f.material=A}),$(({elapsed:e})=>{m&&(h.value.traverse(o=>{T(o)}),m.render(e)),p&&(h.value.traverse(o=>{N(o)}),p.render(e))}),(e,o)=>(g(),K(O,null,[l("primitive",{object:d(a).Sketchfab_model},null,8,te),l("primitive",{object:d(i)},null,8,ae)],64))}}),re=l("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=l("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),le=l("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),he=y({__name:"deviceLightByComposerTres",setup(v){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:W,outputColorSpace:X,toneMapping:q}),n=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new H({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成:等待Tresjs库更新"}),(i,u)=>(g(),C(d(Q),J(r,{"window-size":""}),{default:M(()=>[re,k(d(U),x(S(n)),null,16),oe,le,(g(),C(Y,null,{default:M(()=>[k(se,x(S(t)),null,16)]),_:1}))]),_:1},16))}});export{he as default};
|
@ -1 +0,0 @@
|
||||
import{Z as k,ai as V,aj as E,ar as F,b1 as C,a4 as G,a3 as j,al as I,o as g,c as J,V as l,J as d,D as O,$ as _,a0 as X,a1 as Z,a2 as q,as as H,v as w,C as M,a6 as K,a7 as Q,a as x,a8 as y,a9 as S,aa as U,ah as W}from"./vendor.7da8be181706685333825.js";import{r as Y,u as ee}from"./device.be71f4211706685333825.js";import"./BufferGeometryUtils.4dc864dd1706685333825.js";import"./EffectComposer.f39088b61706685333825.js";import"./UnrealBloomPass.18e211271706685333825.js";const te=["object"],ae=["object"],se=k({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let r,n;const t=v,{nodes:a}=([r,n]=V(()=>E("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,n(),r),i=Y(a.Sketchfab_model),{camera:u,renderer:P,scene:h,sizes:b}=F();let p=null,m=null,s=null;const T=new C({color:"black"});G(()=>{if(u.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(h.value,u.value,P.value,b.width.value,b.height.value);p=e,m=o,s=D,s.threshold=t.threshold,s.strength=t.strength,s.radius=t.radius}t.threshold&&(s.threshold=t.threshold),t.strength&&(s.strength=t.strength),t.radius&&(s.radius=t.radius)});const c={},L=e=>{e.isMesh&&(c[e.uuid]=e.material,e.material=T)},N=e=>{c[e.uuid]&&(e.material=c[e.uuid],delete c[e.uuid])},{onLoop:R,onAfterLoop:$}=j();let B=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),z=f.material.clone(),A=new C({color:new I("red"),transparent:!0,opacity:1});return R(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=B,a.blades_turbine_003.rotation.x+=B),Math.floor(e)%2?f.material=z:f.material=A}),$(({elapsed:e})=>{m&&(h.value.traverse(o=>{L(o)}),m.render(e)),p&&(h.value.traverse(o=>{N(o)}),p.render(e))}),(e,o)=>(g(),J(O,null,[l("primitive",{object:d(a).Sketchfab_model},null,8,te),l("primitive",{object:d(i)},null,8,ae)],64))}}),re=l("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=l("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),le=l("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),he=k({__name:"deviceLightByComposerTres",setup(v){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:X,outputColorSpace:Z,toneMapping:q}),n=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new H({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成:等待Tresjs库更新"}),(i,u)=>(g(),w(d(Q),K(r,{"window-size":""}),{default:M(()=>[re,x(d(U),y(S(n)),null,16),oe,le,(g(),w(W,null,{default:M(()=>[x(se,y(S(t)),null,16)]),_:1}))]),_:1},16))}});export{he as default};
|
@ -1 +0,0 @@
|
||||
import{Z as f,$ as a,a0 as _,a1 as h,a2 as S,o as e,v as t,C as o,a6 as r,J as i,a7 as g,a as s,a8 as n,a9 as p,aa as v,ah as l,V as w}from"./vendor.7da8be181706685333825.js";import{_ as C}from"./device.vue_vue_type_script_setup_true_lang.36a93b381706685333825.js";import{_ as B}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.02a183e11706685333825.js";import"./device.be71f4211706685333825.js";import"./BufferGeometryUtils.4dc864dd1706685333825.js";import"./EffectComposer.f39088b61706685333825.js";import"./UnrealBloomPass.18e211271706685333825.js";import"./ReflectorMaterial.2132d5401706685333825.js";import"./dither.glsl.1a24d3091706685333825.js";import"./OimoPhysicsBuffer.e19123061706685333825.js";const R=w("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),I=f({__name:"deviceLightReflector",setup(x){const c=a({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),m=a({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:_,outputColorSpace:h,toneMapping:S,disableRender:!0}),u=a({autoRotate:!0}),d=a({threshold:.37,strength:1.6,radius:.1});return(M,P)=>(e(),t(i(g),r(m,{"window-size":""}),{default:o(()=>[R,s(i(v),n(p(u)),null,16),(e(),t(l,null,{default:o(()=>[s(C,n(p(d)),null,16)]),_:1})),(e(),t(l,null,{default:o(()=>[s(B,r(c,{position:[0,-1,0]}),null,16)]),_:1}))]),_:1},16))}});export{I as default};
|
1
dist/js/deviceLightReflector.dZ6IHVT11706848575142.js
vendored
Normal file
1
dist/js/deviceLightReflector.dZ6IHVT11706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as f,a0 as a,a1 as _,a2 as h,a3 as S,o as e,v as t,D as o,a7 as s,K as i,a8 as g,a as r,a9 as n,aa as p,ab as v,ai as l,W as w}from"./vendor.FyjOyGIG1706848575142.js";import{_ as C}from"./device.vue_vue_type_script_setup_true_lang.iLxbAb151706848575142.js";import{_ as B}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.m4iIIpwu1706848575142.js";import"./device.Uqnl_uKH1706848575142.js";import"./BufferGeometryUtils.6nTMTofG1706848575142.js";import"./EffectComposer.Y8NMOSXa1706848575142.js";import"./UnrealBloomPass.SBT8vOqL1706848575142.js";import"./ReflectorMaterial.gj2EMZby1706848575142.js";import"./dither.glsl.y2WXw1t-1706848575142.js";import"./OimoPhysicsBuffer.yLRHUH7Y1706848575142.js";const R=w("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),D=f({__name:"deviceLightReflector",setup(x){const c=a({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),m=a({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:_,outputColorSpace:h,toneMapping:S,disableRender:!0}),u=a({autoRotate:!0}),d=a({threshold:.37,strength:1.6,radius:.1});return(M,P)=>(e(),t(i(g),s(m,{"window-size":""}),{default:o(()=>[R,r(i(v),n(p(u)),null,16),(e(),t(l,null,{default:o(()=>[r(C,n(p(d)),null,16)]),_:1})),(e(),t(l,null,{default:o(()=>[r(B,s(c,{position:[0,-1,0]}),null,16)]),_:1}))]),_:1},16))}});export{D as default};
|
@ -1 +0,0 @@
|
||||
import{Z as B,$ as s,as as g,ai as y,a0 as b,a1 as C,a2 as S,o as n,v as l,C as _,a6 as d,J as i,a7 as x,a as k,a8 as P,a9 as T,aa as v,V as c,W as m,ah as R}from"./vendor.7da8be181706685333825.js";import{O as J,l as M,_ as N,a as O}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.330518be1706685333825.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.0d63c5211706685333825.js";import"./BufferGeometryUtils.4dc864dd1706685333825.js";const $=c("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),G=c("TresAmbientLight",{intensity:.5},null,-1),z={position:[0,120,0]},A=c("TresGridHelper",{args:[400,10]},null,-1),L="./plugins/medical/model/brainparts.OBJ",E=B({__name:"digitalBrain",async setup(H){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new g({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 J,p=([r,u]=y(()=>M(L,h)),r=await r,u(),r),f=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:b,outputColorSpace:C,toneMapping:S}),w=s({autoRotate:!0,autoRotateSpeed:2});return(I,W)=>(n(),l(i(x),d(f,{"window-size":""}),{default:_(()=>[$,k(i(v),P(T(w)),null,16),G,c("TresGroup",z,[e.show?(n(),l(V,d({key:0,model:i(p)},e),null,16,["model"])):m("",!0),(n(),l(R,null,{default:_(()=>[o.show?(n(),l(N,d({key:0,model:i(p)},o),null,16,["model"])):m("",!0)]),_:1})),t.show?(n(),l(O,d({key:1,model:i(p)},t),null,16,["model"])):m("",!0)]),A]),_:1},16))}});export{E as default};
|
1
dist/js/digitalBrain.HoSKBWbf1706848575142.js
vendored
Normal file
1
dist/js/digitalBrain.HoSKBWbf1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as B,a0 as s,at as g,aj as b,a1 as y,a2 as S,a3 as C,o as n,v as l,D as _,a7 as d,K as i,a8 as x,a as k,a9 as P,aa as T,ab as v,W as c,X as m,ai as R}from"./vendor.FyjOyGIG1706848575142.js";import{O as M,l as N,_ as O,a as $}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.FlKqokRB1706848575142.js";import{_ as G}from"./cloudPoints.vue_vue_type_script_setup_true_lang.wmTYHtSn1706848575142.js";import"./BufferGeometryUtils.6nTMTofG1706848575142.js";const J=c("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),L=c("TresAmbientLight",{intensity:.5},null,-1),V={position:[0,120,0]},z=c("TresGridHelper",{args:[400,10]},null,-1),A="./plugins/medical/model/brainparts.OBJ",q=B({__name:"digitalBrain",async setup(j){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new g({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 M,p=([r,u]=b(()=>N(A,h)),r=await r,u(),r),f=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:y,outputColorSpace:S,toneMapping:C}),w=s({autoRotate:!0,autoRotateSpeed:2});return(D,H)=>(n(),l(i(x),d(f,{"window-size":""}),{default:_(()=>[J,k(i(v),P(T(w)),null,16),L,c("TresGroup",V,[e.show?(n(),l(G,d({key:0,model:i(p)},e),null,16,["model"])):m("",!0),(n(),l(R,null,{default:_(()=>[o.show?(n(),l(O,d({key:0,model:i(p)},o),null,16,["model"])):m("",!0)]),_:1})),t.show?(n(),l($,d({key:1,model:i(p)},t),null,16,["model"])):m("",!0)]),z]),_:1},16))}});export{q as default};
|
@ -1 +0,0 @@
|
||||
import{Z as S,$ as o,as as C,ai as x,a0 as k,a1 as v,a2 as P,o as n,v as i,C as _,a6 as d,J as l,a7 as R,a as f,a8 as h,a9 as w,aa as T,V as m,W as p,ah as $}from"./vendor.7da8be181706685333825.js";import{O as z,l as J,_ as M,a as N}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.330518be1706685333825.js";import{_ as O}from"./cloudPoints.vue_vue_type_script_setup_true_lang.0d63c5211706685333825.js";import{_ as V}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.0dec57851706685333825.js";import"./BufferGeometryUtils.4dc864dd1706685333825.js";import"./Reflector.2ec56a0e1706685333825.js";const G=m("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),L=m("TresAmbientLight",{intensity:.5},null,-1),A={position:[0,120,0]},F="./plugins/medical/model/brainparts.OBJ",Q=S({__name:"digitalBrainFloor",async setup(I){let r,u;const g=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new C({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 z,c=([r,u]=x(()=>J(F,B)),r=await r,u(),r),y=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:v,toneMapping:P}),b=o({autoRotate:!0,autoRotateSpeed:2});return(W,Z)=>(n(),i(l(R),d(y,{"window-size":""}),{default:_(()=>[G,f(l(T),h(w(b)),null,16),L,m("TresGroup",A,[e.show?(n(),i(O,d({key:0,model:l(c)},e),null,16,["model"])):p("",!0),(n(),i($,null,{default:_(()=>[t.show?(n(),i(M,d({key:0,model:l(c)},t),null,16,["model"])):p("",!0)]),_:1})),s.show?(n(),i(N,d({key:1,model:l(c)},s),null,16,["model"])):p("",!0)]),f(V,h(w(g)),null,16)]),_:1},16))}});export{Q as default};
|
1
dist/js/digitalBrainFloor.y0peYu9Y1706848575142.js
vendored
Normal file
1
dist/js/digitalBrainFloor.y0peYu9Y1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as S,a0 as o,at as C,aj as x,a1 as k,a2 as v,a3 as P,o as n,v as i,D as _,a7 as d,K as l,a8 as R,a as f,a9 as h,aa as w,ab as T,W as m,X as p,ai as $}from"./vendor.FyjOyGIG1706848575142.js";import{O as z,l as L,_ as M,a as N}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.FlKqokRB1706848575142.js";import{_ as O}from"./cloudPoints.vue_vue_type_script_setup_true_lang.wmTYHtSn1706848575142.js";import{_ as G}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.8C4k2hub1706848575142.js";import"./BufferGeometryUtils.6nTMTofG1706848575142.js";import"./Reflector.N8cU5Z751706848575142.js";const J=m("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),V=m("TresAmbientLight",{intensity:.5},null,-1),A={position:[0,120,0]},j="./plugins/medical/model/brainparts.OBJ",Q=S({__name:"digitalBrainFloor",async setup(D){let r,u;const g=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new C({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 z,c=([r,u]=x(()=>L(j,B)),r=await r,u(),r),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:v,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(F,I)=>(n(),i(l(R),d(b,{"window-size":""}),{default:_(()=>[J,f(l(T),h(w(y)),null,16),V,m("TresGroup",A,[e.show?(n(),i(O,d({key:0,model:l(c)},e),null,16,["model"])):p("",!0),(n(),i($,null,{default:_(()=>[t.show?(n(),i(M,d({key:0,model:l(c)},t),null,16,["model"])):p("",!0)]),_:1})),s.show?(n(),i(N,d({key:1,model:l(c)},s),null,16,["model"])):p("",!0)]),f(G,h(w(g)),null,16)]),_:1},16))}});export{Q as default};
|
1
dist/js/divIllustrate.4l7dUpmD1706848575142.js
vendored
Normal file
1
dist/js/divIllustrate.4l7dUpmD1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as i,a0 as c,k as v,r as h,o,v as l,D as a,W as t,a as e,H as g,t as w,a7 as p,K as n,ag as d,c as x,ah as y,E as T,a8 as C,ab as D,ai as m,a9 as S,aa as k}from"./vendor.FyjOyGIG1706848575142.js";import{_ as B}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.m4iIIpwu1706848575142.js";import{_ as F}from"./model.vue_vue_type_script_setup_true_lang.XSJtREnN1706848575142.js";import"./ReflectorMaterial.gj2EMZby1706848575142.js";import"./dither.glsl.y2WXw1t-1706848575142.js";import"./OimoPhysicsBuffer.yLRHUH7Y1706848575142.js";const L=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),P={class:"parallelogram"},b=t("span",null,"🔆 飞机螺旋桨",-1),z=i({__name:"illustratePropeller",setup(_){const s=c({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=v(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,f)=>{const $=h("timeDiv");return o(),l(n(d),p(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[L,t("div",P,[b,e($,null,{default:a(()=>[g("📆: "+w(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=i({__name:"illustrateWing",setup(_){const s=c({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const f=h("contentDiv");return o(),l(n(d),p(s,{position:[-110,180,60]}),{default:a(()=>[E,t("div",I,[M,e(f,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=i({__name:"illustrateTire",setup(_){const s=c({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(o(),l(n(d),p(s,{position:[-120,130,150]}),{default:a(()=>[R]),_:1},16))}}),W=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🛞 飞机轮胎"),t("p",null," 良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。 ")])],-1),G=t("TresBoxGeometry",{args:[106,58,6]},null,-1),H=i({__name:"illustrateTireMesh",setup(_){const s=c({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=v(null);return(u,f)=>(o(),x(T,null,[e(n(d),p(s,{position:[180,30,150]}),{default:a(()=>[W]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[G,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),Y=i({__name:"divIllustrate",setup(_){const s=c({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>(o(),l(n(C),{clearColor:"#333","window-size":""},{default:a(()=>[A,e(n(D)),J,K,(o(),l(m,null,{default:a(()=>[e(F)]),_:1})),(o(),l(m,null,{default:a(()=>[e(B,S(k(s)),null,16)]),_:1})),e(z),e(N),e(V),e(H)]),_:1}))}});export{Y as default};
|
@ -1 +0,0 @@
|
||||
import{Z as i,$ as _,k as v,r as h,o as l,v as o,C as a,V as e,a as t,G as g,t as x,a6 as p,J as n,af as d,c as $,ag as w,D as T,a7 as C,aa as D,ah as m,a8 as S,a9 as P}from"./vendor.7da8be181706685333825.js";import{_ as k}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.02a183e11706685333825.js";import{_ as B}from"./model.vue_vue_type_script_setup_true_lang.6fc1b4151706685333825.js";import"./ReflectorMaterial.2132d5401706685333825.js";import"./dither.glsl.1a24d3091706685333825.js";import"./OimoPhysicsBuffer.e19123061706685333825.js";const F=e("div",{class:"cStyle1 pos-relative text-white"},null,-1),L={class:"parallelogram"},M=e("span",null,"🔆 飞机螺旋桨",-1),V=i({__name:"illustratePropeller",setup(c){const s=_({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=v(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,f)=>{const y=h("timeDiv");return l(),o(n(d),p(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[F,e("div",L,[M,t(y,null,{default:a(()=>[g("📆: "+x(r.value),1)]),_:1})])]),_:1},16)}}});const b=e("div",{class:"cStyle1 pos-relative text-white"},null,-1),z={class:"parallelogram"},G=e("span",null,"🪃 飞机机翼",-1),I=i({__name:"illustrateWing",setup(c){const s=_({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const f=h("contentDiv");return l(),o(n(d),p(s,{position:[-110,180,60]}),{default:a(()=>[b,e("div",z,[G,t(f,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}});const N=e("div",{class:"card pos-relative text-white"},[e("div",{class:"glass"}),e("div",{class:"card-body"},[e("h1",null,"🚀 WJ5E涡桨发动机"),e("p",null," 中功率涡浆,功率2000千瓦,1992年已批量生产。 ")])],-1),R=i({__name:"illustrateTire",setup(c){const s=_({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(l(),o(n(d),p(s,{position:[-120,130,150]}),{default:a(()=>[N]),_:1},16))}});const W=e("div",{class:"card pos-relative text-white"},[e("div",{class:"glass"}),e("div",{class:"card-body"},[e("h1",null,"🛞 飞机轮胎"),e("p",null," 良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。 ")])],-1),E=e("TresBoxGeometry",{args:[106,58,6]},null,-1),J=i({__name:"illustrateTireMesh",setup(c){const s=_({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=v(null);return(u,f)=>(l(),$(T,null,[t(n(d),p(s,{position:[180,30,150]}),{default:a(()=>[W]),_:1},16),e("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[E,t(n(w))],512)],64))}});const A=e("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),H=e("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),Z=e("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),X=i({__name:"divIllustrate",setup(c){const s=_({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>(l(),o(n(C),{clearColor:"#333","window-size":""},{default:a(()=>[A,t(n(D)),H,Z,(l(),o(m,null,{default:a(()=>[t(B)]),_:1})),(l(),o(m,null,{default:a(()=>[t(k,S(P(s)),null,16)]),_:1})),t(V),t(I),t(R),t(J)]),_:1}))}});export{X as default};
|
1
dist/js/divSample.3KAoIEuS1706848575142.js
vendored
Normal file
1
dist/js/divSample.3KAoIEuS1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as i,a0 as l,o as _,v as a,D as c,a9 as r,aa as u,K as e,ag as m,W as s,a8 as v,a as o,ab as g}from"./vendor.FyjOyGIG1706848575142.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=i({__name:"divS1",setup(d){const n=l({wrapperClass:"divS1",as:"div"});return(t,h)=>(_(),a(e(m),r(u(n)),{default:c(()=>[$]),_:1},16))}}),w={class:"poputs_show_cl"},x={class:"oneline"},S=s("div",{class:"name"},"最远距离(km)",-1),C=s("div",{class:"num_s"},"120",-1),I=["src"],j=s("div",{class:"num_end"},"30",-1),U={class:"oneline"},P=s("div",{class:"name"},"切片(层)",-1),b=s("div",{class:"num_s"},"10",-1),k=["src"],B=s("div",{class:"num_end"},"50",-1),T={class:"oneline"},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=i({__name:"divS2",setup(d){const n=l({wrapperClass:"divS2",as:"div"});let t="/icegl-three-vue-tres/";return(h,p)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",w,[s("div",x,[S,C,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,I),j]),s("div",U,[P,b,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,k),B]),s("div",T,[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),L=["src"],R=s("div",{class:"num_end"},"30",-1),W={class:"oneline"},q=s("div",{class:"name"},"切片(层)",-1),A=s("div",{class:"num_s"},"10",-1),E=["src"],H=s("div",{class:"num_end"},"50",-1),J={class:"oneline"},O=s("div",{class:"name"},"最大速度(m/s)",-1),Q=s("div",{class:"num_s"},"12",-1),X=["src"],Y=s("div",{class:"num_end"},"46",-1),Z=i({__name:"divSprite",setup(d){const n=l({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="/icegl-three-vue-tres/";return(h,p)=>(_(),a(e(m),r(u(n)),{default:c(()=>[s("div",D,[s("div",F,[G,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,L),R]),s("div",W,[q,A,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,E),H]),s("div",J,[O,Q,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,X),Y])])]),_:1},16))}}),ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),ns=s("TresMeshNormalMaterial",null,null,-1),is=i({__name:"divSample",setup(d){return(n,t)=>(_(),a(e(v),{clearColor:"#999","window-size":""},{default:c(()=>[ss,o(e(g)),s("TresMesh",es,[ts,ns,o(f),o(V),o(Z)])]),_:1}))}});export{is as default};
|
1
dist/js/divSample.4fdb7f551706685333825.js
vendored
1
dist/js/divSample.4fdb7f551706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{Z as o,$ as l,o as i,v as c,C as a,a8 as r,a9 as u,J as e,af as p,V as s,a7 as h,a as n,aa as g}from"./vendor.7da8be181706685333825.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),S=o({__name:"divS1",setup(d){const _=l({wrapperClass:"divS1",as:"div"});return(t,m)=>(i(),c(e(p),r(u(_)),{default:a(()=>[$]),_:1},16))}});const E={class:"poputs_show_cl"},P={class:"oneline"},f=s("div",{class:"name"},"最远距离(km)",-1),N=s("div",{class:"num_s"},"120",-1),x=["src"],U=s("div",{class:"num_end"},"30",-1),I={class:"oneline"},w=s("div",{class:"name"},"切片(层)",-1),y=s("div",{class:"num_s"},"10",-1),A=["src"],B=s("div",{class:"num_end"},"50",-1),C={class:"oneline"},F=s("div",{class:"name"},"最大速度(m/s)",-1),R=s("div",{class:"num_s"},"12",-1),V=["src"],j=s("div",{class:"num_end"},"46",-1),L=o({__name:"divS2",setup(d){const _=l({wrapperClass:"divS2",as:"div"});let t="/icegl-three-vue-tres/";return(m,v)=>(i(),c(e(p),r(u(_)),{default:a(()=>[s("div",E,[s("div",P,[f,N,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,x),U]),s("div",I,[w,y,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,A),B]),s("div",C,[F,R,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,V),j])])]),_:1},16))}});const k={class:"poputs_show_cl"},D={class:"oneline"},T=s("div",{class:"name"},"最远距离(km)",-1),b=s("div",{class:"num_s"},"120",-1),G=["src"],M=s("div",{class:"num_end"},"30",-1),z={class:"oneline"},O=s("div",{class:"name"},"切片(层)",-1),X=s("div",{class:"num_s"},"10",-1),J=["src"],Z=s("div",{class:"num_end"},"50",-1),q={class:"oneline"},H=s("div",{class:"name"},"最大速度(m/s)",-1),K=s("div",{class:"num_s"},"12",-1),Q=["src"],W=s("div",{class:"num_end"},"46",-1),Y=o({__name:"divSprite",setup(d){const _=l({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="/icegl-three-vue-tres/";return(m,v)=>(i(),c(e(p),r(u(_)),{default:a(()=>[s("div",k,[s("div",D,[T,b,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,G),M]),s("div",z,[O,X,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,J),Z]),s("div",q,[H,K,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,Q),W])])]),_:1},16))}});const ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),_s=s("TresMeshNormalMaterial",null,null,-1),os=o({__name:"divSample",setup(d){return(_,t)=>(i(),c(e(h),{clearColor:"#999","window-size":""},{default:a(()=>[ss,n(e(g)),s("TresMesh",es,[ts,_s,n(S),n(L),n(Y)])]),_:1}))}});export{os as default};
|
17
dist/js/earthA.5be7d46d1706685333825.js
vendored
17
dist/js/earthA.5be7d46d1706685333825.js
vendored
File diff suppressed because one or more lines are too long
17
dist/js/earthA.iaWfuqUM1706848575142.js
vendored
Normal file
17
dist/js/earthA.iaWfuqUM1706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{Z as h,k as n,a4 as p,ar as C,a3 as P,o as v,c as E,a as i,J as u,aK as M,V as e,D as b,aX as R,v as L,C as N,a7 as V,aa as $}from"./vendor.7da8be181706685333825.js";import{R as G,E as z}from"./EffectComposer.f39088b61706685333825.js";import{U as D}from"./UnrealBloomPass.18e211271706685333825.js";const H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),U=e("TresMeshNormalMaterial",null,null,-1),A=[H,U],F=e("TresBoxGeometry",{args:[1,1,1]},null,-1),I=e("TresMeshNormalMaterial",null,null,-1),J=[F,I],K=h({__name:"ecLayers",setup(y){const s=n(),a=n(),o=n();p(()=>{s.value&&s.value.value.layers.set(0),a.value&&a.value.layers.set(1),o.value&&o.value.layers.set(2)});const{camera:r,renderer:l,scene:f,sizes:_}=C(),c={threshold:0,strength:.972,radius:.21};let t=null;((d,m,B,g,w)=>{const T=new G(d,m),k=new D(new R(g,w),c.strength,c.radius,c.threshold);t=new z(B),t.addPass(T),t.addPass(k)})(f.value,r.value,l.value,_.width.value,_.height.value);const{onLoop:x}=P();return x(()=>{t&&r.value&&(l.value.clear(),r.value.layers.set(1),t.render(),l.value.clearDepth(),r.value.layers.set(0),l.value.render(f.value,r.value))}),(d,m)=>(v(),E(b,null,[i(u(M),{ref_key:"normalBox",ref:s,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),e("TresMesh",{ref_key:"shineBox",ref:a,position:[0,2,-4]},A,512),e("TresMesh",{ref_key:"filmBox",ref:o,position:[1,2,3]},J,512)],64))}}),S=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),X=e("TresAmbientLight",{intensity:1},null,-1),Z=e("TresGridHelper",{args:[10,10]},null,-1),W=h({__name:"effectComposerLayers",setup(y){const s=n();return p(()=>{if(s.value){let a=s.value.context.renderer.value;a.autoClear=!1}}),(a,o)=>(v(),L(u(V),{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:N(()=>[S,X,i(u($)),Z,i(K)]),_:1},512))}});export{W as default};
|
1
dist/js/effectComposerLayers.tA3lOTYj1706848575142.js
vendored
Normal file
1
dist/js/effectComposerLayers.tA3lOTYj1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as m,as as P,k as t,a5 as p,a4 as E,o as v,c as L,a as f,K as _,aL as M,W as s,E as b,aY as R,v as $,D as N,a8 as G,ab as V}from"./vendor.FyjOyGIG1706848575142.js";import{R as z,E as D}from"./EffectComposer.Y8NMOSXa1706848575142.js";import{U as H}from"./UnrealBloomPass.SBT8vOqL1706848575142.js";const U=s("TresBoxGeometry",{args:[1,1,1]},null,-1),A=s("TresMeshNormalMaterial",null,null,-1),F=[U,A],I=s("TresBoxGeometry",{args:[1,1,1]},null,-1),K=s("TresMeshNormalMaterial",null,null,-1),S=[I,K],W=m({__name:"ecLayers",setup(y){const{camera:e,renderer:a,scene:o,sizes:l}=P(),n=t(),c=t(),i=t();let r=null;p(()=>{n.value&&n.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),l.width.value&&x(o.value,e.value,a.value,l.width.value,l.height.value)});const u={threshold:0,strength:.972,radius:.21},x=(d,h,g,w,T)=>{const k=new z(d,h),C=new H(new R(w,T),u.strength,u.radius,u.threshold);r=new D(g),r.addPass(k),r.addPass(C)},{onLoop:B}=E();return B(()=>{r&&e.value&&(a.value.clear(),e.value.layers.set(1),r.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(o.value,e.value))}),(d,h)=>(v(),L(b,null,[f(_(M),{ref_key:"normalBox",ref:n,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),s("TresMesh",{ref_key:"shineBox",ref:c,position:[0,2,-4]},F,512),s("TresMesh",{ref_key:"filmBox",ref:i,position:[1,2,3]},S,512)],64))}}),Y=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),j=s("TresAmbientLight",{intensity:1},null,-1),q=s("TresGridHelper",{args:[10,10]},null,-1),X=m({__name:"effectComposerLayers",setup(y){const e=t();return p(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,o)=>(v(),$(_(G),{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:N(()=>[Y,j,f(_(V)),q,f(W)]),_:1},512))}});export{X as default};
|
1
dist/js/effectComposerMultiple.Lxt9Hq0B1706848575142.js
vendored
Normal file
1
dist/js/effectComposerMultiple.Lxt9Hq0B1706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/js/effectComposerShaderPass.HPoK8GMS1706848575142.js
vendored
Normal file
1
dist/js/effectComposerShaderPass.HPoK8GMS1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as x,k as m,as as M,a5 as T,a4 as k,o as g,c as U,W as e,E as D,aY as E,aT as R,v as $,D as L,K as _,a8 as N,a as h,ab as V}from"./vendor.FyjOyGIG1706848575142.js";import{R as F,E as p,S as G}from"./EffectComposer.Y8NMOSXa1706848575142.js";import{U as z}from"./UnrealBloomPass.SBT8vOqL1706848575142.js";const j=e("TresBoxGeometry",{args:[1,1,1]},null,-1),A=e("TresMeshNormalMaterial",null,null,-1),H=[j,A],I=e("TresBoxGeometry",{args:[1,1,1]},null,-1),K=e("TresMeshNormalMaterial",null,null,-1),W=[I,K],Y=x({__name:"ecLayerShaderPass",setup(w){const a=m(),r=m(),{camera:t,renderer:n,scene:f,sizes:c}=M(),d={strength:.572,radius:.51,threshold:0};let v=null,s=null,o=null;const P=(l,i,u,B,S)=>{v=new F(l,i);const C=new z(new E(B,S),d.strength,d.radius,d.threshold);s=new p(u),s.renderToScreen=!1,s.addPass(v),s.addPass(C)},y=l=>{o=new p(l);const i=new R({uniforms:{baseTexture:{value:null},bloomTexture:{value:s.renderTarget2.texture}},vertexShader:"\n varying vec2 vUv;\n void main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",fragmentShader:"\n uniform sampler2D baseTexture;\n uniform sampler2D bloomTexture;\n varying vec2 vUv;\n void main() {\n gl_FragColor = ( vec4( 1.0 ) *texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );\n }\n ",defines:{}}),u=new G(i,"baseTexture");u.needsSwap=!0,o.addPass(v),o.addPass(u)};T(()=>{a.value&&a.value.layers.set(0),r.value&&r.value.layers.set(1),c.width.value&&(P(f.value,t.value,n.value,c.width.value,c.height.value),y(n.value))});const{onLoop:b}=k();return b(()=>{s&&o&&t.value&&(n.value.clear(),t.value.layers.set(1),s.render(),n.value.clearDepth(),t.value.layers.set(0),o.render(f.value,t.value))}),(l,i)=>(g(),U(D,null,[e("TresMesh",{ref_key:"normalBox",ref:a,position:[3,2,1]},H,512),e("TresMesh",{ref_key:"shineBox",ref:r,position:[0,2,-4]},W,512)],64))}}),q=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),J=e("TresAmbientLight",{intensity:1},null,-1),O=e("TresGridHelper",{args:[10,10]},null,-1),ee=x({__name:"effectComposerShaderPass",setup(w){const a=m();return T(()=>{if(a.value){let r=a.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>(g(),$(_(N),{disableRender:"","window-size":"",ref_key:"tcRef",ref:a},{default:L(()=>[q,J,h(_(V)),O,h(Y)]),_:1},512))}});export{ee as default};
|
@ -1 +0,0 @@
|
||||
import{Z as T,k as d,a4 as y,ar as M,a3 as S,o as g,c as k,V as e,D as U,aX as D,aS as E,v as N,C as R,J as h,a7 as V,a as p,aa as F}from"./vendor.7da8be181706685333825.js";import{R as G,E as x,S as $}from"./EffectComposer.f39088b61706685333825.js";import{U as L}from"./UnrealBloomPass.18e211271706685333825.js";const z=e("TresBoxGeometry",{args:[1,1,1]},null,-1),j=e("TresMeshNormalMaterial",null,null,-1),A=[z,j],H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),I=e("TresMeshNormalMaterial",null,null,-1),J=[H,I],X=e("TresBoxGeometry",{args:[1,1,1]},null,-1),Z=e("TresMeshNormalMaterial",null,null,-1),q=[X,Z],K=T({__name:"ecLayerShaderPass",setup(P){const s=d(),r=d(),n=d();y(()=>{s.value&&s.value.layers.set(0),r.value&&r.value.layers.set(1),n.value&&n.value.layers.set(2)});const{camera:t,renderer:l,scene:v,sizes:_}=M(),m={strength:.572,radius:.51,threshold:0};let f=null,a=null,o=null;((i,u,c,B,b)=>{f=new G(i,u);const C=new L(new D(B,b),m.strength,m.radius,m.threshold);a=new x(c),a.renderToScreen=!1,a.addPass(f),a.addPass(C)})(v.value,t.value,l.value,_.width.value,_.height.value),(i=>{o=new x(i);const u=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 $(u,"baseTexture");c.needsSwap=!0,o.addPass(f),o.addPass(c)})(l.value);const{onLoop:w}=S();return w(()=>{a&&o&&t.value&&(l.value.clear(),t.value.layers.set(1),a.render(),l.value.clearDepth(),t.value.layers.set(0),o.render(v.value,t.value))}),(i,u)=>(g(),k(U,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]},J,512),e("TresMesh",{ref_key:"filmBox",ref:n,position:[1,2,3]},q,512)],64))}}),O=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),Q=e("TresAmbientLight",{intensity:1},null,-1),W=e("TresGridHelper",{args:[10,10]},null,-1),te=T({__name:"effectComposerShaderPass",setup(P){const s=d();return y(()=>{if(s.value){let r=s.value.context.renderer.value;r.autoClear=!1}}),(r,n)=>(g(),N(h(V),{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:R(()=>[O,Q,p(h(F)),W,p(K)]),_:1},512))}});export{te as default};
|
1
dist/js/electricFan.93c454fe1706685333825.js
vendored
1
dist/js/electricFan.93c454fe1706685333825.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/electricFan.9fmk1aX01706848575142.js
vendored
Normal file
1
dist/js/electricFan.9fmk1aX01706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/fence.2KHn29BY1706848575142.js
vendored
Normal file
1
dist/js/fence.2KHn29BY1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as C,aQ as M,bJ as y,am as x,a4 as U,a5 as S,o as B,c as k,W as g,K as h,a9 as P,aa as $,k as R,a0 as A,at as T,v as V,D as F,a as _,a7 as j}from"./vendor.FyjOyGIG1706848575142.js";import{_ as D}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";const E={renderOrder:2e3},G=["position","uv"],w=C({__name:"rippleMesh",props:{positionSrc:{default:[{x:0,y:0},{x:10,y:10}]},color:{default:"#ffff00"},opacity:{default:.8},height:{default:100},num:{default:8},speed:{default:.15}},setup(v){const o=v,t={side:M,transparent:!0,depthWrite:!1,depthTest:!0,vertexShader:"\nprecision lowp float;\nprecision lowp int;\n".concat(y.fog_pars_vertex,"\nvarying vec2 vUv;\nvoid main() {\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n ").concat(y.fog_vertex,"\n}\n"),fragmentShader:"\n precision lowp float;\n precision lowp int;\n uniform float time;\n uniform float opacity;\n uniform vec3 color;\n uniform float num;\n uniform float speed;\n varying vec2 vUv;\n void main() {\n vec4 fragColor = vec4(0.);\n float sin = sin((vUv.y - time * speed) * 10. * num);\n float high = 0.92;\n float medium = 0.4;\n if (sin > high) {\n fragColor = vec4(mix(vec3(.8, 1., 1.), color, (1. - sin) / (1. - high)), 1.);\n } else if(sin > medium) {\n fragColor = vec4(color, mix(1., 0., 1.-(sin - medium) / (high - medium)));\n } else {\n fragColor = vec4(color, 0.);\n }\n vec3 fade = mix(color, vec3(0., 0., 0.), vUv.y);\n fragColor = mix(fragColor, vec4(fade, 1.), 0.85);\n gl_FragColor = vec4(fragColor.rgb, fragColor.a * opacity * (1. - vUv.y));\n }\n ",uniforms:{time:{type:"pv2",value:0},color:{type:"uvs",value:new x(o.color)},opacity:{type:"pv2",value:o.opacity},num:{type:"pv2",value:o.num},speed:{type:"pv2",value:o.speed}}};let n=null,u=null;function d(s=[],c){const e=[],i=[];for(let f=0,a=e.length,r=i.length;f<s.length-1;f++){let m=1,l=s[f],p=s[f+1];e[a++]=l.x,e[a++]=0,e[a++]=l.y,i[r++]=0,i[r++]=0,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=l.x,e[a++]=c,e[a++]=l.y,i[r++]=0,i[r++]=m,e[a++]=p.x,e[a++]=0,e[a++]=p.y,i[r++]=1,i[r++]=0,e[a++]=p.x,e[a++]=c,e[a++]=p.y,i[r++]=1,i[r++]=m}n=new Float32Array(e),u=new Float32Array(i)}d(o.positionSrc,o.height);const{onLoop:b}=U();return b(({delta:s})=>{t.uniforms.time.value+=s}),S(()=>{o.color&&(t.uniforms.color.value=new x(o.color)),o.opacity&&(t.uniforms.opacity.value=o.opacity),o.num&&(t.uniforms.num.value=o.num),o.speed&&(t.uniforms.speed.value=o.speed)}),(s,c)=>(B(),k("TresMesh",E,[g("TresBufferGeometry",{position:[h(n),3],uv:[h(u),2]},null,8,G),g("TresShaderMaterial",P($(t)),null,16)]))}}),L=C({__name:"fence",setup(v){const o=R();S(()=>{o.value&&o.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const t=A({color:"#00ffdd",opacity:.8,num:8,speed:.2}),n=new T({title:"围墙效果",expanded:!0});return n.addBinding(t,"color",{label:"颜色"}),n.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.1}),n.addBinding(t,"speed",{label:"滚动速度",min:0,max:1,step:.1}),n.addBinding(t,"num",{label:"条纹数",min:0,max:20,step:1}),(u,d)=>(B(),V(D,{ref_key:"pagesShowRef",ref:o},{ability:F(()=>[_(w,{position:[0,20,0],positionSrc:[{x:-7.3*40,y:4.27*40},{x:-7.4*40,y:10.05*40},{x:-4.9*40,y:10.03*40},{x:-4.9*40,y:4.46*40},{x:-7.3*40,y:4.27*40}],height:180}),_(w,j({position:[0,20,0],positionSrc:[{x:.27*40,y:-1.19*40},{x:.32*40,y:-5.5*40},{x:-7.59*40,y:-5.9*40},{x:-7.6*40,y:-1.3*40},{x:.27*40,y:-1.19*40}]},t),null,16)]),_:1},512))}});export{L as default};
|
1
dist/js/fireA.4oE5qCcL1706848575142.js
vendored
Normal file
1
dist/js/fireA.4oE5qCcL1706848575142.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/fireA.6c6b1f971706685333825.js
vendored
1
dist/js/fireA.6c6b1f971706685333825.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{Z as p,o as l,v as c,C as d,a6 as _,J as e,a7 as u,a0 as h,a2 as m,a,aB as f,aC as g,aD as C,V as s}from"./vendor.7da8be181706685333825.js";const w=s("TresPerspectiveCamera",{position:[0,3,10]},null,-1),B=s("TresGridHelper",{args:[100,100]},null,-1),T=s("TresAmbientLight",{intensity:1},null,-1),M=p({__name:"firstPersonControls",setup(b){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:m},r=o=>console.log(o);return(o,t)=>(l(),c(e(u),_(n,{"window-size":""}),{default:d(()=>[a(e(f)),w,a(e(g),{"make-default":"",onIsLock:t[0]||(t[0]=i=>r(i))}),a(e(C),{"head-bobbing":""}),B,T]),_:1},16))}});export{M as default};
|
||||
import{$ as p,o as l,v as c,D as d,a7 as _,K as e,a8 as u,a1 as h,a3 as m,a,aC as f,aD as g,aE as C,W as s}from"./vendor.FyjOyGIG1706848575142.js";const w=s("TresPerspectiveCamera",{position:[0,3,10]},null,-1),B=s("TresGridHelper",{args:[100,100]},null,-1),T=s("TresAmbientLight",{intensity:1},null,-1),D=p({__name:"firstPersonControls",setup(b){const n={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:h,toneMapping:m},r=o=>console.log(o);return(o,t)=>(l(),c(e(u),_(n,{"window-size":""}),{default:d(()=>[a(e(f)),w,a(e(g),{"make-default":"",onIsLock:t[0]||(t[0]=i=>r(i))}),a(e(C),{"head-bobbing":""}),B,T]),_:1},16))}});export{D as default};
|
1
dist/js/fog.NQ9lp8ZP1706848575142.js
vendored
Normal file
1
dist/js/fog.NQ9lp8ZP1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as i}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import{$ as l,as as d,w as t,o as s,c,X as p,bN as u,am as f,a0 as g,at as m,v as _,D as v,a as x,a9 as h,aa as y}from"./vendor.FyjOyGIG1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.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)}}),N=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{N as default};
|
1
dist/js/fog.d7bd97231706685333825.js
vendored
1
dist/js/fog.d7bd97231706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as i}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import{Z as l,ar as d,w as t,o as s,c,W as p,bL as u,al as f,$ as g,as as m,v as _,C as v,a as x,a8 as h,a9 as y}from"./vendor.7da8be181706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.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 +0,0 @@
|
||||
import{Z as _,k as u,ab as r,w as d,o as h,v as f,C as n,a6 as g,J as s,a7 as M,a0 as m,a1 as T,a2 as w,V as e,a,ag as i,aF as x,aK as y,aP as C,aa as B}from"./vendor.7da8be181706685333825.js";const k=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),v={"position-x":3},R=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),b={position:[0,0,-1]},G=e("TresPlaneGeometry",{args:[3,3]},null,-1),S=["side"],P=e("TresGridHelper",{args:[10,10]},null,-1),D=e("TresAmbientLight",{intensity:1},null,-1),N=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),K=_({__name:"glassMaterial",setup(V){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:m,outputColorSpace:T,toneMapping:w},p=u(),t=r(),o=r();return d(t,l=>{o.value.value.material.dispose(),o.value.value.material=l.MeshGlassMaterialClass}),(l,z)=>(h(),f(s(M),g(c,{ref_key:"context",ref:p,"window-size":""}),{default:n(()=>[k,e("TresMesh",v,[R,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(x),{scale:.5},{default:n(()=>[a(s(i))]),_:1}),a(s(y),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",b,[G,e("TresMeshBasicMaterial",{side:s(C),color:16716049},null,8,S)]),P,D,N,a(s(B))]),_:1},16))}});export{K as default};
|
1
dist/js/glassMaterial.KFHoh1li1706848575142.js
vendored
Normal file
1
dist/js/glassMaterial.KFHoh1li1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as _,k as u,ac as l,w as d,o as h,v as f,D as n,a7 as M,K as s,a8 as g,a1 as m,a2 as T,a3 as w,W as e,a,ah as i,aG as x,aL as y,aQ as C,ab as B}from"./vendor.FyjOyGIG1706848575142.js";const k=e("TresPerspectiveCamera",{position:[3,3,3]},null,-1),v={"position-x":3},G=e("TresTorusKnotGeometry",{args:[1,.4,256,20]},null,-1),R={position:[0,0,-1]},b=e("TresPlaneGeometry",{args:[3,3]},null,-1),S=["side"],D=e("TresGridHelper",{args:[10,10]},null,-1),L=e("TresAmbientLight",{intensity:1},null,-1),N=e("TresDirectionalLight",{intensity:1,position:[2,2,2]},null,-1),K=_({__name:"glassMaterial",setup(P){const c={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:m,outputColorSpace:T,toneMapping:w},p=u(),t=l(),o=l();return d(t,r=>{o.value.value.material.dispose(),o.value.value.material=r.MeshGlassMaterialClass}),(r,z)=>(h(),f(s(g),M(c,{ref_key:"context",ref:p,"window-size":""}),{default:n(()=>[k,e("TresMesh",v,[G,a(s(i),{ref_key:"glassMaterialRef",ref:t},null,512)]),a(s(x),{scale:.5},{default:n(()=>[a(s(i))]),_:1}),a(s(y),{ref_key:"boxRef",ref:o,"position-x":-3},null,512),e("TresMesh",R,[b,e("TresMeshBasicMaterial",{side:s(C),color:16716049},null,8,S)]),D,L,N,a(s(B))]),_:1},16))}});export{K as default};
|
1
dist/js/heatmap.77deebff1706685333825.js
vendored
1
dist/js/heatmap.77deebff1706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{Z as n,$ as o,as as s,o as i,c as r,a as e,C as m,D as p,a6 as l}from"./vendor.7da8be181706685333825.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang.47638f861706685333825.js";import{_ as c}from"./loading.vue_vue_type_script_setup_true_lang.8df3138d1706685333825.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import"./heatmap.1d69ca441706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";const P=n({__name:"heatmap",setup(f){const a=o({show2dCanvas:!0,heightRatio:20,position:[0,20,0],Plane:[1e3,1e3,1e3,1e3]}),t=new s({title:"参数",expanded:!0});return t.addBinding(a,"show2dCanvas",{label:"显示二维图"}),t.addBinding(a,"heightRatio",{label:"高度",min:10,max:100,step:10}),(h,u)=>(i(),r(p,null,[e(c),e(d,null,{ability:m(()=>[e(_,l({ref:"heatmapJSRef"},a),null,16)]),_:1})],64))}});export{P as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/heatmap.q0llJyvY1706848575142.js
vendored
Normal file
1
dist/js/heatmap.q0llJyvY1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as n,a0 as o,at as i,o as s,c as r,a as e,D as m,E as p,a7 as l}from"./vendor.FyjOyGIG1706848575142.js";import{_}from"./heatmapJS.vue_vue_type_script_setup_true_lang.VWIGYBdF1706848575142.js";import{_ as c}from"./loading.vue_vue_type_script_setup_true_lang.k4Uku26o1706848575142.js";import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import"./heatmap.hxgryutn1706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";const P=n({__name:"heatmap",setup(f){const a=o({show2dCanvas:!0,heightRatio:20,position:[0,20,0],Plane:[1e3,1e3,1e3,1e3]}),t=new i({title:"参数",expanded:!0});return t.addBinding(a,"show2dCanvas",{label:"显示二维图"}),t.addBinding(a,"heightRatio",{label:"高度",min:10,max:100,step:10}),(h,u)=>(s(),r(p,null,[e(c),e(d,null,{ability:m(()=>[e(_,l({ref:"heatmapJSRef"},a),null,16)]),_:1})],64))}});export{P as default};
|
1
dist/js/heatmap2.SZ5dWz3J1706848575142.js
vendored
Normal file
1
dist/js/heatmap2.SZ5dWz3J1706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{aA as v,bP as O,k as m,$ as P,bO as V,bi as $,ap as w,a5 as H,o as y,c as _,W as M,K as r,E as U,b4 as D,aT as N,aQ as k,_ as F,a6 as G,ax as R,I as X,J as Y,t as W,Y as z,aj as J,a0 as S,at as K,a as p,D as Q,a7 as B}from"./vendor.FyjOyGIG1706848575142.js";import{_ as q,l as Z,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.QkxAUghq1706848575142.js";import{h as te}from"./heatmap.hxgryutn1706848575142.js";import{r as ae,c as oe,d as ne,a as se}from"./utils.Ec0G75p81706848575142.js";import{m as ie}from"./BufferGeometryUtils.6nTMTofG1706848575142.js";import"./vanilla-307d3a93.esm.TaEyJAm01706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";import"./LineSegments2.PFIor-LT1706848575142.js";import"./Water2.Fe0HVd_t1706848575142.js";import"./Reflector.N8cU5Z751706848575142.js";const T=36,f=-10,C=(o,e)=>o.getValueAt(e)+f,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:v.randInt(1,o._config.width),y:v.randInt(1,o._config.height),value:v.randInt(f,T)}),t++}o.setData({max:T,min:f,data:e})},ce=(o=250,e=250,t=!0)=>{const a=document.createElement("heatmap-canvas");return a.style.position="absolute",t||(a.style.display="none"),a.style.top="0",a.style.left="0",document.body.appendChild(a),te.create({container:a,width:o,height:e,blur:".8",radius:10,gradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"}})},I=O("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=P({__name:"buildingsHeatmap",props:{model:{},opacity:{default:1}},setup(o){(()=>{D.prototype.computeBoundsTree=oe,D.prototype.disposeBoundsTree=ne,w.prototype.raycast=se})();const t=o,a=ce();re(a);const n=new V(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new N({vertexShader:"\n varying vec2 vUv;\n void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n vUv = uv;\n }\n ",fragmentShader:"\n uniform sampler2D heightMap;\n uniform float uOpacity;\n varying vec2 vUv;\n void main() {\n gl_FragColor = vec4(texture2D(heightMap, vUv.xy).rgb, uOpacity);\n }\n ",uniforms:{uOpacity:{value:t.opacity},heightMap:{type:"t",value:s}},depthWrite:!0,depthTest:!0,transparent:!0,side:k}),i=t.model.city.clone();delete i.geometry.attributes.normal,delete i.geometry.attributes.uv;const g=i.geometry.clone().applyMatrix4(i.matrix),l=t.model.land.clone();delete l.geometry.attributes.normal;const b=l.geometry.clone().applyMatrix4(l.matrix),u=ie([g,b]);u.applyMatrix4(new $().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const x=c(n),E=new w(u,x);H(()=>{t.opacity&&(x.uniforms.uOpacity.value=t.opacity)});const d=I(),j=s=>{if(s){const h={x:s.uv.x*a._config.width,y:(1-s.uv.y)*a._config.height};console.log("数值:",s),console.log("数值———:",C(a,h)),d.setTemperature(C(a,h))}},A=s=>{s&&d.$patch({showDiv:!0})},L=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(y(),_(U,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:j,onPointerEnter:A,onPointerLeave:L},null,40,le),M("primitive",{object:t.model.model.children[0].clone()},null,8,ue)],64))}}),me={__name:"dataDiv",setup(o){const e=I(),t=m({top:0,left:0});function a(n){t.value.left=n.clientX+5+"px",t.value.top=n.clientY-20+"px"}return G(()=>{window.addEventListener("mousemove",a)}),R(()=>{window.removeEventListener("mousemove",a)}),(n,c)=>X((y(),_("div",{class:"title",style:z(t.value)},"温度:"+W(r(e).temperature)+"℃ ",5)),[[Y,r(e).showDiv]])}},de=F(me,[["__scopeId","data-v-fac3e7fd"]]),De=P({__name:"heatmap2",async setup(o){let e,t;const a=m(!1),n=([e,t]=J(()=>Z()),e=await e,t(),e);a.value=!0;const c=S({width:1,color:"#000",opacity:1,show:!0}),i=S({opacity:.9});return new K({title:"参数",expanded:!0}).addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1}),(l,b)=>(y(),_(U,null,[p(q,{showBuildings:!1,autoRotate:!1},{ability:Q(()=>[p(pe,B({model:r(n)},i),null,16,["model"]),p(ee,B(c,{builds:r(n).city}),null,16,["builds"])]),_:1}),p(de)],64))}});export{De as default};
|
1
dist/js/heatmap2.c676c3561706685333825.js
vendored
1
dist/js/heatmap2.c676c3561706685333825.js
vendored
@ -1 +0,0 @@
|
||||
import{az as _,bN as A,k as m,Z as P,bM as H,bh as N,ao as w,a4 as $,o as f,c as y,V as M,J as r,D as U,b3 as D,aS as O,aP as X,_ as k,a5 as F,aw as G,H as R,I as z,t as Y,X as J,ai as W,$ as S,as as Z,a as p,C as q,a6 as B}from"./vendor.7da8be181706685333825.js";import{_ as K,l as Q,b as ee}from"./pagesShow.vue_vue_type_script_setup_true_lang.6764079a1706685333825.js";import{h as te}from"./heatmap.1d69ca441706685333825.js";import{r as ae,c as oe,d as ne,a as se}from"./utils.883f09cf1706685333825.js";import{m as ie}from"./BufferGeometryUtils.4dc864dd1706685333825.js";import"./vanilla-307d3a93.esm.911d1b851706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";import"./LineSegments2.502fb1d51706685333825.js";import"./Water2.bf2708e31706685333825.js";import"./Reflector.2ec56a0e1706685333825.js";const C=36,v=-10,T=(o,e)=>o.getValueAt(e)+v,re=(o,e)=>{if(!e){let t=0;for(e=[];t<1e3;)e.push({x:_.randInt(1,o._config.width),y:_.randInt(1,o._config.height),value:_.randInt(v,C)}),t++}o.setData({max:C,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=A("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=P({__name:"buildingsHeatmap",props:{model:{},opacity:{default:1}},setup(o){(()=>{D.prototype.computeBoundsTree=oe,D.prototype.disposeBoundsTree=ne,w.prototype.raycast=se})();const t=o,a=ce();re(a);const n=new H(a._renderer.canvas);n.needsUpdate=!0;const c=s=>new O({vertexShader:"\n varying vec2 vUv;\n void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n vUv = uv;\n }\n ",fragmentShader:"\n uniform sampler2D heightMap;\n uniform float uOpacity;\n varying vec2 vUv;\n void main() {\n gl_FragColor = vec4(texture2D(heightMap, vUv.xy).rgb, uOpacity);\n }\n ",uniforms:{uOpacity:{value:t.opacity},heightMap:{type:"t",value:s}},depthWrite:!0,depthTest:!0,transparent:!0,side:X}),i=t.model.city.clone();delete i.geometry.attributes.normal,delete i.geometry.attributes.uv;const g=i.geometry.clone().applyMatrix4(i.matrix),l=t.model.land.clone();delete l.geometry.attributes.normal;const b=l.geometry.clone().applyMatrix4(l.matrix),u=ie([g,b]);u.applyMatrix4(new N().makeRotationX(Math.PI/2)),ae(u),u.computeBoundsTree();const x=c(n),E=new w(u,x);$(()=>{t.opacity&&(x.uniforms.uOpacity.value=t.opacity)});const d=I(),L=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("数值———:",T(a,h)),d.setTemperature(T(a,h))}},V=s=>{s&&d.$patch({showDiv:!0})},j=s=>{s&&d.setShowDiv(!1)};return(s,h)=>(f(),y(U,null,[M("primitive",{object:r(E),"rotation-x":-Math.PI/2,onPointerMove:L,onPointerEnter:V,onPointerLeave:j},null,40,le),M("primitive",{object:t.model.model.children[0].clone()},null,8,ue)],64))}});const 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((f(),y("div",{class:"title",style:J(t.value)},"温度:"+Y(r(e).temperature)+"℃ ",5)),[[z,r(e).showDiv]])}},de=k(me,[["__scopeId","data-v-fac3e7fd"]]),De=P({__name:"heatmap2",async setup(o){let e,t;const a=m(!1),n=([e,t]=W(()=>Q()),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 Z({title:"参数",expanded:!0}).addBinding(i,"opacity",{label:"透明度",min:0,max:1,step:.1}),(l,b)=>(f(),y(U,null,[p(K,{showBuildings:!1,autoRotate:!1},{ability:q(()=>[p(pe,B({model:r(n)},i),null,16,["model"]),p(ee,B(c,{builds:r(n).city}),null,16,["builds"])]),_:1}),p(de)],64))}});export{De as default};
|
1
dist/js/heatmapExample.KUbGPjZ71706848575142.js
vendored
Normal file
1
dist/js/heatmapExample.KUbGPjZ71706848575142.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{$ as c,k as f,a4 as u,a0 as d,at as h,o as _,v as m,D as g,a7 as n,K as i,a8 as C,a2 as w,c0 as S,a as l,ab as v,W as a}from"./vendor.FyjOyGIG1706848575142.js";import{_ as y}from"./heatmapJS.vue_vue_type_script_setup_true_lang.VWIGYBdF1706848575142.js";import"./heatmap.hxgryutn1706848575142.js";import"./_commonjsHelpers.5-cIlDoe1706848575142.js";const R=a("TresPerspectiveCamera",{position:[21,34,55],fov:60,near:1,far:1e3},null,-1),x=a("TresAmbientLight",{color:"#cccccc",intensity:.4},null,-1),B=a("TresPointLight",{color:"#ffffff",intensity:.8},null,-1),L=a("TresGridHelper",{args:[50,25],position:[0,0,0]},null,-1),G=c({__name:"heatmapExample",setup(P){const p={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:w,shadowMapType:S,useLegacyLights:!0,antialias:!0},t=f();let e=!0;u().onLoop(({elapsed:s})=>{!e&&parseInt(s)%2==1&&(e=!0,t.value&&t.value.setData()),e&&parseInt(s)%2==0&&(e=!1)});const o=d({show2dCanvas:!0,heightRatio:6}),r=new h({title:"参数",expanded:!0});return r.addBinding(o,"show2dCanvas",{label:"显示二维图"}),r.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,T)=>(_(),m(i(C),n(p,{"window-size":""}),{default:g(()=>[R,l(i(v),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,l(y,n({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16))}});export{G as default};
|
@ -1 +0,0 @@
|
||||
import{Z as c,k as f,a3 as u,$ as d,as as h,o as _,v as m,C as g,a6 as r,J as i,a7 as C,a1 as w,b$ as S,a as l,aa as v,V as a}from"./vendor.7da8be181706685333825.js";import{_ as y}from"./heatmapJS.vue_vue_type_script_setup_true_lang.47638f861706685333825.js";import"./heatmap.1d69ca441706685333825.js";import"./_commonjsHelpers.725317a41706685333825.js";const R=a("TresPerspectiveCamera",{position:[21,34,55],fov:60,near:1,far:1e3},null,-1),x=a("TresAmbientLight",{color:"#cccccc",intensity:.4},null,-1),B=a("TresPointLight",{color:"#ffffff",intensity:.8},null,-1),L=a("TresGridHelper",{args:[50,25],position:[0,0,0]},null,-1),V=c({__name:"heatmapExample",setup(P){const p={clearColor:"#030311",shadows:!0,alpha:!1,outputColorSpace:w,shadowMapType:S,useLegacyLights:!0,antialias:!0},t=f();let e=!0;u().onLoop(({elapsed:s})=>{!e&&parseInt(s)%2==1&&(e=!0,t.value&&t.value.setData()),e&&parseInt(s)%2==0&&(e=!1)});const o=d({show2dCanvas:!0,heightRatio:6}),n=new h({title:"参数",expanded:!0});return n.addBinding(o,"show2dCanvas",{label:"显示二维图"}),n.addBinding(o,"heightRatio",{label:"高度",min:1,max:10,step:1}),(s,T)=>(_(),m(i(C),r(p,{"window-size":""}),{default:g(()=>[R,l(i(v),{autoRotate:!0,autoRotateSpeed:2}),x,B,L,l(y,r({ref_key:"heatmapJSRef",ref:t},o),null,16)]),_:1},16))}});export{V as default};
|
@ -1 +1 @@
|
||||
import{Z as d,bM as m,aP as g,a4 as f,o as y,c as x,V as u,a8 as _,a9 as M}from"./vendor.7da8be181706685333825.js";import{h as R}from"./heatmap.1d69ca441706685333825.js";const b=["position"],w=["args","rotate-x"],C=d({__name:"heatmapJS",props:{position:{default:[0,0,0]},Plane:{default:[50,50,1e3,1e3]},show2dCanvas:{type:Boolean,default:!0},heightRatio:{default:6}},setup(p,{expose:c}){const a=p;let i=null;const s=(t,o)=>Math.round((Math.random()*(t-o+1)+o)*10)/10;let e=null;const v=()=>(e=document.createElement("heatmap-canvas"),e.width=100,e.height=100,e.style.position="absolute",e.style.top="0",e.style.left="0",document.body.appendChild(e),i=R.create({container:e,width:256,height:256,blur:".8",radius:10}),i),r=t=>{if(!t){let h=0;for(t=[];h<2e3;)t.push({x:s(1,256),y:s(1,256),value:s(1,6)}),h++}i.setData({max:12,data:t}),n.needsUpdate=!0},n=new m(v()._renderer.canvas);r();const l={transparent:!0,side:g,vertexShader:"\n uniform sampler2D heightMap;\n uniform float heightRatio;\n varying vec2 vUv;\n varying float hValue;\n varying vec3 cl;\n void main() {\n vUv = uv;\n vec3 pos = position;\n cl = texture2D(heightMap, vUv).rgb;\n hValue = texture2D(heightMap, vUv).r;\n pos.y = hValue * heightRatio;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos,1.0);\n }",fragmentShader:"\n varying float hValue;\n varying vec3 cl;\n void main() {\n float v = abs(hValue - 1.);\n gl_FragColor = vec4(cl, .8 - v * v*1.1) ; \n }",uniforms:{heightMap:{type:"t",value:n},heightRatio:{value:a.heightRatio}}};return f(()=>{e.style.display="".concat(a.show2dCanvas?"block":"none"),a.heightRatio&&(l.uniforms.heightRatio.value=a.heightRatio)}),c({setData:r}),(t,o)=>(y(),x("TresMesh",{position:a.position},[u("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,w),u("TresShaderMaterial",_(M(l)),null,16)],8,b))}});export{C as _};
|
||||
import{$ as d,bO as m,aQ as g,a5 as f,o as y,c as x,W as u,a9 as _,aa as M}from"./vendor.FyjOyGIG1706848575142.js";import{h as R}from"./heatmap.hxgryutn1706848575142.js";const b=["position"],w=["args","rotate-x"],C=d({__name:"heatmapJS",props:{position:{default:[0,0,0]},Plane:{default:[50,50,1e3,1e3]},show2dCanvas:{type:Boolean,default:!0},heightRatio:{default:6}},setup(p,{expose:c}){const a=p;let i=null;const s=(t,o)=>Math.round((Math.random()*(t-o+1)+o)*10)/10;let e=null;const v=()=>(e=document.createElement("heatmap-canvas"),e.width=100,e.height=100,e.style.position="absolute",e.style.top="0",e.style.left="0",document.body.appendChild(e),i=R.create({container:e,width:256,height:256,blur:".8",radius:10}),i),r=t=>{if(!t){let h=0;for(t=[];h<2e3;)t.push({x:s(1,256),y:s(1,256),value:s(1,6)}),h++}i.setData({max:12,data:t}),n.needsUpdate=!0},n=new m(v()._renderer.canvas);r();const l={transparent:!0,side:g,vertexShader:"\n uniform sampler2D heightMap;\n uniform float heightRatio;\n varying vec2 vUv;\n varying float hValue;\n varying vec3 cl;\n void main() {\n vUv = uv;\n vec3 pos = position;\n cl = texture2D(heightMap, vUv).rgb;\n hValue = texture2D(heightMap, vUv).r;\n pos.y = hValue * heightRatio;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos,1.0);\n }",fragmentShader:"\n varying float hValue;\n varying vec3 cl;\n void main() {\n float v = abs(hValue - 1.);\n gl_FragColor = vec4(cl, .8 - v * v*1.1) ; \n }",uniforms:{heightMap:{type:"t",value:n},heightRatio:{value:a.heightRatio}}};return f(()=>{e.style.display="".concat(a.show2dCanvas?"block":"none"),a.heightRatio&&(l.uniforms.heightRatio.value=a.heightRatio)}),c({setData:r}),(t,o)=>(y(),x("TresMesh",{position:a.position},[u("TresPlaneGeometry",{args:a.Plane,"rotate-x":-Math.PI*.5},null,8,w),u("TresShaderMaterial",_(M(l)),null,16)],8,b))}});export{C as _};
|
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