mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
Merge branch 'goViewPlugin' into online
# Conflicts: # .fes.js
This commit is contained in:
commit
e6884ca7d8
45
.fes.js
45
.fes.js
@ -4,10 +4,10 @@
|
||||
* @Autor: 地虎降天龙
|
||||
* @Date: 2023-10-16 10:53:09
|
||||
* @LastEditors: 地虎降天龙
|
||||
* @LastEditTime: 2024-03-25 21:24:53
|
||||
* @LastEditTime: 2024-05-28 15:19:04
|
||||
*/
|
||||
// import { resolve } from 'path';
|
||||
import { join } from 'path';
|
||||
import { join } from 'path'
|
||||
import { defineBuildConfig } from '@fesjs/fes'
|
||||
import { templateCompilerOptions } from '@tresjs/core'
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
@ -15,8 +15,11 @@ import UnoCSS from 'unocss/vite'
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import glsl from 'vite-plugin-glsl'
|
||||
|
||||
|
||||
const timeStamp = new Date().getTime()
|
||||
const combinedIsCustomElement = (tag) => {
|
||||
return tag.startsWith('iconify-icon') || templateCompilerOptions.template.compilerOptions.isCustomElement(tag)
|
||||
}
|
||||
|
||||
export default defineBuildConfig({
|
||||
title: 'TvT.js',
|
||||
publicPath: './',
|
||||
@ -37,15 +40,19 @@ export default defineBuildConfig({
|
||||
},
|
||||
//add by 地虎降天龙
|
||||
viteVuePlugin: {
|
||||
...templateCompilerOptions,
|
||||
template: {
|
||||
compilerOptions: {
|
||||
isCustomElement: (tag) => combinedIsCustomElement(tag),
|
||||
},
|
||||
},
|
||||
},
|
||||
viteOption: {
|
||||
base: "./", // ./ /icegl-three-vue-tres/
|
||||
base: './', // ./ /icegl-three-vue-tres/
|
||||
plugins: [
|
||||
UnoCSS({
|
||||
/* options */
|
||||
}),
|
||||
glsl()
|
||||
glsl(),
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
@ -54,24 +61,22 @@ export default defineBuildConfig({
|
||||
entryFileNames: `js/[name].[hash]${timeStamp}.js`,
|
||||
assetFileNames: `[ext]/[name].[hash]${timeStamp}.[ext]`,
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
// 全局 css 注册
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
javascriptEnabled: true,
|
||||
additionalData: `@import "src/plugins/goView/lib/scss/style.scss";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: "0.0.0.0"
|
||||
host: '0.0.0.0',
|
||||
},
|
||||
// server: {
|
||||
// host: "0.0.0.0",
|
||||
// proxy: {
|
||||
// '/cosv2': {
|
||||
// target: 'https://opensource-1314935952.cos.ap-nanjing.myqcloud.com',
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/cosv2/, '')
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
},
|
||||
alias: { PLS: join(__dirname, './src/plugins') },
|
||||
// { find: 'pls', replacement: resolve(__dirname, './src/plugins') },
|
||||
// { '@': join(__dirname, '/src') }
|
||||
});
|
||||
|
||||
})
|
||||
|
@ -55,8 +55,7 @@
|
||||
|
||||
## 🏕 点击预览:[🌏opensource.icegl.cn](https://opensource.icegl.cn)
|
||||
|
||||
- 如果访问太慢,请访问镜像站点:[🌏 ice-gl.gitee.io/icegl-three-vue-tres](https://ice-gl.gitee.io/icegl-three-vue-tres/)
|
||||
- 如果还不行,来镜像站点 2:[🌏 http://myhome.217dan.com:8899](http://myhome.217dan.com:8899/)
|
||||
- 如果访问太慢,请访问镜像站点:[🌏 http://myhome.217dan.com:8899](http://myhome.217dan.com:8899/)
|
||||
- 如果有条件翻墙,也可直接访问 github 的镜像站:[🌏 https://hawk86104.github.io](https://hawk86104.github.io/)
|
||||
|
||||
```shell
|
||||
|
1
dist/css/alternator.Y-tjurcg1716880795474.css
vendored
Normal file
1
dist/css/alternator.Y-tjurcg1716880795474.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
.svgCom>div:first-of-type{position:relative!important}.svgCom,.svgCom #outer{-webkit-user-select:none;user-select:none;pointer-events:none!important}.svgCom #outer #inner{cursor:pointer;-webkit-user-select:none;user-select:none}svg[data-v-a8e199ed]{width:300px;height:300px}svg circle[data-v-a8e199ed]{stroke:#fff}.circle[data-v-a8e199ed]{transform-origin:center}#arc1[data-v-a8e199ed]{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota-a8e199ed infinite linear}#arc3[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota-a8e199ed infinite linear}#arc4[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota-a8e199ed infinite linear reverse}#arc5[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear}#arc6[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota-a8e199ed infinite linear alternate}#arc7[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear reverse}text[data-v-a8e199ed]{fill:#fff;font:700 24px sans-serif}@keyframes rota-a8e199ed{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-fd782587]{font-family:sans-serif}.circleScale[data-v-fd782587]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-fd782587]{animation:circleScaleExpandOld-fd782587 1s ease-in forwards}.circleScaleAnimationNew[data-v-fd782587]{animation:circleScaleExpandNew-fd782587 1s ease-out forwards}@keyframes circleScaleExpandOld-fd782587{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-fd782587{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-fd782587]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-fd782587]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-fd782587]{background-image:url(../png/heatmap2.cUx8f8j51716546362088.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-fd782587]{list-style:none}
|
||||
.svgCom>div:first-of-type{position:relative!important}.svgCom,.svgCom #outer{-webkit-user-select:none;user-select:none;pointer-events:none!important}.svgCom #outer #inner{cursor:pointer;-webkit-user-select:none;user-select:none}svg[data-v-a8e199ed]{width:300px;height:300px}svg circle[data-v-a8e199ed]{stroke:#fff}.circle[data-v-a8e199ed]{transform-origin:center}#arc1[data-v-a8e199ed]{stroke-dasharray:30;stroke-dashoffset:18;animation:10s -2s rota-a8e199ed infinite linear}#arc3[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:16s 1s rota-a8e199ed infinite linear}#arc4[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:6s 1s rota-a8e199ed infinite linear reverse}#arc5[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear}#arc6[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:8s 1s rota-a8e199ed infinite linear alternate}#arc7[data-v-a8e199ed]{stroke-dasharray:400;stroke-dashoffset:400;animation:4s 1s rota-a8e199ed infinite linear reverse}text[data-v-a8e199ed]{fill:#fff;font:700 24px sans-serif}@keyframes rota-a8e199ed{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#app{width:100%;height:100vh}*[data-v-fd782587]{font-family:sans-serif}.circleScale[data-v-fd782587]{position:relative;top:12%;left:16%;width:50px;height:50px;border-radius:50%;opacity:.66}.circleScaleAnimationOld[data-v-fd782587]{animation:circleScaleExpandOld-fd782587 1s ease-in forwards}.circleScaleAnimationNew[data-v-fd782587]{animation:circleScaleExpandNew-fd782587 1s ease-out forwards}@keyframes circleScaleExpandOld-fd782587{0%{transform:scale(.1)}to{transform:scale(80.1)}}@keyframes circleScaleExpandNew-fd782587{0%{transform:scale(0)}to{transform:scale(80)}}.title[data-v-fd782587]{margin-top:-120px;font-family:Bebas Neue,cursive;font-size:128px}@media (max-width: 768px){.title[data-v-fd782587]{margin-top:20px;font-size:64px}}.landingpage-bg[data-v-fd782587]{background-image:url(../png/heatmap2.cUx8f8j51716880795474.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-fd782587]{list-style:none}
|
1
dist/css/index.33gdpkzs1716880795474.css
vendored
Normal file
1
dist/css/index.33gdpkzs1716880795474.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/index.R_Y-jbJB1716546362088.css
vendored
1
dist/css/index.R_Y-jbJB1716546362088.css
vendored
File diff suppressed because one or more lines are too long
1
dist/css/index.n89Rzx1f1716880795474.css
vendored
Normal file
1
dist/css/index.n89Rzx1f1716880795474.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/index.p_DH0T_O1716880795474.css
vendored
Normal file
1
dist/css/index.p_DH0T_O1716880795474.css
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/css/starLoading.EKgu18cP1716880795474.css
vendored
Normal file
1
dist/css/starLoading.EKgu18cP1716880795474.css
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/index.html
vendored
10
dist/index.html
vendored
@ -3,7 +3,7 @@
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<script type="module" crossorigin src="./js/polyfills.mpTx87Dq1716546362088.js"></script>
|
||||
<script type="module" crossorigin src="./js/polyfills.Jo1ymV2c1716880795474.js"></script>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@ -21,10 +21,10 @@
|
||||
})();
|
||||
</script>
|
||||
|
||||
<script type="module" crossorigin src="./js/index.auM0IxDu1716546362088.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor.LnRgd2r_1716546362088.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.CprfJ2VR1716546362088.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.R_Y-jbJB1716546362088.css">
|
||||
<script type="module" crossorigin src="./js/index.2tEw-nFV1716880795474.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor.9G8CKric1716880795474.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.CprfJ2VR1716880795474.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.p_DH0T_O1716880795474.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
1
dist/js/110000.Sj0kxFeI1716880795474.js
vendored
Normal file
1
dist/js/110000.Sj0kxFeI1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/120000.S8b7nuvn1716880795474.js
vendored
Normal file
1
dist/js/120000.S8b7nuvn1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/130000.2mwWjViL1716880795474.js
vendored
Normal file
1
dist/js/130000.2mwWjViL1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/140000.AtT46QEl1716880795474.js
vendored
Normal file
1
dist/js/140000.AtT46QEl1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/150000.m22Z8ie51716880795474.js
vendored
Normal file
1
dist/js/150000.m22Z8ie51716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/210000.nN70Vz-H1716880795474.js
vendored
Normal file
1
dist/js/210000.nN70Vz-H1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/220000.tMtLI3pQ1716880795474.js
vendored
Normal file
1
dist/js/220000.tMtLI3pQ1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/230000.JE6oLLcO1716880795474.js
vendored
Normal file
1
dist/js/230000.JE6oLLcO1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/310000.wbOouyUY1716880795474.js
vendored
Normal file
1
dist/js/310000.wbOouyUY1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/320000.jK_K9tRF1716880795474.js
vendored
Normal file
1
dist/js/320000.jK_K9tRF1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/330000._KfvdCUb1716880795474.js
vendored
Normal file
1
dist/js/330000._KfvdCUb1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/340000.b08IJLC31716880795474.js
vendored
Normal file
1
dist/js/340000.b08IJLC31716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/350000.455t41v11716880795474.js
vendored
Normal file
1
dist/js/350000.455t41v11716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/360000.5oiIPmaM1716880795474.js
vendored
Normal file
1
dist/js/360000.5oiIPmaM1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/370000.JqDHx-ki1716880795474.js
vendored
Normal file
1
dist/js/370000.JqDHx-ki1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/410000.az9N9iIH1716880795474.js
vendored
Normal file
1
dist/js/410000.az9N9iIH1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/420000.xbbaOfvm1716880795474.js
vendored
Normal file
1
dist/js/420000.xbbaOfvm1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/430000.Up_Euwuq1716880795474.js
vendored
Normal file
1
dist/js/430000.Up_Euwuq1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/440000.OILLGCpL1716880795474.js
vendored
Normal file
1
dist/js/440000.OILLGCpL1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/450000.EI0PxeiK1716880795474.js
vendored
Normal file
1
dist/js/450000.EI0PxeiK1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/460000.wG-SDkJ11716880795474.js
vendored
Normal file
1
dist/js/460000.wG-SDkJ11716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/500000.CfMMEIi71716880795474.js
vendored
Normal file
1
dist/js/500000.CfMMEIi71716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/510000.rXupgZDe1716880795474.js
vendored
Normal file
1
dist/js/510000.rXupgZDe1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/520000.1kqAiQNS1716880795474.js
vendored
Normal file
1
dist/js/520000.1kqAiQNS1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/530000.DSbp6BRn1716880795474.js
vendored
Normal file
1
dist/js/530000.DSbp6BRn1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/540000.TxAx5ZM11716880795474.js
vendored
Normal file
1
dist/js/540000.TxAx5ZM11716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/610000.ALooE61c1716880795474.js
vendored
Normal file
1
dist/js/610000.ALooE61c1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/620000.wcN2QsZp1716880795474.js
vendored
Normal file
1
dist/js/620000.wcN2QsZp1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/630000.tvvD0h1x1716880795474.js
vendored
Normal file
1
dist/js/630000.tvvD0h1x1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/640000.F6nigWHT1716880795474.js
vendored
Normal file
1
dist/js/640000.F6nigWHT1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/650000.cfSqrz7P1716880795474.js
vendored
Normal file
1
dist/js/650000.cfSqrz7P1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/710000.N7uT_VK_1716880795474.js
vendored
Normal file
1
dist/js/710000.N7uT_VK_1716880795474.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:71e4,name:"台湾省",center:[121.509062,25.044332],centroid:[120.971485,23.749452],childrenNum:0,level:"province",acroutes:[1e5],parent:{adcode:1e5}},geometry:{type:"MultiPolygon",coordinates:[[[[120.443558,22.441245],[120.517584,22.408536],[120.569903,22.361728],[120.640505,22.241347],[120.659209,22.15432],[120.662001,22.066983],[120.651464,22.033165],[120.667691,21.983168],[120.70157,21.927065],[120.743246,21.915569],[120.78155,21.923957],[120.85468,21.883333],[120.87291,21.897387],[120.866482,21.98436],[120.907315,22.033208],[120.904154,22.119757],[120.914955,22.302718],[120.981658,22.528305],[121.015009,22.584168],[121.033292,22.650725],[121.078498,22.669656],[121.170544,22.723133],[121.210481,22.770665],[121.237931,22.836327],[121.324708,22.945666],[121.354687,23.01006],[121.370388,23.084347],[121.409535,23.102669],[121.430294,23.137196],[121.415015,23.195973],[121.440358,23.272096],[121.479558,23.3223],[121.497788,23.419789],[121.521497,23.483198],[121.523078,23.538708],[121.587778,23.76102],[121.621604,23.92075],[121.659381,24.006893],[121.639992,24.064276],[121.643838,24.097713],[121.678085,24.133906],[121.689044,24.174401],[121.809172,24.339055],[121.826717,24.423579],[121.867498,24.478978],[121.885464,24.529677],[121.892524,24.617912],[121.862598,24.671515],[121.837993,24.76015],[121.845053,24.836269],[121.932883,24.938645],[122.012178,25.001469],[121.980776,25.03079],[121.947425,25.031955],[121.917077,25.137908],[121.842155,25.135332],[121.782407,25.160425],[121.750531,25.160716],[121.707327,25.191493],[121.700319,25.226913],[121.655324,25.241859],[121.623026,25.294694],[121.584986,25.308926],[121.535038,25.307515],[121.444415,25.270624],[121.413487,25.238912],[121.371864,25.159885],[121.319281,25.140691],[121.209322,25.127104],[121.133135,25.078728],[121.102102,25.075153],[121.024704,25.040479],[121.009688,24.993649],[120.960899,24.940227],[120.908475,24.852012],[120.892299,24.767526],[120.823753,24.688321],[120.762371,24.658335],[120.688661,24.600678],[120.64277,24.490172],[120.589187,24.432354],[120.546299,24.370413],[120.521009,24.312038],[120.470534,24.24259],[120.451461,24.182691],[120.392029,24.11824],[120.316158,23.984881],[120.278276,23.927798],[120.245768,23.840553],[120.175377,23.807385],[120.102773,23.700981],[120.094817,23.587466],[120.121741,23.504664],[120.107831,23.341264],[120.081434,23.29191],[120.018947,23.073115],[120.029537,23.048623],[120.131382,23.002118],[120.149138,22.896715],[120.200403,22.721101],[120.274272,22.560181],[120.297191,22.531315],[120.443558,22.441245]]],[[[124.542984,25.903911],[124.586346,25.913777],[124.572805,25.93974],[124.541825,25.931031],[124.542984,25.903911]]],[[[123.445286,25.725966],[123.472104,25.713024],[123.508933,25.723237],[123.514834,25.751226],[123.483063,25.768587],[123.444496,25.746514],[123.445286,25.725966]]],[[[119.64597,23.55091],[119.701081,23.550657],[119.678057,23.600041],[119.610089,23.603953],[119.594388,23.577245],[119.566306,23.584732],[119.562565,23.530377],[119.573788,23.505885],[119.609141,23.503864],[119.64597,23.55091]]],[[[123.667207,25.914066],[123.707092,25.916873],[123.678008,25.938667],[123.667207,25.914066]]],[[[119.506031,23.625567],[119.505241,23.575814],[119.472416,23.557136],[119.523207,23.563699],[119.525578,23.624895],[119.506031,23.625567]]],[[[119.49739,23.386683],[119.495125,23.350156],[119.516885,23.349903],[119.49739,23.386683]]],[[[119.557454,23.666474],[119.604083,23.616989],[119.615516,23.660925],[119.586485,23.675974],[119.557454,23.666474]]],[[[121.46823,22.676644],[121.476502,22.64166],[121.513541,22.631833],[121.5147,22.67639],[121.46823,22.676644]]],[[[121.510538,22.087185],[121.507693,22.048523],[121.534089,22.022146],[121.594522,21.995382],[121.604586,22.022699],[121.575028,22.037122],[121.575607,22.084421],[121.510538,22.087185]]],[[[122.097533,25.500168],[122.093581,25.47183],[122.124825,25.475932],[122.097533,25.500168]]],[[[119.421467,23.216684],[119.421309,23.18935],[119.453396,23.217697],[119.421467,23.216684]]],[[[120.355042,22.327259],[120.395454,22.342287],[120.383072,22.355573],[120.355042,22.327259]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
|
1
dist/js/810000.Q2qVkDNV1716880795474.js
vendored
Normal file
1
dist/js/810000.Q2qVkDNV1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/820000.6eH0AycM1716880795474.js
vendored
Normal file
1
dist/js/820000.6eH0AycM1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{bj as d,aB as s,aC as i,bi as a,ax as n,bN as h}from"./vendor.LnRgd2r_1716546362088.js";import{P as m,F as r}from"./Pass.yyszOw6G1716546362088.js";const u={name:"AfterimageShader",uniforms:{damp:{value:.96},tOld:{value:null},tNew:{value:null}},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 uniform float damp;\n\n uniform sampler2D tOld;\n uniform sampler2D tNew;\n\n varying vec2 vUv;\n\n vec4 when_gt( vec4 x, float y ) {\n\n return max( sign( x - y ), 0.0 );\n\n }\n\n void main() {\n\n vec4 texelOld = texture2D( tOld, vUv );\n vec4 texelNew = texture2D( tNew, vUv );\n\n texelOld *= damp * when_gt( texelOld, 0.1 );\n\n gl_FragColor = max(texelNew, texelOld);\n\n }"};class v extends m{constructor(e=.96){super(),this.shader=u,this.uniforms=d.clone(this.shader.uniforms),this.uniforms.damp.value=e,this.textureComp=new s(window.innerWidth,window.innerHeight,{magFilter:i,type:a}),this.textureOld=new s(window.innerWidth,window.innerHeight,{magFilter:i,type:a}),this.compFsMaterial=new n({uniforms:this.uniforms,vertexShader:this.shader.vertexShader,fragmentShader:this.shader.fragmentShader}),this.compFsQuad=new r(this.compFsMaterial),this.copyFsMaterial=new h,this.copyFsQuad=new r(this.copyFsMaterial)}render(e,t,o){this.uniforms.tOld.value=this.textureOld.texture,this.uniforms.tNew.value=o.texture,e.setRenderTarget(this.textureComp),this.compFsQuad.render(e),this.copyFsQuad.material.map=this.textureComp.texture,this.renderToScreen?(e.setRenderTarget(null),this.copyFsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(),this.copyFsQuad.render(e));const l=this.textureOld;this.textureOld=this.textureComp,this.textureComp=l}setSize(e,t){this.textureComp.setSize(e,t),this.textureOld.setSize(e,t)}dispose(){this.textureComp.dispose(),this.textureOld.dispose(),this.compFsMaterial.dispose(),this.copyFsMaterial.dispose(),this.compFsQuad.dispose(),this.copyFsQuad.dispose()}}export{v as A};
|
||||
import{bj as d,aB as s,aC as i,bi as a,ax as n,bN as h}from"./vendor.9G8CKric1716880795474.js";import{P as m,F as r}from"./Pass.ZUk1DF1t1716880795474.js";const u={name:"AfterimageShader",uniforms:{damp:{value:.96},tOld:{value:null},tNew:{value:null}},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 uniform float damp;\n\n uniform sampler2D tOld;\n uniform sampler2D tNew;\n\n varying vec2 vUv;\n\n vec4 when_gt( vec4 x, float y ) {\n\n return max( sign( x - y ), 0.0 );\n\n }\n\n void main() {\n\n vec4 texelOld = texture2D( tOld, vUv );\n vec4 texelNew = texture2D( tNew, vUv );\n\n texelOld *= damp * when_gt( texelOld, 0.1 );\n\n gl_FragColor = max(texelNew, texelOld);\n\n }"};class v extends m{constructor(e=.96){super(),this.shader=u,this.uniforms=d.clone(this.shader.uniforms),this.uniforms.damp.value=e,this.textureComp=new s(window.innerWidth,window.innerHeight,{magFilter:i,type:a}),this.textureOld=new s(window.innerWidth,window.innerHeight,{magFilter:i,type:a}),this.compFsMaterial=new n({uniforms:this.uniforms,vertexShader:this.shader.vertexShader,fragmentShader:this.shader.fragmentShader}),this.compFsQuad=new r(this.compFsMaterial),this.copyFsMaterial=new h,this.copyFsQuad=new r(this.copyFsMaterial)}render(e,t,o){this.uniforms.tOld.value=this.textureOld.texture,this.uniforms.tNew.value=o.texture,e.setRenderTarget(this.textureComp),this.compFsQuad.render(e),this.copyFsQuad.material.map=this.textureComp.texture,this.renderToScreen?(e.setRenderTarget(null),this.copyFsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(),this.copyFsQuad.render(e));const l=this.textureOld;this.textureOld=this.textureComp,this.textureComp=l}setSize(e,t){this.textureComp.setSize(e,t),this.textureOld.setSize(e,t)}dispose(){this.textureComp.dispose(),this.textureOld.dispose(),this.compFsMaterial.dispose(),this.copyFsMaterial.dispose(),this.compFsQuad.dispose(),this.copyFsQuad.dispose()}}export{v as A};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{bj as r,ax as t}from"./vendor.LnRgd2r_1716546362088.js";import{P as o,F as n}from"./Pass.yyszOw6G1716546362088.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{bj as r,ax as t}from"./vendor.9G8CKric1716880795474.js";import{P as o,F as n}from"./Pass.ZUk1DF1t1716880795474.js";const l={name:"FilmShader",uniforms:{tDiffuse:{value:null},time:{value:0},intensity:{value:.5},grayscale:{value:!1}},vertexShader:"\n\n varying vec2 vUv;\n\n void main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }",fragmentShader:"\n\n #include <common>\n\n uniform float intensity;\n uniform bool grayscale;\n uniform float time;\n\n uniform sampler2D tDiffuse;\n\n varying vec2 vUv;\n\n void main() {\n\n vec4 base = texture2D( tDiffuse, vUv );\n\n float noise = rand( fract( vUv + time ) );\n\n vec3 color = base.rgb + base.rgb * clamp( 0.1 + noise, 0.0, 1.0 );\n\n color = mix( base.rgb, color, intensity );\n\n if ( grayscale ) {\n\n color = vec3( luminance( color ) ); // assuming linear-srgb\n\n }\n\n gl_FragColor = vec4( color, base.a );\n\n }"};class c extends o{constructor(e=.5,s=!1){super();const a=l;this.uniforms=r.clone(a.uniforms),this.material=new t({name:a.name,uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}),this.uniforms.intensity.value=e,this.uniforms.grayscale.value=s,this.fsQuad=new n(this.material)}render(e,s,a,i){this.uniforms.tDiffuse.value=a.texture,this.uniforms.time.value+=i,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(s),this.clear&&e.clear(),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}export{c as F};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{s as a}from"./shaderMaterial.M8gW489f1716546362088.js";const i=a({},"void main() { }","void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); discard; }");export{i as M};
|
||||
import{s as a}from"./shaderMaterial.ziqb17wI1716880795474.js";const i=a({},"void main() { }","void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); discard; }");export{i as M};
|
File diff suppressed because one or more lines are too long
1
dist/js/OrbitControls.JrIu5iro1716880795474.js
vendored
Normal file
1
dist/js/OrbitControls.JrIu5iro1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{bj as t,bz as o,c_ as n,c$ as r,d0 as s,d1 as l,d2 as p,b3 as g,d3 as f,d4 as u}from"./vendor.LnRgd2r_1716546362088.js";import{P as _,F as h}from"./Pass.yyszOw6G1716546362088.js";const d={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 #elif defined( NEUTRAL_TONE_MAPPING )\n\n gl_FragColor.rgb = NeutralToneMapping( 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 c extends _{constructor(){super();const e=d;this.uniforms=t.clone(e.uniforms),this.material=new o({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new h(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,i,a){this.uniforms.tDiffuse.value=a.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={},n.getTransfer(this._outputColorSpace)===r&&(this.material.defines.SRGB_TRANSFER=""),this._toneMapping===s?this.material.defines.LINEAR_TONE_MAPPING="":this._toneMapping===l?this.material.defines.REINHARD_TONE_MAPPING="":this._toneMapping===p?this.material.defines.CINEON_TONE_MAPPING="":this._toneMapping===g?this.material.defines.ACES_FILMIC_TONE_MAPPING="":this._toneMapping===f?this.material.defines.AGX_TONE_MAPPING="":this._toneMapping===u&&(this.material.defines.NEUTRAL_TONE_MAPPING=""),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(i),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}export{c as O};
|
||||
import{bj as t,bz as o,ee as n,ef as r,eg as s,eh as l,ei as p,b3 as g,ej as f,ek as u}from"./vendor.9G8CKric1716880795474.js";import{P as _,F as h}from"./Pass.ZUk1DF1t1716880795474.js";const m={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 #elif defined( NEUTRAL_TONE_MAPPING )\n\n gl_FragColor.rgb = NeutralToneMapping( 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 C extends _{constructor(){super();const e=m;this.uniforms=t.clone(e.uniforms),this.material=new o({name:e.name,uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}),this.fsQuad=new h(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,i,a){this.uniforms.tDiffuse.value=a.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={},n.getTransfer(this._outputColorSpace)===r&&(this.material.defines.SRGB_TRANSFER=""),this._toneMapping===s?this.material.defines.LINEAR_TONE_MAPPING="":this._toneMapping===l?this.material.defines.REINHARD_TONE_MAPPING="":this._toneMapping===p?this.material.defines.CINEON_TONE_MAPPING="":this._toneMapping===g?this.material.defines.ACES_FILMIC_TONE_MAPPING="":this._toneMapping===f?this.material.defines.AGX_TONE_MAPPING="":this._toneMapping===u&&(this.material.defines.NEUTRAL_TONE_MAPPING=""),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(i),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}export{C as O};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aG as r,aw as a,au as i,bD as t}from"./vendor.LnRgd2r_1716546362088.js";class l{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const n=new r(-1,1,1,-1,0,1);class o extends i{constructor(){super(),this.setAttribute("position",new t([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new t([0,2,0,0,2,0],2))}}const h=new o;class u{constructor(e){this._mesh=new a(h,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,n)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}export{u as F,l as P};
|
||||
import{aG as r,aw as a,au as i,bD as t}from"./vendor.9G8CKric1716880795474.js";class l{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const n=new r(-1,1,1,-1,0,1);class o extends i{constructor(){super(),this.setAttribute("position",new t([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new t([0,2,0,0,2,0],2))}}const h=new o;class u{constructor(e){this._mesh=new a(h,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,n)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}export{u as F,l as P};
|
@ -1 +1 @@
|
||||
import{bP as z,bi as b,at as S,bQ as B,cW as Y,aI as V}from"./vendor.LnRgd2r_1716546362088.js";class O extends z{constructor(g){super(g),this.type=b}parse(g){const _=function(r,e){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(e||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(e||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(e||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(e||""))}},u="\n",D=function(r,e,t){e=e||1024;let s=r.pos,i=-1,a=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&a<e&&s<r.byteLength;)l+=o,a+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=a+i+1),l+o.slice(0,i)):!1},N=function(r){const e=/^#\?(\S+)/,t=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,i=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,a={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,o;for((r.pos>=r.byteLength||!(l=D(r)))&&_(1,"no header found"),(o=l.match(e))||_(3,"bad initial token"),a.valid|=1,a.programtype=o[1],a.string+=l+"\n";l=D(r),l!==!1;){if(a.string+=l+"\n",l.charAt(0)==="#"){a.comments+=l+"\n";continue}if((o=l.match(t))&&(a.gamma=parseFloat(o[1])),(o=l.match(n))&&(a.exposure=parseFloat(o[1])),(o=l.match(s))&&(a.valid|=2,a.format=o[1]),(o=l.match(i))&&(a.valid|=4,a.height=parseInt(o[1],10),a.width=parseInt(o[2],10)),a.valid&2&&a.valid&4)break}return a.valid&2||_(3,"missing format specifier"),a.valid&4||_(3,"missing image size specifier"),a},v=function(r,e,t){const n=e;if(n<8||n>32767||r[0]!==2||r[1]!==2||r[2]&128)return new Uint8Array(r);n!==(r[2]<<8|r[3])&&_(3,"wrong scanline width");const s=new Uint8Array(4*e*t);s.length||_(4,"unable to allocate buffer space");let i=0,a=0;const l=4*n,o=new Uint8Array(4),E=new Uint8Array(l);let H=t;for(;H>0&&a<r.byteLength;){a+4>r.byteLength&&_(1),o[0]=r[a++],o[1]=r[a++],o[2]=r[a++],o[3]=r[a++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&a<r.byteLength;){c=r[a++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[a++];for(let U=0;U<c;U++)E[R++]=m}else E.set(r.subarray(a,a+c),R),R+=c,a+=c}const C=n;for(let h=0;h<C;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},P=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=B.toHalfFloat(Math.min(r[e+0]*i,65504)),t[n+1]=B.toHalfFloat(Math.min(r[e+1]*i,65504)),t[n+2]=B.toHalfFloat(Math.min(r[e+2]*i,65504)),t[n+3]=B.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++)P(y,t*4,r,t*4);L=r,I=S;break;case b:p=y.length/4;const e=new Uint16Array(p*4);for(let t=0;t<p;t++)x(y,t*4,e,t*4);L=e,I=b;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:d.string,gamma:d.gamma,exposure:d.exposure,type:I}}setDataType(g){return this.type=g,this}load(g,G,A,F){function M(_,T){switch(_.type){case S:case b:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}G&&G(_,T)}return super.load(g,M,A,F)}}export{O as R};
|
||||
import{bP as z,bi as b,at as S,bQ as B,cW as Y,aI as V}from"./vendor.9G8CKric1716880795474.js";class O extends z{constructor(g){super(g),this.type=b}parse(g){const _=function(r,e){switch(r){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(e||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(e||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(e||""));default:case 4:throw new Error("THREE.RGBELoader: Memory Error: "+(e||""))}},u="\n",D=function(r,e,t){e=e||1024;let s=r.pos,i=-1,a=0,l="",o=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));for(;0>(i=o.indexOf(u))&&a<e&&s<r.byteLength;)l+=o,a+=o.length,s+=128,o+=String.fromCharCode.apply(null,new Uint16Array(r.subarray(s,s+128)));return-1<i?(t!==!1&&(r.pos+=a+i+1),l+o.slice(0,i)):!1},N=function(r){const e=/^#\?(\S+)/,t=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,n=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,s=/^\s*FORMAT=(\S+)\s*$/,i=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,a={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,o;for((r.pos>=r.byteLength||!(l=D(r)))&&_(1,"no header found"),(o=l.match(e))||_(3,"bad initial token"),a.valid|=1,a.programtype=o[1],a.string+=l+"\n";l=D(r),l!==!1;){if(a.string+=l+"\n",l.charAt(0)==="#"){a.comments+=l+"\n";continue}if((o=l.match(t))&&(a.gamma=parseFloat(o[1])),(o=l.match(n))&&(a.exposure=parseFloat(o[1])),(o=l.match(s))&&(a.valid|=2,a.format=o[1]),(o=l.match(i))&&(a.valid|=4,a.height=parseInt(o[1],10),a.width=parseInt(o[2],10)),a.valid&2&&a.valid&4)break}return a.valid&2||_(3,"missing format specifier"),a.valid&4||_(3,"missing image size specifier"),a},v=function(r,e,t){const n=e;if(n<8||n>32767||r[0]!==2||r[1]!==2||r[2]&128)return new Uint8Array(r);n!==(r[2]<<8|r[3])&&_(3,"wrong scanline width");const s=new Uint8Array(4*e*t);s.length||_(4,"unable to allocate buffer space");let i=0,a=0;const l=4*n,o=new Uint8Array(4),E=new Uint8Array(l);let H=t;for(;H>0&&a<r.byteLength;){a+4>r.byteLength&&_(1),o[0]=r[a++],o[1]=r[a++],o[2]=r[a++],o[3]=r[a++],(o[0]!=2||o[1]!=2||(o[2]<<8|o[3])!=n)&&_(3,"bad rgbe scanline format");let R=0,c;for(;R<l&&a<r.byteLength;){c=r[a++];const h=c>128;if(h&&(c-=128),(c===0||R+c>l)&&_(3,"bad scanline data"),h){const m=r[a++];for(let U=0;U<c;U++)E[R++]=m}else E.set(r.subarray(a,a+c),R),R+=c,a+=c}const C=n;for(let h=0;h<C;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},P=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=B.toHalfFloat(Math.min(r[e+0]*i,65504)),t[n+1]=B.toHalfFloat(Math.min(r[e+1]*i,65504)),t[n+2]=B.toHalfFloat(Math.min(r[e+2]*i,65504)),t[n+3]=B.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++)P(y,t*4,r,t*4);L=r,I=S;break;case b:p=y.length/4;const e=new Uint16Array(p*4);for(let t=0;t<p;t++)x(y,t*4,e,t*4);L=e,I=b;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header:d.string,gamma:d.gamma,exposure:d.exposure,type:I}}setDataType(g){return this.type=g,this}load(g,G,A,F){function M(_,T){switch(_.type){case S:case b:_.colorSpace=Y,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}G&&G(_,T)}return super.load(g,M,A,F)}}export{O as R};
|
@ -1 +1 @@
|
||||
import{aw as k,bg as z,az as R,b5 as A,b6 as c,bh as W,bk as P,aB as B,bi as H,ax as I,bj as q}from"./vendor.LnRgd2r_1716546362088.js";class w extends k{constructor(S,o={}){super(S),this.isReflector=!0,this.type="Reflector",this.camera=new z;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),_=o.textureWidth||512,j=o.textureHeight||512,F=o.clipBias||0,u=o.shader||w.ReflectorShader,T=o.multisample!==void 0?o.multisample:4,s=new A,n=new c,i=new c,M=new c,d=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,j,{samples:T,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,C,x){if(i.setFromMatrixPosition(l.matrixWorld),M.setFromMatrixPosition(x.matrixWorld),d.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(d),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),d.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(d),v.add(M),b.subVectors(i,v),b.reflect(n).negate(),b.add(i),t.position.copy(m),t.up.set(0,1,0),t.up.applyMatrix4(d),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-F,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
||||
import{aw as k,bg as z,az as R,b5 as A,b6 as c,bh as W,bk as P,aB as B,bi as H,ax as I,bj as q}from"./vendor.9G8CKric1716880795474.js";class w extends k{constructor(S,o={}){super(S),this.isReflector=!0,this.type="Reflector",this.camera=new z;const l=this,U=o.color!==void 0?new R(o.color):new R(8355711),_=o.textureWidth||512,j=o.textureHeight||512,F=o.clipBias||0,u=o.shader||w.ReflectorShader,T=o.multisample!==void 0?o.multisample:4,s=new A,n=new c,i=new c,M=new c,d=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,j,{samples:T,type:H}),g=new I({name:u.name!==void 0?u.name:"unspecified",uniforms:q.clone(u.uniforms),fragmentShader:u.fragmentShader,vertexShader:u.vertexShader});g.uniforms.tDiffuse.value=h.texture,g.uniforms.color.value=U,g.uniforms.textureMatrix.value=p,this.material=g,this.onBeforeRender=function(e,C,x){if(i.setFromMatrixPosition(l.matrixWorld),M.setFromMatrixPosition(x.matrixWorld),d.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(d),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),d.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(d),v.add(M),b.subVectors(i,v),b.reflect(n).negate(),b.add(i),t.position.copy(m),t.up.set(0,1,0),t.up.applyMatrix4(d),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-F,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{bz as c,bA as s,bB as m,bh as d,az as t,bC as g,aH as M}from"./vendor.LnRgd2r_1716546362088.js";import{d as x}from"./dither.glsl.y2WXw1t-1716546362088.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{bz as c,bA as s,bB as m,bh as d,az as t,bC as g,aH as M}from"./vendor.9G8CKric1716880795474.js";import{d as x}from"./dither.glsl.y2WXw1t-1716880795474.js";const C="\nin vec3 position;\nin vec3 normal;\nin vec2 uv;\n\nuniform mat4 modelMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\n\nuniform mat3 uMapTransform;\nuniform mat4 uMatrix;\n\nout vec2 vUv;\nout vec4 vCoord;\nout vec3 vNormal;\nout vec3 vToEye;\n\nvoid main() {\n vUv = (uMapTransform * vec3(uv, 1.0)).xy;\n vCoord = uMatrix * vec4(position, 1.0);\n vNormal = normalMatrix * normal;\n\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n vToEye = cameraPosition - worldPosition.xyz;\n\n vec4 mvPosition = viewMatrix * worldPosition;\n gl_Position = projectionMatrix * mvPosition;\n}\n",F="\nprecision highp float;\n\nuniform sampler2D tReflect;\nuniform vec3 uColor;\nuniform float uReflectivity;\nuniform float uMirror;\nuniform float uMixStrength;\n\n#ifdef USE_MAP\n uniform sampler2D tMap;\n#endif\n\n#ifdef USE_NORMALMAP\n uniform sampler2D tNormalMap;\n uniform vec2 uNormalScale;\n#endif\n\n#ifdef USE_FOG\n uniform vec3 uFogColor;\n uniform float uFogNear;\n uniform float uFogFar;\n#endif\n\nin vec2 vUv;\nin vec4 vCoord;\nin vec3 vNormal;\nin vec3 vToEye;\n\nout vec4 FragColor;\n\n".concat(x,"\n\nvoid main() {\n #ifdef USE_MAP\n vec4 color = texture(tMap, vUv);\n #else\n vec4 color = vec4(uColor, 1.0);\n #endif\n\n #ifdef USE_NORMALMAP\n vec4 normalColor = texture(tNormalMap, vUv * uNormalScale);\n vec3 normal = normalize(vec3(normalColor.r * 2.0 - 1.0, normalColor.b, normalColor.g * 2.0 - 1.0));\n vec3 coord = vCoord.xyz / vCoord.w;\n vec2 uv = coord.xy + coord.z * normal.xz * 0.05;\n vec4 reflectColor = texture(tReflect, uv);\n #else\n vec3 normal = vNormal;\n vec4 reflectColor = textureProj(tReflect, vCoord);\n #endif\n\n // Fresnel term\n vec3 toEye = normalize(vToEye);\n float theta = max(dot(toEye, normal), 0.0);\n float reflectance = uReflectivity + (1.0 - uReflectivity) * pow((1.0 - theta), 5.0);\n\n reflectColor = mix(vec4(0), reflectColor, reflectance);\n\n FragColor.rgb = color.rgb * ((1.0 - min(1.0, uMirror)) + reflectColor.rgb * uMixStrength);\n\n #ifdef USE_FOG\n float fogDepth = gl_FragCoord.z / gl_FragCoord.w;\n float fogFactor = smoothstep(uFogNear, uFogFar, fogDepth);\n\n FragColor.rgb = mix(FragColor.rgb, uFogColor, fogFactor);\n #endif\n\n #ifdef DITHERING\n FragColor.rgb = dither(FragColor.rgb);\n #endif\n\n FragColor.a = 1.0;\n}\n");class S extends c{constructor({color:i=new t(1052688),map:e=null,normalMap:r=null,normalScale:l=new M(1,1),reflectivity:n=0,mirror:f=0,mixStrength:u=10,fog:a=null,dithering:v=!1}={}){const o={glslVersion:s,defines:{},uniforms:{tMap:{value:null},tReflect:{value:null},uMapTransform:{value:new m},uMatrix:{value:new d},uColor:{value:i instanceof t?i:new t(i)},uReflectivity:{value:n},uMirror:{value:f},uMixStrength:{value:u}},vertexShader:C,fragmentShader:F,blending:g};e&&(e.updateMatrix(),o.defines=Object.assign(o.defines,{USE_MAP:""}),o.uniforms=Object.assign(o.uniforms,{tMap:{value:e},uMapTransform:{value:e.matrix}})),r&&(o.defines=Object.assign(o.defines,{USE_NORMALMAP:""}),o.uniforms=Object.assign(o.uniforms,{tNormalMap:{value:r},uNormalScale:{value:l}}),e||(r.updateMatrix(),o.uniforms=Object.assign(o.uniforms,{uMapTransform:{value:r.matrix}}))),a&&(o.defines=Object.assign(o.defines,{USE_FOG:""}),o.uniforms=Object.assign(o.uniforms,{uFogColor:{value:a.color},uFogNear:{value:a.near},uFogFar:{value:a.far}})),v&&(o.defines=Object.assign(o.defines,{DITHERING:""})),super(o)}}export{S as R};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as u,a2 as t,b3 as _,ad as f,a6 as b,aq as w,o as l,x as d,E as m,a8 as x,L as o,b4 as y,a as i,aa as p,ab as c,ac as T,ag as B,Y as e,az as M}from"./vendor.LnRgd2r_1716546362088.js";import{_ as v}from"./component.vue_vue_type_script_setup_true_lang.o5LuKhXc1716546362088.js";import"./vanilla.esm.5.5.0.O8bdx4vH1716546362088.js";import{_ as S}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.bNz8Y6hM1716546362088.js";import"./object_hash.5or4GQsK1716546362088.js";import"./_commonjsHelpers.5-cIlDoe1716546362088.js";import"./_commonjs-dynamic-modules.h-SxKiO41716546362088.js";import"./shaderMaterial.M8gW489f1716546362088.js";import"./MeshDiscardMaterial.zS7_tRSY1716546362088.js";const j=e("TresPerspectiveCamera",{position:[2,3,4],fov:45,near:1,far:1e3},null,-1),P=e("TresAmbientLight",{intensity:.5},null,-1),z=e("TresMesh",{position:[2,.5,-1.5],"receive-shadow":"","cast-shadow":"",name:"sphere"},[e("TresSphereGeometry",{args:[.5]}),e("TresMeshStandardMaterial",{color:16724991,roughness:0,metalness:1})],-1),C=e("TresMesh",{position:[-1.5,.5,1.5],"receive-shadow":"","cast-shadow":"",name:"cube"},[e("TresCylinderGeometry",{args:[.5,.5,1]}),e("TresMeshStandardMaterial",{color:3407871,roughness:0,metalness:0})],-1),k=e("TresMesh",{position:[0,.9,0],"receive-shadow":"","cast-shadow":"",name:"torus"},[e("TresTorusKnotGeometry",{args:[.5,.2,80,64]}),e("TresMeshStandardMaterial",{color:16777011,roughness:.3,metalness:.5})],-1),F=u({__name:"accumulativeShadows",setup(R){const g=t({alpha:!0,shadows:!0,shadowMap:!0,toneMapping:_}),h=t({enableDamping:!0,autoRotate:!1}),n=f();b(()=>{if(n.value){const r=n.value.context.scene.value;r.background=new M("grey")}});const a=t({opacity:.8,alphaTest:.9,color:"#000000",blend:2,lightPosition:{x:3,y:5,z:3},frames:60,blendWindow:100,ambient:.5}),s=new w({title:"参数"});return s.addBinding(a,"opacity",{label:"透明度",min:0,max:1,step:.1}),s.addBinding(a,"alphaTest",{label:"透明检测",min:0,max:1,step:.1}),s.addBinding(a,"color",{label:"颜色"}),s.addBinding(a,"blend",{label:"颜色混合",min:0,max:3,step:.1}),s.addBinding(a,"lightPosition",{label:"光源位置",x:{min:-5,max:5},y:{min:1,max:5},z:{min:-5,max:5}}),s.addBinding(a,"frames",{label:"渲染帧数",min:1,max:100,step:1}),s.addBinding(a,"blendWindow",{label:"blend",min:1,max:100,step:1}),s.addBinding(a,"ambient",{label:"ambient",min:0,max:1,step:.1}),(r,E)=>(l(),d(o(y),x(g,{ref_key:"tcRef",ref:n,"window-size":""}),{default:m(()=>[j,i(o(T),p(c(h)),null,16),P,z,C,k,i(S,p(c(a)),null,16),(l(),d(B,null,{default:m(()=>[i(o(v),{files:["pos-x.jpg","neg-x.jpg","pos-y.jpg","neg-y.jpg","pos-z.jpg","neg-z.jpg"],path:"https://opensource-1314935952.cos.ap-nanjing.myqcloud.com/images/skyBox/6jpg/"},null,8,["files"])]),_:1}))]),_:1},16))}});export{F as default};
|
||||
import{a1 as u,a2 as t,b3 as _,ad as f,a6 as b,aq as w,o as l,x as d,E as m,a8 as x,L as o,b4 as y,a as i,aa as p,ab as c,ac as T,ag as B,Y as e,az as M}from"./vendor.9G8CKric1716880795474.js";import{_ as v}from"./component.vue_vue_type_script_setup_true_lang.mSSOpyXj1716880795474.js";import"./vanilla.esm.5.5.0.16lxoeod1716880795474.js";import{_ as S}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.f7UlS6Eb1716880795474.js";import"./object_hash.Me0Vhn2S1716880795474.js";import"./_commonjsHelpers.5-cIlDoe1716880795474.js";import"./_commonjs-dynamic-modules.h-SxKiO41716880795474.js";import"./shaderMaterial.ziqb17wI1716880795474.js";import"./MeshDiscardMaterial.NQkLuE9p1716880795474.js";const j=e("TresPerspectiveCamera",{position:[2,3,4],fov:45,near:1,far:1e3},null,-1),P=e("TresAmbientLight",{intensity:.5},null,-1),z=e("TresMesh",{position:[2,.5,-1.5],"receive-shadow":"","cast-shadow":"",name:"sphere"},[e("TresSphereGeometry",{args:[.5]}),e("TresMeshStandardMaterial",{color:16724991,roughness:0,metalness:1})],-1),C=e("TresMesh",{position:[-1.5,.5,1.5],"receive-shadow":"","cast-shadow":"",name:"cube"},[e("TresCylinderGeometry",{args:[.5,.5,1]}),e("TresMeshStandardMaterial",{color:3407871,roughness:0,metalness:0})],-1),k=e("TresMesh",{position:[0,.9,0],"receive-shadow":"","cast-shadow":"",name:"torus"},[e("TresTorusKnotGeometry",{args:[.5,.2,80,64]}),e("TresMeshStandardMaterial",{color:16777011,roughness:.3,metalness:.5})],-1),F=u({__name:"accumulativeShadows",setup(R){const g=t({alpha:!0,shadows:!0,shadowMap:!0,toneMapping:_}),h=t({enableDamping:!0,autoRotate:!1}),n=f();b(()=>{if(n.value){const r=n.value.context.scene.value;r.background=new M("grey")}});const a=t({opacity:.8,alphaTest:.9,color:"#000000",blend:2,lightPosition:{x:3,y:5,z:3},frames:60,blendWindow:100,ambient:.5}),s=new w({title:"参数"});return s.addBinding(a,"opacity",{label:"透明度",min:0,max:1,step:.1}),s.addBinding(a,"alphaTest",{label:"透明检测",min:0,max:1,step:.1}),s.addBinding(a,"color",{label:"颜色"}),s.addBinding(a,"blend",{label:"颜色混合",min:0,max:3,step:.1}),s.addBinding(a,"lightPosition",{label:"光源位置",x:{min:-5,max:5},y:{min:1,max:5},z:{min:-5,max:5}}),s.addBinding(a,"frames",{label:"渲染帧数",min:1,max:100,step:1}),s.addBinding(a,"blendWindow",{label:"blend",min:1,max:100,step:1}),s.addBinding(a,"ambient",{label:"ambient",min:0,max:1,step:.1}),(r,E)=>(l(),d(o(y),x(g,{ref_key:"tcRef",ref:n,"window-size":""}),{default:m(()=>[j,i(o(T),p(c(h)),null,16),P,z,C,k,i(S,p(c(a)),null,16),(l(),d(B,null,{default:m(()=>[i(o(v),{files:["pos-x.jpg","neg-x.jpg","pos-y.jpg","neg-y.jpg","pos-z.jpg","neg-z.jpg"],path:"https://opensource-1314935952.cos.ap-nanjing.myqcloud.com/images/skyBox/6jpg/"},null,8,["files"])]),_:1}))]),_:1},16))}});export{F as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/alternator.zz01D1HY1716880795474.js
vendored
Normal file
1
dist/js/alternator.zz01D1HY1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as d,r as v,o as l,x as f,E as p,a8 as m,a9 as u,Y as t,a as g,aa as o,ab as a,L as h,ac as _,ap as x,aA as T}from"./vendor.LnRgd2r_1716546362088.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",C="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",j={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},V=t("TresAmbientLight",{color:"#ffffff"},null,-1),D=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),k=["rotation-x"],M=t("TresPlaneGeometry",{args:[400,400]},null,-1),P=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),b=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),S=d({__name:"argestCircle",setup(z){const r={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:y,fragmentShader:C,side:x,blending:T,depthWrite:!1,transparent:!0},{onLoop:i}=u();return i(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,L)=>{const c=v("TresCanvas");return l(),f(c,m(r,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(h(_),o(a(s)),null,16),V,D,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[M,t("TresShaderMaterial",o(a(e)),null,16)],8,k),P,b]),_:1},16)}}});export{S as default};
|
||||
import{a1 as d,r as v,o as l,x as f,E as p,a8 as m,a9 as u,Y as t,a as g,aa as o,ab as a,L as h,ac as _,ap as x,aA as T}from"./vendor.9G8CKric1716880795474.js";const y="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",C="varying vec2 vUv;\nuniform float uTime;\nstruct VoronoiData{\n float dist;\n float edgedist;\n vec2 edgenormal;\n vec2 point;\n};\n\nvec2 hash22(vec2 p)\n{\n vec3 p3=fract(vec3(p.xyx)*vec3(.1031,.1030,.0973));\n p3+=dot(p3,p3.yzx+33.33);\n return fract((p3.xx+p3.yz)*p3.zy);\n}\nVoronoiData voronoi2dedges(vec2 uv){\n vec2 n=floor(uv);\n vec2 f=fract(uv);\n \n vec2 mg,mr;\n \n float md=8.;\n for(int j=-1;j<=1;j++)\n for(int i=-1;i<=1;i++){\n vec2 g=vec2(i,j);\n vec2 o=hash22(n+g);\n vec2 r=g+o-f;\n float d=dot(r,r);\n \n if(d<md){\n md=d;\n mr=g+o;\n }\n }\n \n float med=8.;\n vec2 men=vec2(0);\n for(int j=-2;j<=2;j++)\n for(int i=-2;i<=2;i++){\n vec2 g=vec2(i,j);\n g+=hash22(n+g);\n vec2 k=g-mr;\n \n float d=dot(k,k);\n if(d>0.){\n float l=dot(g+mr-2.*f,k)*.5/sqrt(d);\n if(l<med){\n men=k;\n med=l;\n }\n }\n }\n return VoronoiData(md,med,normalize(men),mr+n);\n}\n\nvoid main(){\n vec2 uv=vUv*10.+vec2(0.,uTime);\n vec2 p=voronoi2dedges(uv).point;\n VoronoiData v;\n for(int i=0;i<32;i++){\n VoronoiData v=voronoi2dedges(p);\n p+=-v.edgenormal*.2/float(i+1);\n }\n gl_FragColor=vec4(\n smoothstep(0.,.1,distance(uv,p))*\n smoothstep(0.,.01,voronoi2dedges(uv).edgedist)*\n smoothstep(0.,.01,abs(distance(uv,p)-voronoi2dedges(p).edgedist))\n );\n}",j={ref:"perspectiveCameraRef",position:[600,750,-1221],fov:45,near:1,far:1e4},V=t("TresAmbientLight",{color:"#ffffff"},null,-1),D=t("TresDirectionalLight",{position:[100,100,0],intensity:.5,color:"#ffffff"},null,-1),k=["rotation-x"],M=t("TresPlaneGeometry",{args:[400,400]},null,-1),P=t("TresAxesHelper",{args:[1e3],position:[0,19,0]},null,-1),b=t("TresGridHelper",{args:[6e3,100],position:[0,19,0]},null,-1),S=d({__name:"argestCircle",setup(z){const r={clearColor:"#000000",shadows:!0,alpha:!1,useLegacyLights:!0},s={autoRotate:!0,enableDamping:!0},e={uniforms:{uTime:{type:"f",value:0}},vertexShader:y,fragmentShader:C,side:x,blending:T,depthWrite:!1,transparent:!0},{onLoop:i}=u();return i(({delta:n})=>{e.uniforms.uTime.value+=n}),(n,L)=>{const c=v("TresCanvas");return l(),f(c,m(r,{"window-size":""}),{default:p(()=>[t("TresPerspectiveCamera",j,null,512),g(h(_),o(a(s)),null,16),V,D,t("TresMesh",{ref:"quanMeshRef",position:[0,100,0],"rotation-x":2*Math.PI/360*90},[M,t("TresShaderMaterial",o(a(e)),null,16)],8,k),P,b]),_:1},16)}}});export{S as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/axios.hy2BcW2f1716880795474.js
vendored
Normal file
1
dist/js/axios.hy2BcW2f1716880795474.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as _,ak as B,a6 as T,o as w,x as v,L as P,a$ as L,aF as k,a9 as F,aH as M,aw as N,aL as R,c9 as S,r as V,E as y,a as f,ac as z,Y as d}from"./vendor.LnRgd2r_1716546362088.js";import{R as p,E as G}from"./EffectComposer.j4ikXUZG1716546362088.js";import{U as H}from"./UnrealBloomPass.ckcEbS781716546362088.js";import{F as U}from"./FilmPass.GAVQDQAS1716546362088.js";import"./Pass.yyszOw6G1716546362088.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:c,scene:i,sizes:s}=B(),l={threshold:0,strength:.972,radius:.21};let e=null;const C=(a,o,m,h,u)=>{const t=new p(a,o),r=new H(new M(h,u),l.strength,l.radius,l.threshold);e=new G(m),e.addPass(t),e.addPass(r)},b=(a,o,m,h,u)=>{let t=new N(new R(1,1,1),new S);t.position.set(0,2,-4),a.add(t);var r=new p(a,o);r.clear=!1,e.addPass(r);const E=new U;e.addPass(E)};T(()=>{s.width.value&&(C(i.value,n.value,c.value,s.width.value,s.height.value),b(new k,n.value,c.value,s.width.value,s.height.value))});const{onLoop:x}=F();return x(()=>{e&&e.render()}),(a,o)=>(w(),v(P(L),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),A=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),Y=d("TresAmbientLight",{intensity:1},null,-1),j=d("TresGridHelper",{args:[10,10]},null,-1),O=_({__name:"bloomPass",setup(g){return(n,c)=>{const i=V("TresCanvas");return w(),v(i,{disableRender:"","window-size":""},{default:y(()=>[A,Y,f(P(z)),j,f($)]),_:1})}}});export{O as default};
|
||||
import{a1 as _,ak as B,a6 as T,o as w,x as v,L as P,a$ as L,aF as k,a9 as F,aH as M,aw as N,aL as R,c9 as S,r as V,E as y,a as f,ac as z,Y as d}from"./vendor.9G8CKric1716880795474.js";import{R as p,E as G}from"./EffectComposer.8dzKg1OS1716880795474.js";import{U as H}from"./UnrealBloomPass.hD_0aqYO1716880795474.js";import{F as U}from"./FilmPass.FQn7NlD71716880795474.js";import"./Pass.ZUk1DF1t1716880795474.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:c,scene:i,sizes:s}=B(),l={threshold:0,strength:.972,radius:.21};let e=null;const C=(a,o,m,h,u)=>{const t=new p(a,o),r=new H(new M(h,u),l.strength,l.radius,l.threshold);e=new G(m),e.addPass(t),e.addPass(r)},b=(a,o,m,h,u)=>{let t=new N(new R(1,1,1),new S);t.position.set(0,2,-4),a.add(t);var r=new p(a,o);r.clear=!1,e.addPass(r);const E=new U;e.addPass(E)};T(()=>{s.width.value&&(C(i.value,n.value,c.value,s.width.value,s.height.value),b(new k,n.value,c.value,s.width.value,s.height.value))});const{onLoop:x}=F();return x(()=>{e&&e.render()}),(a,o)=>(w(),v(P(L),{args:[1,1,1],color:"orange",position:[3,2,1]}))}}),A=d("TresPerspectiveCamera",{position:[10,10,10]},null,-1),Y=d("TresAmbientLight",{intensity:1},null,-1),j=d("TresGridHelper",{args:[10,10]},null,-1),O=_({__name:"bloomPass",setup(g){return(n,c)=>{const i=V("TresCanvas");return w(),v(i,{disableRender:"","window-size":""},{default:y(()=>[A,Y,f(P(z)),j,f($)]),_:1})}}});export{O as default};
|
@ -1 +1 @@
|
||||
import{a1 as m,aD as h,L as l,o as a,c as n,Y as s,G as b,H as g,t as f,Z as r,ah as y,ai as v,by as k,_ as w}from"./vendor.LnRgd2r_1716546362088.js";/* empty css */const x=e=>(y("data-v-e6b4d15d"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},D={class:"text-white"},F={class:"g-container"},I=x(()=>s("div",{class:"g-circle"},null,-1)),L={class:"g-bubbles"},S={key:0,class:"pspan"},A=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const d=e,{hasFinishLoading:p,progress:o}=([t,c]=h(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return d.isDemo&&requestAnimationFrame(i),(_,C)=>l(p)?r("",!0):(a(),n("div",B,[s("div",D,[s("div",F,[I,s("ul",L,[(a(),n(b,null,g(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),_.showProgress?(a(),n("span",S,f(l(o))+" %",1)):r("",!0)])]))}}),P=w(A,[["__scopeId","data-v-e6b4d15d"]]);export{P as l};
|
||||
import{a1 as m,aD as h,L as l,o as a,c as n,Y as s,G as b,H as g,t as f,Z as r,ah as y,ai as v,by as k,_ as w}from"./vendor.9G8CKric1716880795474.js";/* empty css */const x=e=>(y("data-v-e6b4d15d"),e=e(),v(),e),B={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},D={class:"text-white"},F={class:"g-container"},I=x(()=>s("div",{class:"g-circle"},null,-1)),L={class:"g-bubbles"},S={key:0,class:"pspan"},A=m({__name:"bubbleLoading",props:{isDemo:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},async setup(e){let t,c;const d=e,{hasFinishLoading:p,progress:o}=([t,c]=h(()=>k()),t=await t,c(),t),i=()=>{o.value++>100&&(o.value=0),requestAnimationFrame(i)};return d.isDemo&&requestAnimationFrame(i),(_,C)=>l(p)?r("",!0):(a(),n("div",B,[s("div",D,[s("div",F,[I,s("ul",L,[(a(),n(b,null,g(200,u=>s("li",{key:u,class:"g-bubble"})),64))])]),_.showProgress?(a(),n("span",S,f(l(o))+" %",1)):r("",!0)])]))}}),P=w(A,[["__scopeId","data-v-e6b4d15d"]]);export{P as l};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as _,l as p,aD as f,a7 as w,aq as y,a2 as u,o as d,x as s,E as h,L as g,Z as m}from"./vendor.LnRgd2r_1716546362088.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.V6yCfBxo1716546362088.js";import"./vanilla.Ce3z2LLF1716546362088.js";import"./object_hash.5or4GQsK1716546362088.js";import"./_commonjsHelpers.5-cIlDoe1716546362088.js";import"./_commonjs-dynamic-modules.h-SxKiO41716546362088.js";import"./LineSegments2.-qVwlrZL1716546362088.js";const A=_({__name:"buildings",async setup(v){let t,r;const b=p(),n=p(!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=u({width:1,color:"#000",opacity:1,show:!0}),a=u({bulidingsColor:"#e523ff",landColor:"#112233",opacity:.9,show:!0,gradient:!0});return(l,o)=>(d(),s(C,{ref_key:"pagesShowRef",ref:b,showBuildings:!1},{ability:h(()=>[a.show&&n.value?(d(),s(x,{key:0,model:g(c),bulidingsColor:a.bulidingsColor,landColor:a.landColor,gradient:a.gradient,opacity:a.opacity},null,8,["model","bulidingsColor","landColor","gradient","opacity"])):m("",!0),i.show&&n.value?(d(),s(k,{key:1,builds:g(c).city,width:i.width,color:i.color,opacity:i.opacity},null,8,["builds","width","color","opacity"])):m("",!0)]),_:1},512))}});export{A as default};
|
||||
import{a1 as _,l as p,aD as f,a7 as w,aq as y,a2 as u,o as d,x as s,E as h,L as g,Z as m}from"./vendor.9G8CKric1716880795474.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.yuTOpIDZ1716880795474.js";import"./vanilla.Ky58OUw91716880795474.js";import"./object_hash.Me0Vhn2S1716880795474.js";import"./_commonjsHelpers.5-cIlDoe1716880795474.js";import"./_commonjs-dynamic-modules.h-SxKiO41716880795474.js";import"./LineSegments2.AOtDKG_21716880795474.js";const A=_({__name:"buildings",async setup(v){let t,r;const b=p(),n=p(!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=u({width:1,color:"#000",opacity:1,show:!0}),a=u({bulidingsColor:"#e523ff",landColor:"#112233",opacity:.9,show:!0,gradient:!0});return(l,o)=>(d(),s(C,{ref_key:"pagesShowRef",ref:b,showBuildings:!1},{ability:h(()=>[a.show&&n.value?(d(),s(x,{key:0,model:g(c),bulidingsColor:a.bulidingsColor,landColor:a.landColor,gradient:a.gradient,opacity:a.opacity},null,8,["model","bulidingsColor","landColor","gradient","opacity"])):m("",!0),i.show&&n.value?(d(),s(k,{key:1,builds:g(c).city,width:i.width,color:i.color,opacity:i.opacity},null,8,["builds","width","color","opacity"])):m("",!0)]),_:1},512))}});export{A as default};
|
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