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
This commit is contained in:
commit
685c650fe3
@ -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.cUx8f8j51715415693854.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.cUx8f8j51715673460166.png);filter:blur(46px) hue-rotate(325deg) grayscale(100%)}li[data-v-fd782587]{list-style:none}
|
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.Dnkdy_4I1715415693854.js"></script>
|
||||
<script type="module" crossorigin src="./js/polyfills.XxixlEYA1715673460166.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.EFaAutaZ1715415693854.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor.bbi2JiG-1715415693854.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.AUZGPNf81715415693854.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.6HKR01J01715415693854.css">
|
||||
<script type="module" crossorigin src="./js/index.05XjsmtD1715673460166.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./js/vendor._sK3qi2g1715673460166.js">
|
||||
<link rel="stylesheet" crossorigin href="./css/vendor.AUZGPNf81715673460166.css">
|
||||
<link rel="stylesheet" crossorigin href="./css/index.6HKR01J01715673460166.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -1 +1 @@
|
||||
import{bd as d,aB as s,aC as i,bm as a,ax as n,bQ as h}from"./vendor.bbi2JiG-1715415693854.js";import{P as m,F as r}from"./Pass.5_QJD6231715415693854.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{bd as d,aB as s,aC as i,bm as a,ax as n,bQ as h}from"./vendor._sK3qi2g1715673460166.js";import{P as m,F as r}from"./Pass.agMNEUrn1715673460166.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{bd as r,ax as t}from"./vendor.bbi2JiG-1715415693854.js";import{P as o,F as n}from"./Pass.5_QJD6231715415693854.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{bd as r,ax as t}from"./vendor._sK3qi2g1715673460166.js";import{P as o,F as n}from"./Pass.agMNEUrn1715673460166.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.OMDMM5LZ1715415693854.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.dQivQvVN1715673460166.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 +1 @@
|
||||
import{bd as t,bC as o,c_ as n,c$ as r,d0 as s,d1 as l,d2 as p,ba as g,d3 as f,d4 as u}from"./vendor.bbi2JiG-1715415693854.js";import{P as _,F as d}from"./Pass.5_QJD6231715415693854.js";const h={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=h;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 d(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{bd as t,bC as o,c_ as n,c$ as r,d0 as s,d1 as l,d2 as p,ba as g,d3 as f,d4 as u}from"./vendor._sK3qi2g1715673460166.js";import{P as _,F as d}from"./Pass.agMNEUrn1715673460166.js";const h={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=h;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 d(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,bG as t}from"./vendor.bbi2JiG-1715415693854.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,bG as t}from"./vendor._sK3qi2g1715673460166.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{bW as z,bm as b,at as S,bX as B,cW as W,aI as V}from"./vendor.bbi2JiG-1715415693854.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 P=n;for(let h=0;h<P;h++){let m=0;s[i]=E[h+m],m+=n,s[i+1]=E[h+m],m+=n,s[i+2]=E[h+m],m+=n,s[i+3]=E[h+m],i+=4}H--}return s},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},C=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=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++)x(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++)C(y,t*4,e,t*4);L=e,I=b;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header: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=W,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}G&&G(_,T)}return super.load(g,M,A,F)}}export{O as R};
|
||||
import{bW as z,bm as b,at as S,bX as B,cW as W,aI as V}from"./vendor._sK3qi2g1715673460166.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 P=n;for(let h=0;h<P;h++){let m=0;s[i]=E[h+m],m+=n,s[i+1]=E[h+m],m+=n,s[i+2]=E[h+m],m+=n,s[i+3]=E[h+m],i+=4}H--}return s},x=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=r[e+0]*i,t[n+1]=r[e+1]*i,t[n+2]=r[e+2]*i,t[n+3]=1},C=function(r,e,t,n){const s=r[e+3],i=Math.pow(2,s-128)/255;t[n+0]=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++)x(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++)C(y,t*4,e,t*4);L=e,I=b;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:f,height:k,data:L,header: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=W,_.minFilter=V,_.magFilter=V,_.generateMipmaps=!1,_.flipY=!0;break}G&&G(_,T)}return super.load(g,M,A,F)}}export{O as R};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aw as k,bk as z,az as R,b2 as A,b3 as c,bl as W,bn as P,aB as B,bm as H,ax as I,bd as q}from"./vendor.bbi2JiG-1715415693854.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,F=o.textureHeight||512,T=o.clipBias||0,d=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new A,n=new c,i=new c,M=new c,u=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,F,{samples:j,type:H}),g=new I({name:d.name!==void 0?d.name:"unspecified",uniforms:q.clone(d.uniforms),fragmentShader:d.fragmentShader,vertexShader:d.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),u.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(u),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),u.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(u),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(u),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-T,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
||||
import{aw as k,bk as z,az as R,b2 as A,b3 as c,bl as W,bn as P,aB as B,bm as H,ax as I,bd as q}from"./vendor._sK3qi2g1715673460166.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,F=o.textureHeight||512,T=o.clipBias||0,d=o.shader||w.ReflectorShader,j=o.multisample!==void 0?o.multisample:4,s=new A,n=new c,i=new c,M=new c,u=new W,v=new c(0,0,-1),r=new P,m=new c,b=new c,f=new P,p=new W,t=this.camera,h=new B(_,F,{samples:j,type:H}),g=new I({name:d.name!==void 0?d.name:"unspecified",uniforms:q.clone(d.uniforms),fragmentShader:d.fragmentShader,vertexShader:d.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),u.extractRotation(l.matrixWorld),n.set(0,0,1),n.applyMatrix4(u),m.subVectors(i,M),m.dot(n)>0)return;m.reflect(n).negate(),m.add(i),u.extractRotation(x.matrixWorld),v.set(0,0,-1),v.applyMatrix4(u),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(u),t.up.reflect(n),t.lookAt(b),t.far=x.far,t.updateMatrixWorld(),t.projectionMatrix.copy(x.projectionMatrix),p.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),p.multiply(t.projectionMatrix),p.multiply(t.matrixWorldInverse),p.multiply(l.matrixWorld),s.setFromNormalAndCoplanarPoint(n,i),s.applyMatrix4(t.matrixWorldInverse),r.set(s.normal.x,s.normal.y,s.normal.z,s.constant);const a=t.projectionMatrix;f.x=(Math.sign(r.x)+a.elements[8])/a.elements[0],f.y=(Math.sign(r.y)+a.elements[9])/a.elements[5],f.z=-1,f.w=(1+a.elements[10])/a.elements[14],r.multiplyScalar(2/r.dot(f)),a.elements[2]=r.x,a.elements[6]=r.y,a.elements[10]=r.z+1-T,a.elements[14]=r.w,l.visible=!1;const D=e.getRenderTarget(),O=e.xr.enabled,V=e.shadowMap.autoUpdate;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.setRenderTarget(h),e.state.buffers.depth.setMask(!0),e.autoClear===!1&&e.clear(),e.render(C,t),e.xr.enabled=O,e.shadowMap.autoUpdate=V,e.setRenderTarget(D);const y=x.viewport;y!==void 0&&e.state.viewport(y),l.visible=!0},this.getRenderTarget=function(){return h},this.dispose=function(){h.dispose(),l.material.dispose()}}}w.ReflectorShader={name:"ReflectorShader",uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n uniform mat4 textureMatrix;\n varying vec4 vUv;\n\n #include <common>\n #include <logdepthbuf_pars_vertex>\n\n void main() {\n\n vUv = textureMatrix * vec4( position, 1.0 );\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n #include <logdepthbuf_vertex>\n\n }",fragmentShader:"\n uniform vec3 color;\n uniform sampler2D tDiffuse;\n varying vec4 vUv;\n\n #include <logdepthbuf_pars_fragment>\n\n float blendOverlay( float base, float blend ) {\n\n return( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n }\n\n vec3 blendOverlay( vec3 base, vec3 blend ) {\n\n return vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n }\n\n void main() {\n\n #include <logdepthbuf_fragment>\n\n vec4 base = texture2DProj( tDiffuse, vUv );\n gl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n\n }"};export{w as R};
|
@ -1 +1 @@
|
||||
import{bC as c,bD as s,bE as m,bl as d,az as t,bF as g,aH as M}from"./vendor.bbi2JiG-1715415693854.js";import{d as x}from"./dither.glsl.y2WXw1t-1715415693854.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{bC as c,bD as s,bE as m,bl as d,az as t,bF as g,aH as M}from"./vendor._sK3qi2g1715673460166.js";import{d as x}from"./dither.glsl.y2WXw1t-1715673460166.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,ba as _,ad as f,a6 as b,aq as w,o as l,x as d,E as c,a8 as x,L as o,bb as y,a as i,aa as m,ab as p,ac as T,ag as B,Y as e,az as M}from"./vendor.bbi2JiG-1715415693854.js";import{_ as v}from"./component.vue_vue_type_script_setup_true_lang.tUVj_7Ts1715415693854.js";import"./index.vue_vue_type_script_setup_true_lang.hTzvmp_Y1715415693854.js";import{_ as S}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.nqhDIS8n1715415693854.js";import"./shaderMaterial.OMDMM5LZ1715415693854.js";import"./MeshDiscardMaterial.LExn1yBO1715415693854.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),W=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:c(()=>[j,i(o(T),m(p(h)),null,16),P,z,C,k,i(S,m(p(a)),null,16),(l(),d(B,null,{default:c(()=>[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{W as default};
|
||||
import{a1 as u,a2 as t,ba as _,ad as f,a6 as b,aq as w,o as l,x as d,E as c,a8 as x,L as o,bb as y,a as i,aa as m,ab as p,ac as T,ag as B,Y as e,az as M}from"./vendor._sK3qi2g1715673460166.js";import{_ as v}from"./component.vue_vue_type_script_setup_true_lang.J6gHBnse1715673460166.js";import"./index.vue_vue_type_script_setup_true_lang.9Tshvxj11715673460166.js";import{_ as S}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.7571X9qq1715673460166.js";import"./shaderMaterial.dQivQvVN1715673460166.js";import"./MeshDiscardMaterial.7MEBFVI41715673460166.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),W=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:c(()=>[j,i(o(T),m(p(h)),null,16),P,z,C,k,i(S,m(p(a)),null,16),(l(),d(B,null,{default:c(()=>[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{W as default};
|
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.bbi2JiG-1715415693854.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._sK3qi2g1715673460166.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 +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,bh as S,r as V,E as y,a as f,ac as z,Y as d}from"./vendor.bbi2JiG-1715415693854.js";import{R as p,E as G}from"./EffectComposer.MN0PaO7v1715415693854.js";import{U as H}from"./UnrealBloomPass.sFkhmiCr1715415693854.js";import{F as U}from"./FilmPass.G7_LFInm1715415693854.js";import"./Pass.5_QJD6231715415693854.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:i,scene:l,sizes:s}=B(),c={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),c.strength,c.radius,c.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(l.value,n.value,i.value,s.width.value,s.height.value),b(new k,n.value,i.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,i)=>{const l=V("TresCanvas");return w(),v(l,{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,bh as S,r as V,E as y,a as f,ac as z,Y as d}from"./vendor._sK3qi2g1715673460166.js";import{R as p,E as G}from"./EffectComposer.9FcyN_Ya1715673460166.js";import{U as H}from"./UnrealBloomPass.P5slxu_k1715673460166.js";import{F as U}from"./FilmPass.Z1qA5Jev1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";const $=_({__name:"bloomPass",setup(g){const{camera:n,renderer:i,scene:l,sizes:s}=B(),c={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),c.strength,c.radius,c.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(l.value,n.value,i.value,s.width.value,s.height.value),b(new k,n.value,i.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,i)=>{const l=V("TresCanvas");return w(),v(l,{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,bB as k,_ as w}from"./vendor.bbi2JiG-1715415693854.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,bB as k,_ as w}from"./vendor._sK3qi2g1715673460166.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.bbi2JiG-1715415693854.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";const q=_({__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{q 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._sK3qi2g1715673460166.js";import{_ as C,l as B,a as x,b as k}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";const q=_({__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{q as default};
|
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{_ as r}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as t}from"./buildingsMarkA.vue_vue_type_script_setup_true_lang.AMgaE4cU1715415693854.js";import{_ as n,a as m}from"./radraB.vue_vue_type_script_setup_true_lang.AkIsVqsC1715415693854.js";import{a1 as f,o as a,x as o,E as s,ag as e,a as i}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";const C=f({__name:"buildingsMarkA",setup(p){return(_,l)=>(a(),o(r,{ref:"pagesShowRef"},{ability:s(()=>[(a(),o(e,null,{default:s(()=>[i(t,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),i(n,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(a(),o(e,null,{default:s(()=>[i(t,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),i(m,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{C as default};
|
||||
import{_ as r}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as t}from"./buildingsMarkA.vue_vue_type_script_setup_true_lang.Y2r7Crzj1715673460166.js";import{_ as n,a as m}from"./radraB.vue_vue_type_script_setup_true_lang.jZq4xJAH1715673460166.js";import{a1 as f,o as a,x as o,E as s,ag as e,a as i}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";const C=f({__name:"buildingsMarkA",setup(p){return(_,l)=>(a(),o(r,{ref:"pagesShowRef"},{ability:s(()=>[(a(),o(e,null,{default:s(()=>[i(t,{position:[210,30,-50],scale:.13,img:"./plugins/digitalCity/image/znsba.png",foremost:!1})]),_:1})),i(n,{size:200,radius:200,position:[210,30,-50],color:"#66ffff"}),(a(),o(e,null,{default:s(()=>[i(t,{position:[-410,19,-260],scale:200,img:"./plugins/digitalCity/image/znsb-err.png",sizeAttenuation:!0,foremost:!0})]),_:1})),i(m,{position:[-410,19,-260],height:60,color:"#ff0000"})]),_:1},512))}});export{C as default};
|
@ -1 +1 @@
|
||||
import{a1 as l,aD as f,bj as i,a2 as c,ad as p,a6 as u,o as m,c as d,Y as _,a8 as h,L as y}from"./vendor.bbi2JiG-1715415693854.js";const g=["position","scale"],v=["map"],w=l({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(o){let a,s;const e=o,{map:r}=([a,s]=f(()=>i({map:e.img})),a=await a,s(),a),n=c({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),t=p(null);return u(()=>{t.value&&(t.value.geometry=t.value.geometry.clone(),t.value.geometry.translate(e.offset[0],e.offset[1],0))}),(A,B)=>(m(),d("TresSprite",{ref_key:"tsRef",ref:t,position:e.position,scale:e.scale,renderOrder:"99999"},[_("TresSpriteMaterial",h(n,{map:y(r)}),null,16,v)],8,g))}});export{w as _};
|
||||
import{a1 as l,aD as f,bj as i,a2 as c,ad as p,a6 as u,o as m,c as d,Y as _,a8 as h,L as y}from"./vendor._sK3qi2g1715673460166.js";const g=["position","scale"],v=["map"],w=l({__name:"buildingsMarkA",props:{color:{default:"#fff"},position:{default:[0,0,0]},scale:{default:.1},img:{},offset:{default:[.344,.394]},foremost:{type:Boolean,default:!0},sizeAttenuation:{type:Boolean,default:!1}},async setup(o){let a,s;const e=o,{map:r}=([a,s]=f(()=>i({map:e.img})),a=await a,s(),a),n=c({color:e.color,transparent:!0,depthWrite:!1,sizeAttenuation:e.sizeAttenuation,toneMapped:!1,depthTest:!e.foremost}),t=p(null);return u(()=>{t.value&&(t.value.geometry=t.value.geometry.clone(),t.value.geometry.translate(e.offset[0],e.offset[1],0))}),(A,B)=>(m(),d("TresSprite",{ref_key:"tsRef",ref:t,position:e.position,scale:e.scale,renderOrder:"99999"},[_("TresSpriteMaterial",h(n,{map:y(r)}),null,16,v)],8,g))}});export{w as _};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as g,a2 as x,ad as u,aS as D,aT as i,r as k,o as C,x as T,E as M,a8 as p,a3 as f,a4 as F,a5 as w,a as y,L as b,aU as G,Y as o}from"./vendor.bbi2JiG-1715415693854.js";const S=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),E=o("TresGridHelper",{position:[0,-1,0]},null,-1),A=o("TresBoxGeometry",{args:[2,2,2]},null,-1),N=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),L=[A,N],P=o("TresAmbientLight",{intensity:1},null,-1),z=g({__name:"cameraControls",setup(U){const h={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:F,toneMapping:w},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 m(){console.log("change")}function _(){console.log("start")}function v(){console.log("end")}return(t,a)=>{const B=k("TresCanvas");return C(),T(B,p(h,{"window-size":""}),{default:M(()=>[S,y(b(G),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:m,onStart:_,onEnd:v}),null,16),E,o("TresMesh",{ref_key:"boxMeshRef",ref:r},L,512),P]),_:1},16)}}});export{z as default};
|
||||
import{a1 as g,a2 as x,ad as u,aS as D,aT as i,r as k,o as C,x as T,E as M,a8 as p,a3 as f,a4 as F,a5 as w,a as y,L as b,aU as G,Y as o}from"./vendor._sK3qi2g1715673460166.js";const S=o("TresPerspectiveCamera",{position:[5,5,5]},null,-1),E=o("TresGridHelper",{position:[0,-1,0]},null,-1),A=o("TresBoxGeometry",{args:[2,2,2]},null,-1),N=o("TresMeshBasicMaterial",{color:"orange",wireframe:""},null,-1),L=[A,N],P=o("TresAmbientLight",{intensity:1},null,-1),z=g({__name:"cameraControls",setup(U){const h={clearColor:"#82DBC5",shadows:!0,alpha:!1,shadowMapType:f,outputColorSpace:F,toneMapping:w},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 m(){console.log("change")}function _(){console.log("start")}function v(){console.log("end")}return(t,a)=>{const B=k("TresCanvas");return C(),T(B,p(h,{"window-size":""}),{default:M(()=>[S,y(b(G),p(n,{ref_key:"controlsRef",ref:e,"make-default":"",onChange:m,onStart:_,onEnd:v}),null,16),E,o("TresMesh",{ref_key:"boxMeshRef",ref:r},L,512),P]),_:1},16)}}});export{z as default};
|
@ -1 +1 @@
|
||||
import{a1 as b,a as x,an as P,ao as B,br as y,a2 as v,ap as A,aA as L,w as f,o as M,c as $,Y as n,aa as C,ab as k,az as z,a9 as D,aq as R,r as N,x as E,E as G,L as V,ac as q}from"./vendor.bbi2JiG-1715415693854.js";function h(e,t){return Math.random()*(t-e)+e}function m(e,t){return Math.floor(e+Math.random()*(t-e+1))}let l=0,c=0,i=null;const p=30;let u=0;const r=[];let _=10;class S{constructor(){this.path=[],this.rspeed=h(1,2),this.count=m(10,30),this.x=l/2+1,this.y=c/2+1,this.target={x:l/2,y:c/2},this.dist=0,this.angle=0,this.hue=u/5,this.life=1,this.updateAngle(),this.updateDist()}step(t){this.speed=this.rspeed*_,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.updateDist(),this.dist<this.speed&&(this.x=this.target.x,this.y=this.target.y,this.changeTarget()),this.path.push({x:this.x,y:this.y}),this.path.length>this.count&&this.path.shift(),this.life-=.001,this.life<=0&&(this.path=null,r.splice(t,1))}updateDist(){const t=this.target.x-this.x,s=this.target.y-this.y;this.dist=Math.sqrt(t*t+s*s)}updateAngle(){const t=this.target.x-this.x,s=this.target.y-this.y;this.angle=Math.atan2(s,t)}changeTarget(){switch(m(0,3)){case 0:this.target.y=this.y-p;break;case 1:this.target.x=this.x+p;break;case 2:this.target.y=this.y+p;break;case 3:this.target.x=this.x-p;break}this.updateAngle()}draw(){i.beginPath();const t=h(0,10);for(let a=0,o=this.path.length;a<o;a++)i[a===0?"moveTo":"lineTo"](this.path[a].x+h(-t,t),this.path[a].y+h(-t,t));let s=this.hue;s=30,i.strokeStyle="hsla(".concat(h(s-30,s),", 0%, 80%, ").concat(this.life/3,")"),i.lineWidth=h(.1,2),i.stroke()}}const H=(e,t,s,a)=>{l=e,c=t,i=s,u=0,_=a;for(let o=0;o<10;o++)r.push(new S)},I=e=>{_=e};function O(){u%10===0&&r.push(new S)}function W(){let e=r.length;for(;e--;)r[e].step(e)}function j(){i.globalCompositeOperation="destination-out",i.fillStyle="hsla(0, 0%, 10%, 0.1)",i.fillRect(0,0,l,c),i.globalCompositeOperation="lighter"}function F(){i.save(),i.translate(l/2,c/2),i.translate(-l/2,-c/2);let e=r.length;for(;e--;)r[e].draw(e);i.restore()}const U=()=>{O(),W(),j(),F(),u++},Y=["rotation-x"],J=["args"],T=1024,w=768,K=b({__name:"lightningPattern",props:{size:{default:[10,10]},color:{default:"#fff"},opacity:{default:.95},textureRepeat:{default:[1,1]},speed:{default:10}},setup(e){const t=e,s=x("canvas",{width:T,height:w,style:{backgroundColor:"green"}});P(s,document.createElement("div")),H(T,w,s.el.getContext("2d"),t.speed);const a=new B(s.el);a.wrapS=y,a.wrapT=y,a.repeat.set(t.textureRepeat[0],t.textureRepeat[1]);const o=v({color:t.color,map:a,side:A,transparent:!0,opacity:t.opacity,blending:L,flatShading:!0,depthTest:!0});f(()=>t.color,d=>{o.color=new z(d)}),f(()=>t.opacity,d=>{o.opacity=d}),f(()=>t.speed,d=>{I(t.speed)});const{onLoop:g}=D();return g(()=>{U(),a.needsUpdate=!0}),(d,at)=>(M(),$("TresMesh",{"rotation-x":-Math.PI/2},[n("TresPlaneGeometry",{args:t.size},null,8,J),n("TresMeshStandardMaterial",C(k(o)),null,16)],8,Y))}}),Q=n("TresPerspectiveCamera",{position:[15,20,0],fov:45,near:.1,far:1e4},null,-1),X=n("TresAmbientLight",{intensity:6},null,-1),Z=n("TresDirectionalLight",{position:[0,8,0],intensity:1,color:"#fff"},null,-1),tt=n("TresMesh",{position:[0,1,0]},[n("TresBoxGeometry",{args:[1,1,1]}),n("TresMeshNormalMaterial")],-1),et=n("TresAxesHelper",{args:[10],position:[0,0,0]},null,-1),st=n("TresGridHelper",{args:[10,10],position:[0,0,0]},null,-1),nt=b({__name:"canvasFloor",setup(e){const t=v({color:"#1a79fe",opacity:.95,speed:10}),s=new R({title:"canvas地面",expanded:!0});return s.addBinding(t,"color",{label:"颜色"}),s.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.01}),s.addBinding(t,"speed",{label:"速度",min:0,max:20,step:1}),(a,o)=>{const g=N("TresCanvas");return M(),E(g,{clearColor:"#000000","window-size":""},{default:G(()=>[Q,x(V(q),{enableDamping:"","auto-rotate":""}),X,Z,tt,x(K,C(k(t)),null,16),et,st]),_:1})}}});export{nt as default};
|
||||
import{a1 as b,a as x,an as P,ao as B,br as y,a2 as v,ap as A,aA as L,w as f,o as M,c as $,Y as n,aa as C,ab as k,az as z,a9 as D,aq as R,r as N,x as E,E as G,L as V,ac as q}from"./vendor._sK3qi2g1715673460166.js";function h(e,t){return Math.random()*(t-e)+e}function m(e,t){return Math.floor(e+Math.random()*(t-e+1))}let l=0,c=0,i=null;const p=30;let u=0;const r=[];let _=10;class S{constructor(){this.path=[],this.rspeed=h(1,2),this.count=m(10,30),this.x=l/2+1,this.y=c/2+1,this.target={x:l/2,y:c/2},this.dist=0,this.angle=0,this.hue=u/5,this.life=1,this.updateAngle(),this.updateDist()}step(t){this.speed=this.rspeed*_,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.updateDist(),this.dist<this.speed&&(this.x=this.target.x,this.y=this.target.y,this.changeTarget()),this.path.push({x:this.x,y:this.y}),this.path.length>this.count&&this.path.shift(),this.life-=.001,this.life<=0&&(this.path=null,r.splice(t,1))}updateDist(){const t=this.target.x-this.x,s=this.target.y-this.y;this.dist=Math.sqrt(t*t+s*s)}updateAngle(){const t=this.target.x-this.x,s=this.target.y-this.y;this.angle=Math.atan2(s,t)}changeTarget(){switch(m(0,3)){case 0:this.target.y=this.y-p;break;case 1:this.target.x=this.x+p;break;case 2:this.target.y=this.y+p;break;case 3:this.target.x=this.x-p;break}this.updateAngle()}draw(){i.beginPath();const t=h(0,10);for(let a=0,o=this.path.length;a<o;a++)i[a===0?"moveTo":"lineTo"](this.path[a].x+h(-t,t),this.path[a].y+h(-t,t));let s=this.hue;s=30,i.strokeStyle="hsla(".concat(h(s-30,s),", 0%, 80%, ").concat(this.life/3,")"),i.lineWidth=h(.1,2),i.stroke()}}const H=(e,t,s,a)=>{l=e,c=t,i=s,u=0,_=a;for(let o=0;o<10;o++)r.push(new S)},I=e=>{_=e};function O(){u%10===0&&r.push(new S)}function W(){let e=r.length;for(;e--;)r[e].step(e)}function j(){i.globalCompositeOperation="destination-out",i.fillStyle="hsla(0, 0%, 10%, 0.1)",i.fillRect(0,0,l,c),i.globalCompositeOperation="lighter"}function F(){i.save(),i.translate(l/2,c/2),i.translate(-l/2,-c/2);let e=r.length;for(;e--;)r[e].draw(e);i.restore()}const U=()=>{O(),W(),j(),F(),u++},Y=["rotation-x"],J=["args"],T=1024,w=768,K=b({__name:"lightningPattern",props:{size:{default:[10,10]},color:{default:"#fff"},opacity:{default:.95},textureRepeat:{default:[1,1]},speed:{default:10}},setup(e){const t=e,s=x("canvas",{width:T,height:w,style:{backgroundColor:"green"}});P(s,document.createElement("div")),H(T,w,s.el.getContext("2d"),t.speed);const a=new B(s.el);a.wrapS=y,a.wrapT=y,a.repeat.set(t.textureRepeat[0],t.textureRepeat[1]);const o=v({color:t.color,map:a,side:A,transparent:!0,opacity:t.opacity,blending:L,flatShading:!0,depthTest:!0});f(()=>t.color,d=>{o.color=new z(d)}),f(()=>t.opacity,d=>{o.opacity=d}),f(()=>t.speed,d=>{I(t.speed)});const{onLoop:g}=D();return g(()=>{U(),a.needsUpdate=!0}),(d,at)=>(M(),$("TresMesh",{"rotation-x":-Math.PI/2},[n("TresPlaneGeometry",{args:t.size},null,8,J),n("TresMeshStandardMaterial",C(k(o)),null,16)],8,Y))}}),Q=n("TresPerspectiveCamera",{position:[15,20,0],fov:45,near:.1,far:1e4},null,-1),X=n("TresAmbientLight",{intensity:6},null,-1),Z=n("TresDirectionalLight",{position:[0,8,0],intensity:1,color:"#fff"},null,-1),tt=n("TresMesh",{position:[0,1,0]},[n("TresBoxGeometry",{args:[1,1,1]}),n("TresMeshNormalMaterial")],-1),et=n("TresAxesHelper",{args:[10],position:[0,0,0]},null,-1),st=n("TresGridHelper",{args:[10,10],position:[0,0,0]},null,-1),nt=b({__name:"canvasFloor",setup(e){const t=v({color:"#1a79fe",opacity:.95,speed:10}),s=new R({title:"canvas地面",expanded:!0});return s.addBinding(t,"color",{label:"颜色"}),s.addBinding(t,"opacity",{label:"透明度",min:0,max:1,step:.01}),s.addBinding(t,"speed",{label:"速度",min:0,max:20,step:1}),(a,o)=>{const g=N("TresCanvas");return M(),E(g,{clearColor:"#000000","window-size":""},{default:G(()=>[Q,x(V(q),{enableDamping:"","auto-rotate":""}),X,Z,tt,x(K,C(k(t)),null,16),et,st]),_:1})}}});export{nt as default};
|
@ -1,4 +1,4 @@
|
||||
import{aw as nt,d6 as tt,ax as rt,ap as ot,b9 as it,bW as lt,bm as ze,cW as pn,at as qe,as as st,bf as ct,d7 as at,aI as hn,bX as vn,a1 as En,aD as ut,c0 as pt,ak as ht,o as je,c as vt,L as xe,a2 as Ke,ba as wt,l as ft,aq as mt,x as wn,E as $e,a8 as St,bb as Et,a9 as _t,a as Je,aa as fn,ab as mn,ac as gt,Y as pe,ag as It}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.Jw6gV5A_1715415693854.js";import"./index.vue_vue_type_script_setup_true_lang.hTzvmp_Y1715415693854.js";import{_ as yt}from"./index.vue_vue_type_script_setup_true_lang.cIPSGNOT1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./shaderMaterial.OMDMM5LZ1715415693854.js";import"./Pass.5_QJD6231715415693854.js";const dt=h=>h&&h.isCubeTexture;class Ct extends nt{constructor(p,w){var g,I;const x=dt(p),P=((I=x?(g=p.image[0])==null?void 0:g.width:p.image.width)!=null?I:1024)/4,y=Math.floor(Math.log2(P)),A=Math.pow(2,y),X=3*Math.max(A,16*7),K=4*A,ee=[x?"#define ENVMAP_TYPE_CUBE":"","#define CUBEUV_TEXEL_WIDTH ".concat(1/X),"#define CUBEUV_TEXEL_HEIGHT ".concat(1/K),"#define CUBEUV_MAX_MIP ".concat(y,".0")],ce="\n varying vec3 vWorldPosition;\n void main() \n {\n vec4 worldPosition = ( modelMatrix * vec4( position, 1.0 ) );\n vWorldPosition = worldPosition.xyz;\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",we=ee.join("\n")+"\n #define ENVMAP_TYPE_CUBE_UV\n varying vec3 vWorldPosition;\n uniform float radius;\n uniform float height;\n uniform float angle;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube map;\n #else\n uniform sampler2D map;\n #endif\n // From: https://www.shadertoy.com/view/4tsBD7\n float diskIntersectWithBackFaceCulling( vec3 ro, vec3 rd, vec3 c, vec3 n, float r ) \n {\n float d = dot ( rd, n );\n \n if( d > 0.0 ) { return 1e6; }\n \n vec3 o = ro - c;\n float t = - dot( n, o ) / d;\n vec3 q = o + rd * t;\n \n return ( dot( q, q ) < r * r ) ? t : 1e6;\n }\n // From: https://www.iquilezles.org/www/articles/intersectors/intersectors.htm\n float sphereIntersect( vec3 ro, vec3 rd, vec3 ce, float ra ) \n {\n vec3 oc = ro - ce;\n float b = dot( oc, rd );\n float c = dot( oc, oc ) - ra * ra;\n float h = b * b - c;\n \n if( h < 0.0 ) { return -1.0; }\n \n h = sqrt( h );\n \n return - b + h;\n }\n vec3 project() \n {\n vec3 p = normalize( vWorldPosition );\n vec3 camPos = cameraPosition;\n camPos.y -= height;\n float intersection = sphereIntersect( camPos, p, vec3( 0.0 ), radius );\n if( intersection > 0.0 ) {\n \n vec3 h = vec3( 0.0, - height, 0.0 );\n float intersection2 = diskIntersectWithBackFaceCulling( camPos, p, h, vec3( 0.0, 1.0, 0.0 ), radius );\n p = ( camPos + min( intersection, intersection2 ) * p ) / radius;\n } else {\n p = vec3( 0.0, 1.0, 0.0 );\n }\n return p;\n }\n #include <common>\n #include <cube_uv_reflection_fragment>\n void main() \n {\n vec3 projectedWorldPosition = project();\n \n #ifdef ENVMAP_TYPE_CUBE\n vec3 outcolor = textureCube( map, projectedWorldPosition ).rgb;\n #else\n vec3 direction = normalize( projectedWorldPosition );\n vec2 uv = equirectUv( direction );\n vec3 outcolor = texture2D( map, uv ).rgb;\n #endif\n gl_FragColor = vec4( outcolor, 1.0 );\n #include <tonemapping_fragment>\n #include <".concat(parseInt(it.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment",">\n }\n "),fe={map:{value:p},height:{value:(w==null?void 0:w.height)||15},radius:{value:(w==null?void 0:w.radius)||100}},G=new tt(1,16),me=new rt({uniforms:fe,fragmentShader:we,vertexShader:ce,side:ot});super(G,me)}set radius(p){this.material.uniforms.radius.value=p}get radius(){return this.material.uniforms.radius.value}set height(p){this.material.uniforms.height.value=p}get height(){return this.material.uniforms.height.value}}/*!
|
||||
import{aw as nt,d6 as tt,ax as rt,ap as ot,b9 as it,bW as lt,bm as ze,cW as pn,at as qe,as as st,bf as ct,d7 as at,aI as hn,bX as vn,a1 as En,aD as ut,c0 as pt,ak as ht,o as je,c as vt,L as xe,a2 as Ke,ba as wt,l as ft,aq as mt,x as wn,E as $e,a8 as St,bb as Et,a9 as _t,a as Je,aa as fn,ab as mn,ac as gt,Y as pe,ag as It}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.io1rwA8t1715673460166.js";import"./index.vue_vue_type_script_setup_true_lang.9Tshvxj11715673460166.js";import{_ as yt}from"./index.vue_vue_type_script_setup_true_lang.k99aBVM11715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./shaderMaterial.dQivQvVN1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";const dt=h=>h&&h.isCubeTexture;class Ct extends nt{constructor(p,w){var g,I;const x=dt(p),P=((I=x?(g=p.image[0])==null?void 0:g.width:p.image.width)!=null?I:1024)/4,y=Math.floor(Math.log2(P)),A=Math.pow(2,y),X=3*Math.max(A,16*7),K=4*A,ee=[x?"#define ENVMAP_TYPE_CUBE":"","#define CUBEUV_TEXEL_WIDTH ".concat(1/X),"#define CUBEUV_TEXEL_HEIGHT ".concat(1/K),"#define CUBEUV_MAX_MIP ".concat(y,".0")],ce="\n varying vec3 vWorldPosition;\n void main() \n {\n vec4 worldPosition = ( modelMatrix * vec4( position, 1.0 ) );\n vWorldPosition = worldPosition.xyz;\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n }\n ",we=ee.join("\n")+"\n #define ENVMAP_TYPE_CUBE_UV\n varying vec3 vWorldPosition;\n uniform float radius;\n uniform float height;\n uniform float angle;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube map;\n #else\n uniform sampler2D map;\n #endif\n // From: https://www.shadertoy.com/view/4tsBD7\n float diskIntersectWithBackFaceCulling( vec3 ro, vec3 rd, vec3 c, vec3 n, float r ) \n {\n float d = dot ( rd, n );\n \n if( d > 0.0 ) { return 1e6; }\n \n vec3 o = ro - c;\n float t = - dot( n, o ) / d;\n vec3 q = o + rd * t;\n \n return ( dot( q, q ) < r * r ) ? t : 1e6;\n }\n // From: https://www.iquilezles.org/www/articles/intersectors/intersectors.htm\n float sphereIntersect( vec3 ro, vec3 rd, vec3 ce, float ra ) \n {\n vec3 oc = ro - ce;\n float b = dot( oc, rd );\n float c = dot( oc, oc ) - ra * ra;\n float h = b * b - c;\n \n if( h < 0.0 ) { return -1.0; }\n \n h = sqrt( h );\n \n return - b + h;\n }\n vec3 project() \n {\n vec3 p = normalize( vWorldPosition );\n vec3 camPos = cameraPosition;\n camPos.y -= height;\n float intersection = sphereIntersect( camPos, p, vec3( 0.0 ), radius );\n if( intersection > 0.0 ) {\n \n vec3 h = vec3( 0.0, - height, 0.0 );\n float intersection2 = diskIntersectWithBackFaceCulling( camPos, p, h, vec3( 0.0, 1.0, 0.0 ), radius );\n p = ( camPos + min( intersection, intersection2 ) * p ) / radius;\n } else {\n p = vec3( 0.0, 1.0, 0.0 );\n }\n return p;\n }\n #include <common>\n #include <cube_uv_reflection_fragment>\n void main() \n {\n vec3 projectedWorldPosition = project();\n \n #ifdef ENVMAP_TYPE_CUBE\n vec3 outcolor = textureCube( map, projectedWorldPosition ).rgb;\n #else\n vec3 direction = normalize( projectedWorldPosition );\n vec2 uv = equirectUv( direction );\n vec3 outcolor = texture2D( map, uv ).rgb;\n #endif\n gl_FragColor = vec4( outcolor, 1.0 );\n #include <tonemapping_fragment>\n #include <".concat(parseInt(it.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment",">\n }\n "),fe={map:{value:p},height:{value:(w==null?void 0:w.height)||15},radius:{value:(w==null?void 0:w.radius)||100}},G=new tt(1,16),me=new rt({uniforms:fe,fragmentShader:we,vertexShader:ce,side:ot});super(G,me)}set radius(p){this.material.uniforms.radius.value=p}get radius(){return this.material.uniforms.radius.value}set height(p){this.material.uniforms.height.value=p}get height(){return this.material.uniforms.height.value}}/*!
|
||||
fflate - fast JavaScript compression/decompression
|
||||
<https://101arrowz.github.io/fflate>
|
||||
Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
|
@ -1 +1 @@
|
||||
import{aD as S,bM as $,l as R,a6 as B,o as c,c as g,G as A,H as N,Y as l,au as T,aw as z,cv as D,a9 as M,a1 as F,a2 as x,r as O,x as E,E as b,a8 as V,a as w,aa as Y,ab as H,L as I,ac as J,ag as X}from"./vendor.bbi2JiG-1715415693854.js";import{l as q}from"./utils.ZvNxIta61715415693854.js";import{c as K,d as Q,a as U}from"./ExtensionUtilities.uSEH3D8k1715415693854.js";import{m as W}from"./mercator.a2Hae4Rp1715415693854.js";import"./Water2.-QM5wDhX1715415693854.js";import"./Reflector.u_rg7Evg1715415693854.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),oe={__name:"chinaMapMesh",async setup(C){let o,r;(()=>{T.prototype.computeBoundsTree=K,T.prototype.disposeBoundsTree=Q,z.prototype.raycast=U})();const f=W().center([104,37.5]).translate([0,0]),h=([o,r]=S(()=>q("./plugins/simpleGIS/json/china.json","features")),o=await o,r(),o),p={depth:10,bevelEnabled:!1},_=[];(()=>{h.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const m=new D;for(let i=0;i<s.length;i++){const[y,v]=f(s[i]);i===0&&m.moveTo(y,-v),m.lineTo(y,-v)}_.push({shape:m,properties:e.properties})})})})})();const P=new $({color:"#3480C4",linewidth:1,linecap:"round"}),d=R();B(()=>{d.value&&d.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,P];e.material=t})});let a=null;(()=>{const e=document.createElement("div");e.className="tooltip",e.style.border="1px solid white",e.style.position="absolute",e.style.color="white",e.style.padding="0px 6px",e.style.whiteSpace="no-wrap",e.style.visibility="hidden",document.body.appendChild(e),a=e})();const k=(e,t)=>{e.object.material[0].color.set(16711680),a.innerText=e.object.properties.name,a.style.visibility="visible"},L=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),a.style.visibility="hidden"},j=(e,t)=>{a.style.left="".concat(t.clientX+6,"px"),a.style.top="".concat(t.clientY+6,"px")},{onLoop:G}=M();return G(()=>{}),(e,t)=>(c(),g("TresGroup",{ref_key:"tgRef",ref:d},[(c(),g(A,null,N(_,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:k,onPointerLeave:L,onPointerMove:j},[l("TresExtrudeGeometry",{args:[n.shape,p]},null,8,ee),te],40,Z)),64))],512))}},ae=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),me=F({__name:"chinaMap",setup(C){const o=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:u}=M();return u(()=>{}),B(()=>{}),(f,h)=>{const p=O("TresCanvas");return c(),E(p,V(o,{"window-size":""}),{default:b(()=>[ae,w(I(J),Y(H(r)),null,16),(c(),E(X,null,{default:b(()=>[w(oe)]),_:1}))]),_:1},16)}}});export{me as default};
|
||||
import{aD as S,bM as $,l as R,a6 as B,o as c,c as g,G as A,H as N,Y as l,au as T,aw as z,cv as D,a9 as M,a1 as F,a2 as x,r as O,x as E,E as b,a8 as V,a as w,aa as Y,ab as H,L as I,ac as J,ag as X}from"./vendor._sK3qi2g1715673460166.js";import{l as q}from"./utils.AVJJNPlc1715673460166.js";import{c as K,d as Q,a as U}from"./ExtensionUtilities.jG_c6sY11715673460166.js";import{m as W}from"./mercator.a2Hae4Rp1715673460166.js";import"./Water2.lmyPwxGF1715673460166.js";import"./Reflector.gbDWuAel1715673460166.js";const Z=["properties","renderOrder"],ee=["args"],te=l("TresMeshBasicMaterial",{color:"#2defff",transparent:!0,opacity:.6},null,-1),oe={__name:"chinaMapMesh",async setup(C){let o,r;(()=>{T.prototype.computeBoundsTree=K,T.prototype.disposeBoundsTree=Q,z.prototype.raycast=U})();const f=W().center([104,37.5]).translate([0,0]),h=([o,r]=S(()=>q("./plugins/simpleGIS/json/china.json","features")),o=await o,r(),o),p={depth:10,bevelEnabled:!1},_=[];(()=>{h.forEach(e=>{e.geometry.coordinates.forEach(n=>{n.forEach(s=>{const m=new D;for(let i=0;i<s.length;i++){const[y,v]=f(s[i]);i===0&&m.moveTo(y,-v),m.lineTo(y,-v)}_.push({shape:m,properties:e.properties})})})})})();const P=new $({color:"#3480C4",linewidth:1,linecap:"round"}),d=R();B(()=>{d.value&&d.value.children.forEach(e=>{e.geometry.computeBoundsTree();const t=[e.material,P];e.material=t})});let a=null;(()=>{const e=document.createElement("div");e.className="tooltip",e.style.border="1px solid white",e.style.position="absolute",e.style.color="white",e.style.padding="0px 6px",e.style.whiteSpace="no-wrap",e.style.visibility="hidden",document.body.appendChild(e),a=e})();const k=(e,t)=>{e.object.material[0].color.set(16711680),a.innerText=e.object.properties.name,a.style.visibility="visible"},L=(e,t)=>{console.log("pointer-leave",e,t),e.material[0].color.set(3010559),a.style.visibility="hidden"},j=(e,t)=>{a.style.left="".concat(t.clientX+6,"px"),a.style.top="".concat(t.clientY+6,"px")},{onLoop:G}=M();return G(()=>{}),(e,t)=>(c(),g("TresGroup",{ref_key:"tgRef",ref:d},[(c(),g(A,null,N(_,(n,s)=>l("TresMesh",{key:"".concat(s),properties:n.properties,renderOrder:s,onPointerEnter:k,onPointerLeave:L,onPointerMove:j},[l("TresExtrudeGeometry",{args:[n.shape,p]},null,8,ee),te],40,Z)),64))],512))}},ae=l("TresPerspectiveCamera",{position:[0,0,166],fov:75,near:.1,far:1e3,"look-at":[0,0,0]},null,-1),me=F({__name:"chinaMap",setup(C){const o=x({clearColor:"#201919"}),r=x({enableDamping:!0,dampingFactor:.05}),{onLoop:u}=M();return u(()=>{}),B(()=>{}),(f,h)=>{const p=O("TresCanvas");return c(),E(p,V(o,{"window-size":""}),{default:b(()=>[ae,w(I(J),Y(H(r)),null,16),(c(),E(X,null,{default:b(()=>[w(oe)]),_:1}))]),_:1},16)}}});export{me as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.u58TsNcG1715415693854.js";import{a1 as p,aD as g,aE as w,a2 as v,aq as x,o,c as y,Y as b,L as m,x as n,E as l,a as _,a8 as B,ag as f,ad as R,a6 as C,a9 as $}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";import"./Water2.-QM5wDhX1715415693854.js";import"./Reflector.u_rg7Evg1715415693854.js";const k={position:[0,0,-2]},E=["object"],G=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=g(()=>w("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,t(),e);r.renderOrder=9999,a.mesh_0.material.transparent=!0,a.mesh_0.material.depthWrite=!0,a.mesh_0.material.depthTest=!0,a.mesh_0.material.opacity=.7;const s=v({color:"#f857cc",scale:3.1,modelVisible:!0}),i=new x({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(),y("TresGroup",k,[b("primitive",{object:m(r)},null,8,E),(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};
|
||||
import{_ as u}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as h}from"./threeWater2.vue_vue_type_script_setup_true_lang.LiNtDOc71715673460166.js";import{a1 as p,aD as g,aE as w,a2 as v,aq as x,o,c as y,Y as b,L as m,x as n,E as l,a as _,a8 as B,ag as f,ad as R,a6 as C,a9 as $}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";import"./Water2.lmyPwxGF1715673460166.js";import"./Reflector.gbDWuAel1715673460166.js";const k={position:[0,0,-2]},E=["object"],G=p({__name:"index",async setup(d){let e,t;const{scene:r,nodes:a}=([e,t]=g(()=>w("https://a.amap.com/jsapi_demos/static/gltf-online/shanghai/scene.gltf")),e=await e,t(),e);r.renderOrder=9999,a.mesh_0.material.transparent=!0,a.mesh_0.material.depthWrite=!0,a.mesh_0.material.depthTest=!0,a.mesh_0.material.opacity=.7;const s=v({color:"#f857cc",scale:3.1,modelVisible:!0}),i=new x({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(),y("TresGroup",k,[b("primitive",{object:m(r)},null,8,E),(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 +1 @@
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.u58TsNcG1715415693854.js";import{a1 as _,aD as h,aE as f,a2 as w,aq as x,o as a,c as y,Y as g,L as c,x as r,E as o,a as m,a8 as B,ag as p}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";import"./Water2.-QM5wDhX1715415693854.js";import"./Reflector.u_rg7Evg1715415693854.js";const C={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},k=["object"],G=_({__name:"indexBackup",async setup(l){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 x({title:"河流参数",expanded:!0}).addBinding(i,"color"),(j,v)=>(a(),y("TresGroup",C,[g("primitive",{object:c(n)},null,8,k),(a(),r(p,null,{default:o(()=>[m(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),V=_({__name:"cityRiver2",setup(l){return(e,s)=>(a(),r(d,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!0},{ability:o(()=>[(a(),r(p,null,{default:o(()=>[m(G)]),_:1}))]),_:1}))}});export{V as default};
|
||||
import{_ as d}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as u}from"./threeWater2.vue_vue_type_script_setup_true_lang.LiNtDOc71715673460166.js";import{a1 as _,aD as h,aE as f,a2 as w,aq as x,o as a,c as y,Y as g,L as c,x as r,E as o,a as m,a8 as B,ag as p}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";import"./Water2.lmyPwxGF1715673460166.js";import"./Reflector.gbDWuAel1715673460166.js";const C={position:[-1553.1671459739368,160.56147161757758,1938.3955926284068],scale:400,rotation:[-3.141592653589793,1.0149796591022564,-3.141592653589793]},k=["object"],G=_({__name:"indexBackup",async setup(l){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 x({title:"河流参数",expanded:!0}).addBinding(i,"color"),(j,v)=>(a(),y("TresGroup",C,[g("primitive",{object:c(n)},null,8,k),(a(),r(p,null,{default:o(()=>[m(u,B({"position-y":1e-4,waterGeometry:c(t).mesh_0.geometry},i),null,16,["waterGeometry"])]),_:1}))]))}}),V=_({__name:"cityRiver2",setup(l){return(e,s)=>(a(),r(d,{showAxesHelper:!1,showGridHelper:!1,showBuildings:!0},{ability:o(()=>[(a(),r(p,null,{default:o(()=>[m(G)]),_:1}))]),_:1}))}});export{V as default};
|
@ -1 +1 @@
|
||||
import{a1 as m,l as f,b2 as o,b3 as l,a6 as h,aq as g,r as w,o as d,x,E as T,a as C,L as s,ac as b,Y as e,c as v,H as B,aT as i,ap as I,G as k}from"./vendor.bbi2JiG-1715415693854.js";const L=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),M=e("TresGridHelper",{args:[2,10]},null,-1),P=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),y=["args"],E=["color","side","clipIntersection"],z=m({__name:"clippingMaterial",setup(G){const t=f(),c=[];for(let n=1;n<30;n+=2)c.push(n);const a=[new o(new l(1,0,0),0),new o(new l(0,-1,0),0),new o(new l(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};h(()=>{if(t.value){const n=t.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new g({title:"裁剪参数",expanded:!0});return r.addBinding(a[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(a[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(a[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,H)=>{const _=w("TresCanvas");return d(),x(_,{ref_key:"tcRef",ref:t,"window-size":""},{default:T(()=>[L,M,P,C(s(b)),e("TresGroup",null,[(d(),v(k,null,B(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,y),e("TresMeshLambertMaterial",{color:[s(i).randInt(.1,1),s(i).randInt(0,1),s(i).randInt(0,1)],side:s(I),clippingPlanes:a,clipIntersection:u.clipIntersection},null,8,E)])),64))])]),_:1},512)}}});export{z as default};
|
||||
import{a1 as m,l as f,b2 as o,b3 as l,a6 as h,aq as g,r as w,o as d,x,E as T,a as C,L as s,ac as b,Y as e,c as v,H as B,aT as i,ap as I,G as k}from"./vendor._sK3qi2g1715673460166.js";const L=e("TresPerspectiveCamera",{fov:40,near:.1,far:200,position:[-1.5,2.5,3]},null,-1),M=e("TresGridHelper",{args:[2,10]},null,-1),P=e("TresHemisphereLight",{args:[16777215,526344,4.5],position:[-1.25,1,1.25]},null,-1),y=["args"],E=["color","side","clipIntersection"],z=m({__name:"clippingMaterial",setup(G){const t=f(),c=[];for(let n=1;n<30;n+=2)c.push(n);const a=[new o(new l(1,0,0),0),new o(new l(0,-1,0),0),new o(new l(0,0,-1),0)],u={clipIntersection:!0,planeConstant:0,showHelpers:!1};h(()=>{if(t.value){const n=t.value.context.renderer.value;n.localClippingEnabled=!0}});const r=new g({title:"裁剪参数",expanded:!0});return r.addBinding(a[0],"constant",{label:"x",min:-1,max:1,step:.1}),r.addBinding(a[1],"constant",{label:"y",min:-1,max:1,step:.1}),r.addBinding(a[2],"constant",{label:"z",min:-1,max:1,step:.1}),(n,H)=>{const _=w("TresCanvas");return d(),x(_,{ref_key:"tcRef",ref:t,"window-size":""},{default:T(()=>[L,M,P,C(s(b)),e("TresGroup",null,[(d(),v(k,null,B(c,p=>e("TresMesh",{key:p},[e("TresSphereGeometry",{args:[p/30,48,24]},null,8,y),e("TresMeshLambertMaterial",{color:[s(i).randInt(.1,1),s(i).randInt(0,1),s(i).randInt(0,1)],side:s(I),clippingPlanes:a,clipIntersection:u.clipIntersection},null,8,E)])),64))])]),_:1},512)}}});export{z as default};
|
@ -1 +1 @@
|
||||
import{a1 as m,aD as d,bj as _,cm as s,cc as g,b3 as r,az as l,o as v,c as w,L as f,a9 as h}from"./vendor.bbi2JiG-1715415693854.js";import{S as i}from"./SPE.Y31IVjpB1715415693854.js";const b=["object","position"],B=m({__name:"cloudMesh",props:{cPosition:{default:[0,200,0]}},async setup(y){let e,n;const{map:t}=([e,n]=d(()=>_({map:"./plugins/digitalCity/image/cloud.png"})),e=await e,n(),e);t.magFilter=s,t.minFilter=s;const a=new i.Group({texture:{value:t},blending:g,depthTest:!1,depthWrite:!1}),p=new i.Emitter({type:i.distributions.BOX,particleCount:26,maxAge:{value:10},position:{value:new r(0,0,0),spread:new r(2e3,100,2e3)},velocity:{value:new r(0,0,30)},wiggle:{spread:10},size:{value:520,spread:[100,220],randomise:!0},drag:{value:220},opacity:{value:[0,1,0],randomise:!0},color:{value:new l(1,1,1),spread:new l(.1,.1,.1)},angle:{value:[0,Math.PI*1/8]}});a.addEmitter(p);const c=a.mesh,{onLoop:u}=h();return u(({dt:o})=>{a.tick(o)}),(o,C)=>(v(),w("primitive",{object:f(c),position:o.cPosition,renderOrder:3e3},null,8,b))}});export{B as _};
|
||||
import{a1 as m,aD as d,bj as _,cm as s,cc as g,b3 as r,az as l,o as v,c as w,L as f,a9 as h}from"./vendor._sK3qi2g1715673460166.js";import{S as i}from"./SPE.VTYx4B4K1715673460166.js";const b=["object","position"],B=m({__name:"cloudMesh",props:{cPosition:{default:[0,200,0]}},async setup(y){let e,n;const{map:t}=([e,n]=d(()=>_({map:"./plugins/digitalCity/image/cloud.png"})),e=await e,n(),e);t.magFilter=s,t.minFilter=s;const a=new i.Group({texture:{value:t},blending:g,depthTest:!1,depthWrite:!1}),p=new i.Emitter({type:i.distributions.BOX,particleCount:26,maxAge:{value:10},position:{value:new r(0,0,0),spread:new r(2e3,100,2e3)},velocity:{value:new r(0,0,30)},wiggle:{spread:10},size:{value:520,spread:[100,220],randomise:!0},drag:{value:220},opacity:{value:[0,1,0],randomise:!0},color:{value:new l(1,1,1),spread:new l(.1,.1,.1)},angle:{value:[0,Math.PI*1/8]}});a.addEmitter(p);const c=a.mesh,{onLoop:u}=h();return u(({dt:o})=>{a.tick(o)}),(o,C)=>(v(),w("primitive",{object:f(c),position:o.cPosition,renderOrder:3e3},null,8,b))}});export{B as _};
|
@ -1 +1 @@
|
||||
import{a1 as i,b5 as p,aw as l,bO as m,ay as r,a6 as f,o as u,c as y,L as d,az as _}from"./vendor.bbi2JiG-1715415693854.js";const v=["object"],b=i({__name:"cloudPoints",props:{model:{},color:{default:"#FFF"},opacity:{default:1},isRemoveSrc:{type:Boolean,default:!1}},setup(n){const o=n,t=new p;return o.model.traverse(e=>{if(e instanceof l){const s=e.geometry.clone();e.geometry.dispose(),e.material.dispose();const a=new m({color:o.color});a.opacity=o.opacity,a.transparent=!0;const c=new r(s,a);t.add(c),o.model.parent&&t.applyMatrix4(o.model.parent.matrix),o.isRemoveSrc&&e.removeFromParent()}}),f(()=>{o.color&&t.traverse(e=>{e instanceof r&&(e.material.color=new _(o.color))}),o.opacity&&t.traverse(e=>{e instanceof r&&(e.material.opacity=o.opacity)})}),(e,s)=>(u(),y("primitive",{object:d(t)},null,8,v))}});export{b as _};
|
||||
import{a1 as i,b5 as p,aw as l,bO as m,ay as r,a6 as f,o as u,c as y,L as d,az as _}from"./vendor._sK3qi2g1715673460166.js";const v=["object"],b=i({__name:"cloudPoints",props:{model:{},color:{default:"#FFF"},opacity:{default:1},isRemoveSrc:{type:Boolean,default:!1}},setup(n){const o=n,t=new p;return o.model.traverse(e=>{if(e instanceof l){const s=e.geometry.clone();e.geometry.dispose(),e.material.dispose();const a=new m({color:o.color});a.opacity=o.opacity,a.transparent=!0;const c=new r(s,a);t.add(c),o.model.parent&&t.applyMatrix4(o.model.parent.matrix),o.isRemoveSrc&&e.removeFromParent()}}),f(()=>{o.color&&t.traverse(e=>{e instanceof r&&(e.material.color=new _(o.color))}),o.opacity&&t.traverse(e=>{e instanceof r&&(e.material.opacity=o.opacity)})}),(e,s)=>(u(),y("primitive",{object:d(t)},null,8,v))}});export{b as _};
|
1
dist/js/clouds.9Qbcwl8N1715673460166.js
vendored
Normal file
1
dist/js/clouds.9Qbcwl8N1715673460166.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as r}from"./cloudMesh.vue_vue_type_script_setup_true_lang.uXoIriO41715673460166.js";import{a1 as s,o as a,x as o,E as t,ag as m,a as _}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";import"./SPE.VTYx4B4K1715673460166.js";const B=s({__name:"clouds",setup(i){return(p,n)=>(a(),o(e,null,{ability:t(()=>[(a(),o(m,null,{default:t(()=>[_(r)]),_:1}))]),_:1}))}});export{B as default};
|
1
dist/js/clouds.FJU529GO1715415693854.js
vendored
1
dist/js/clouds.FJU529GO1715415693854.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as r}from"./cloudMesh.vue_vue_type_script_setup_true_lang.Cb_WgEuW1715415693854.js";import{a1 as s,o as a,x as o,E as t,ag as m,a as _}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";import"./SPE.Y31IVjpB1715415693854.js";const B=s({__name:"clouds",setup(i){return(p,n)=>(a(),o(e,null,{ability:t(()=>[(a(),o(m,null,{default:t(()=>[_(r)]),_:1}))]),_:1}))}});export{B as default};
|
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{m as c,_ as i}from"./mergeTres.lSe5Shjd1715415693854.js";import{a1 as _,a2 as p,r as m,o as l,c as d,a as s,E as u,a8 as h,G as f,ah as C,ai as v,Y as e,_ as b}from"./vendor.bbi2JiG-1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";const t=a=>(C("data-v-06a790bb"),a=a(),v(),a),T=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),x=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),M=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=_({__name:"cubeMesh",setup(a){const o=[116.52,39.79],r=p({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>{const n=m("TresCanvas");return l(),d(f,null,[s(c,{center:o}),s(n,h({id:"tresCanvas",ref:"tcRef"},r),{default:u(()=>[T,x,M,s(i,{center:o})]),_:1},16)],64)}}}),w=b(g,[["__scopeId","data-v-06a790bb"]]);export{w as default};
|
||||
import{m as c,_ as i}from"./mergeTres.OvNiBIA51715673460166.js";import{a1 as _,a2 as p,r as m,o as l,c as d,a as s,E as u,a8 as h,G as f,ah as C,ai as v,Y as e,_ as b}from"./vendor._sK3qi2g1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";const t=a=>(C("data-v-06a790bb"),a=a(),v(),a),T=t(()=>e("TresPerspectiveCamera",{fov:60,near:.1,far:1e3},null,-1)),x=t(()=>e("TresAmbientLight",{intensity:.5},null,-1)),M=t(()=>e("TresMesh",{position:[0,0,500]},[e("TresBoxGeometry",{args:[1e3,1e3,1e3]}),e("TresMeshNormalMaterial")],-1)),g=_({__name:"cubeMesh",setup(a){const o=[116.52,39.79],r=p({alpha:!0,antialias:!0,autoClear:!1,disableRender:!0});return(B,I)=>{const n=m("TresCanvas");return l(),d(f,null,[s(c,{center:o}),s(n,h({id:"tresCanvas",ref:"tcRef"},r),{default:u(()=>[T,x,M,s(i,{center:o})]),_:1},16)],64)}}}),w=b(g,[["__scopeId","data-v-06a790bb"]]);export{w as default};
|
@ -1 +1 @@
|
||||
import{a1 as l,aD as r,w as i,L as t,o as _,c as d,Y as u,I as m,t as p,a as f,cr as h,Z as g,bB as x}from"./vendor.bbi2JiG-1715415693854.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},B=l({__name:"default",async setup(b){let e,a;const{hasFinishLoading:n,progress:s}=([e,a]=r(()=>x()),e=await e,a(),e);return i(()=>s.value,async(o,c)=>{console.log(o,c)}),(o,c)=>t(n)?g("",!0):(_(),d("div",w,[u("div",y,[m(" 载入中... "+p(t(s))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{B as _};
|
||||
import{a1 as l,aD as r,w as i,L as t,o as _,c as d,Y as u,I as m,t as p,a as f,cr as h,Z as g,bB as x}from"./vendor._sK3qi2g1715673460166.js";const w={key:0,class:"absolute bg-grey-600 t-0 l-0 w-full h-full z-999999 flex justify-center items-center text-black font-mono bg-black"},y={class:"w-200px text-white"},B=l({__name:"default",async setup(b){let e,a;const{hasFinishLoading:n,progress:s}=([e,a]=r(()=>x()),e=await e,a(),e);return i(()=>s.value,async(o,c)=>{console.log(o,c)}),(o,c)=>t(n)?g("",!0):(_(),d("div",w,[u("div",y,[m(" 载入中... "+p(t(s))+" % ",1),f(t(h),{class:"text-yellow"})])]))}});export{B as _};
|
@ -1 +1 @@
|
||||
var f=Object.defineProperty;var _=(t,e,s)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var l=(t,e,s)=>(_(t,typeof e!="symbol"?e+"":e,s),s);import{a1 as n,ad as m,ak as c,a7 as d,o as i,c as h,a0 as y,l as p,a6 as u}from"./vendor.bbi2JiG-1715415693854.js";import{L as v,D as g,C as x}from"./vanilla.Jw6gV5A_1715415693854.js";class C extends v{constructor(e={}){super(e)}init(){const s=Object.keys(this).filter(a=>a.startsWith("layercoms_")).map(a=>this[a]);this.layers=s,this.refresh()}}class k extends g{constructor(s={}){super(s);l(this,"attach","layercoms_depth_");this.attach+=this.uuid.substring(this.uuid.length-12)}}class B extends x{constructor(s={}){super(s);l(this,"attach","layercoms_color_");this.attach+=this.uuid.substring(this.uuid.length-12)}}const b=["args"],T=n({__name:"component",props:{layers:{},color:{},alpha:{},lighting:{},name:{}},setup(t,{expose:e}){const s=t,a=m(),{extend:r}=c();return r({LayerMaterialCom:C}),e({LayerMaterialClass:a}),d(()=>{a.value.init()}),(o,R)=>(i(),h("TresLayerMaterialCom",{ref_key:"LayerMaterialClass",ref:a,args:[s]},[y(o.$slots,"default")],8,b))}}),L=["args"],W=n({__name:"color",props:{color:{},alpha:{},mode:{},name:{},visible:{type:Boolean}},setup(t){const e=t,{extend:s}=c();s({Color:B});const a=p();return u(()=>{a.value&&(e.color&&a.value.color.setStyle(e.color).convertLinearToSRGB(),e.alpha&&(a.value.alpha=e.alpha))}),(r,o)=>(i(),h("TresColor",{ref_key:"colorRef",ref:a,args:[e],visible:!0},null,8,L))}}),M=["args"],P=n({__name:"depth",props:{colorA:{},colorB:{},alpha:{},near:{},far:{},origin:{},mapping:{},mode:{},name:{},visible:{type:Boolean}},setup(t){const e=t,{extend:s}=c();s({Depth:k});const a=p();return u(()=>{a.value&&(e.colorA&&a.value.colorA.set(e.colorA),e.colorB&&a.value.colorB.set(e.colorB),e.alpha&&(a.value.alpha=e.alpha),e.near&&(a.value.near=e.near),e.far&&(a.value.far=e.far))}),(r,o)=>(i(),h("TresDepth",{ref_key:"instanceRef",ref:a,args:[e],visible:!0},null,8,M))}});export{W as _,P as a,T as b};
|
||||
var f=Object.defineProperty;var _=(t,e,s)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var l=(t,e,s)=>(_(t,typeof e!="symbol"?e+"":e,s),s);import{a1 as n,ad as m,ak as c,a7 as d,o as i,c as h,a0 as y,l as p,a6 as u}from"./vendor._sK3qi2g1715673460166.js";import{L as v,D as g,C as x}from"./vanilla.io1rwA8t1715673460166.js";class C extends v{constructor(e={}){super(e)}init(){const s=Object.keys(this).filter(a=>a.startsWith("layercoms_")).map(a=>this[a]);this.layers=s,this.refresh()}}class k extends g{constructor(s={}){super(s);l(this,"attach","layercoms_depth_");this.attach+=this.uuid.substring(this.uuid.length-12)}}class B extends x{constructor(s={}){super(s);l(this,"attach","layercoms_color_");this.attach+=this.uuid.substring(this.uuid.length-12)}}const b=["args"],T=n({__name:"component",props:{layers:{},color:{},alpha:{},lighting:{},name:{}},setup(t,{expose:e}){const s=t,a=m(),{extend:r}=c();return r({LayerMaterialCom:C}),e({LayerMaterialClass:a}),d(()=>{a.value.init()}),(o,R)=>(i(),h("TresLayerMaterialCom",{ref_key:"LayerMaterialClass",ref:a,args:[s]},[y(o.$slots,"default")],8,b))}}),L=["args"],W=n({__name:"color",props:{color:{},alpha:{},mode:{},name:{},visible:{type:Boolean}},setup(t){const e=t,{extend:s}=c();s({Color:B});const a=p();return u(()=>{a.value&&(e.color&&a.value.color.setStyle(e.color).convertLinearToSRGB(),e.alpha&&(a.value.alpha=e.alpha))}),(r,o)=>(i(),h("TresColor",{ref_key:"colorRef",ref:a,args:[e],visible:!0},null,8,L))}}),M=["args"],P=n({__name:"depth",props:{colorA:{},colorB:{},alpha:{},near:{},far:{},origin:{},mapping:{},mode:{},name:{},visible:{type:Boolean}},setup(t){const e=t,{extend:s}=c();s({Depth:k});const a=p();return u(()=>{a.value&&(e.colorA&&a.value.colorA.set(e.colorA),e.colorB&&a.value.colorB.set(e.colorB),e.alpha&&(a.value.alpha=e.alpha),e.near&&(a.value.near=e.near),e.far&&(a.value.far=e.far))}),(r,o)=>(i(),h("TresDepth",{ref_key:"instanceRef",ref:a,args:[e],visible:!0},null,8,M))}});export{W as _,P as a,T as b};
|
@ -1 +1 @@
|
||||
import{az as v,bQ as x,bM as w,ce as g,bP as P,aH as b,ax as h}from"./vendor.bbi2JiG-1715415693854.js";import{m as M}from"./BufferGeometryUtils.tJnMBnSq1715415693854.js";import{R as T,E as u,S}from"./EffectComposer.MN0PaO7v1715415693854.js";import{U as y}from"./UnrealBloomPass.sFkhmiCr1715415693854.js";import{O as U}from"./OutputPass.o0-Ek59f1715415693854.js";const C="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",B="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}";let p=new v("#0fb1fb");const D=new x({color:p,transparent:!0,opacity:.3}),d=new w({color:new v(p),depthTest:!0,transparent:!0}),O=o=>{const s=[];o.traverse(e=>{e.isMesh&&(s.push(e.geometry),e.material=D)});const t=M(s),i=new g(t,Math.PI*6.137),a=new P(i);return d.opacity=1,a.material=d,a},m={threshold:0,strength:.972,radius:.21},R=(o,s,t,i,a)=>{const e=new T(o,s),c=new y(new b(i,a),m.strength,m.radius,m.threshold),r=new u(t);r.renderToScreen=!1,r.addPass(e),r.addPass(c);const l=new S(new h({uniforms:{baseTexture:{value:null},bloomTexture:{value:r.renderTarget2.texture}},vertexShader:C,fragmentShader:B,defines:{}}),"baseTexture");l.needsSwap=!0;const f=new U,n=new u(t);return n.addPass(e),n.addPass(l),n.addPass(f),{finalComposer:n,effectComposer:r,renderScene:e,bloomPass:c}};export{O as r,R as u};
|
||||
import{az as v,bQ as x,bM as w,ce as g,bP as P,aH as b,ax as h}from"./vendor._sK3qi2g1715673460166.js";import{m as M}from"./BufferGeometryUtils.gDnGydNF1715673460166.js";import{R as T,E as u,S}from"./EffectComposer.9FcyN_Ya1715673460166.js";import{U as y}from"./UnrealBloomPass.P5slxu_k1715673460166.js";import{O as U}from"./OutputPass.gsAVfeiV1715673460166.js";const C="varying vec2 vUv;\nvoid main(){\n vUv=uv;\n gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n}",B="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\nvarying vec2 vUv;\nvoid main(){\n gl_FragColor=(texture2D(baseTexture,vUv)+vec4(1.)*texture2D(bloomTexture,vUv));\n}";let p=new v("#0fb1fb");const D=new x({color:p,transparent:!0,opacity:.3}),d=new w({color:new v(p),depthTest:!0,transparent:!0}),O=o=>{const s=[];o.traverse(e=>{e.isMesh&&(s.push(e.geometry),e.material=D)});const t=M(s),i=new g(t,Math.PI*6.137),a=new P(i);return d.opacity=1,a.material=d,a},m={threshold:0,strength:.972,radius:.21},R=(o,s,t,i,a)=>{const e=new T(o,s),c=new y(new b(i,a),m.strength,m.radius,m.threshold),r=new u(t);r.renderToScreen=!1,r.addPass(e),r.addPass(c);const l=new S(new h({uniforms:{baseTexture:{value:null},bloomTexture:{value:r.renderTarget2.texture}},vertexShader:C,fragmentShader:B,defines:{}}),"baseTexture");l.needsSwap=!0;const f=new U,n=new u(t);return n.addPass(e),n.addPass(l),n.addPass(f),{finalComposer:n,effectComposer:r,renderScene:e,bloomPass:c}};export{O as r,R as u};
|
@ -1 +1 @@
|
||||
import{a1 as y,aD as L,aE as S,ak as E,bQ as p,a6 as N,az as R,o as z,c as A,L as D,a9 as G}from"./vendor.bbi2JiG-1715415693854.js";import{r as F,u as H}from"./device.jPQzv7ZT1715415693854.js";const O=["object"],q=y({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let l,u;const t=v,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),g=F(r.Sketchfab_model),{camera:h,renderer:f,scene:s,sizes:m}=E();let n=null,d=null,a=null;const M=new p({color:"black"});N(()=>{if(h.value){f.value.setPixelRatio(window.devicePixelRatio),s.value.add(g);const{finalComposer:e,effectComposer:o,bloomPass:P}=H(s.value,h.value,f.value,m.width.value,m.height.value);n=e,d=o,a=P,a.threshold=t.threshold,a.strength=t.strength,a.radius=t.radius}t.threshold&&(a.threshold=t.threshold),t.strength&&(a.strength=t.strength),t.radius&&(a.radius=t.radius)});const i={},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:w,onAfterLoop:B}=G();let _=.03,c=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),x=c.material.clone(),C=new p({color:new R("red"),transparent:!0,opacity:1});return w(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=_,r.blades_turbine_003.rotation.x+=_),Math.floor(e)%2?c.material=x:c.material=C}),B(({elapsed:e})=>{d&&(s.value.traverse(o=>{k(o)}),d.render(e)),n&&(s.value.traverse(o=>{b(o)}),n.render(e))}),(e,o)=>(z(),A("primitive",{object:D(r).Sketchfab_model},null,8,O))}});export{q as _};
|
||||
import{a1 as y,aD as L,aE as S,ak as E,bQ as p,a6 as N,az as R,o as z,c as A,L as D,a9 as G}from"./vendor._sK3qi2g1715673460166.js";import{r as F,u as H}from"./device.UpGlZdFp1715673460166.js";const O=["object"],q=y({__name:"device",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(v){let l,u;const t=v,{nodes:r}=([l,u]=L(()=>S("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),l=await l,u(),l),g=F(r.Sketchfab_model),{camera:h,renderer:f,scene:s,sizes:m}=E();let n=null,d=null,a=null;const M=new p({color:"black"});N(()=>{if(h.value){f.value.setPixelRatio(window.devicePixelRatio),s.value.add(g);const{finalComposer:e,effectComposer:o,bloomPass:P}=H(s.value,h.value,f.value,m.width.value,m.height.value);n=e,d=o,a=P,a.threshold=t.threshold,a.strength=t.strength,a.radius=t.radius}t.threshold&&(a.threshold=t.threshold),t.strength&&(a.strength=t.strength),t.radius&&(a.radius=t.radius)});const i={},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:w,onAfterLoop:B}=G();let _=.03,c=r.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),x=c.material.clone(),C=new p({color:new R("red"),transparent:!0,opacity:1});return w(({elapsed:e})=>{r.hull_turbine&&(r.hull_turbine.rotation.x+=_,r.blades_turbine_003.rotation.x+=_),Math.floor(e)%2?c.material=x:c.material=C}),B(({elapsed:e})=>{d&&(s.value.traverse(o=>{k(o)}),d.render(e)),n&&(s.value.traverse(o=>{b(o)}),n.render(e))}),(e,o)=>(z(),A("primitive",{object:D(r).Sketchfab_model},null,8,O))}});export{q as _};
|
@ -1 +1 @@
|
||||
import{a1 as _,a2 as s,a3 as u,a4 as f,a5 as h,aq as g,r as C,o as n,c as v,a,L as r,E as i,a8 as B,G as T,ac as w,aa as l,ab as p,x,ag as S,Y as t}from"./vendor.bbi2JiG-1715415693854.js";/* empty css */import{_ as b}from"./randomLoading.vue_vue_type_script_setup_true_lang.y-cBogqi1715415693854.js";import{_ as P}from"./device.vue_vue_type_script_setup_true_lang.UQa3mM161715415693854.js";import"./starLoading.zvQxCp0k1715415693854.js";import"./bubbleLoading.2f-02wQt1715415693854.js";import"./device.jPQzv7ZT1715415693854.js";import"./BufferGeometryUtils.tJnMBnSq1715415693854.js";import"./EffectComposer.MN0PaO7v1715415693854.js";import"./Pass.5_QJD6231715415693854.js";import"./UnrealBloomPass.sFkhmiCr1715415693854.js";import"./OutputPass.o0-Ek59f1715415693854.js";const L=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),M=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),R=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),k=t("TresGridHelper",{position:[0,-1,0]},null,-1),J=_({__name:"deviceLight",setup(y){const c=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:f,toneMapping:h,disableRender:!0}),d=s({autoRotate:!0}),e=s({threshold:0,strength:.6,radius:.21}),o=new g({title:"参数"});return o.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),o.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),o.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(G,N)=>{const m=C("TresCanvas");return n(),v(T,null,[a(r(b)),a(m,B(c,{"window-size":""}),{default:i(()=>[L,a(r(w),l(p(d)),null,16),M,R,(n(),x(S,null,{default:i(()=>[a(P,l(p(e)),null,16)]),_:1})),k]),_:1},16)],64)}}});export{J as default};
|
||||
import{a1 as _,a2 as s,a3 as u,a4 as f,a5 as h,aq as g,r as C,o as n,c as v,a,L as r,E as i,a8 as B,G as T,ac as w,aa as l,ab as p,x,ag as S,Y as t}from"./vendor._sK3qi2g1715673460166.js";/* empty css */import{_ as b}from"./randomLoading.vue_vue_type_script_setup_true_lang._ayidfKJ1715673460166.js";import{_ as P}from"./device.vue_vue_type_script_setup_true_lang.ZFGyTv8O1715673460166.js";import"./starLoading.apdRmDl51715673460166.js";import"./bubbleLoading.jbD68b7y1715673460166.js";import"./device.UpGlZdFp1715673460166.js";import"./BufferGeometryUtils.gDnGydNF1715673460166.js";import"./EffectComposer.9FcyN_Ya1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";import"./UnrealBloomPass.P5slxu_k1715673460166.js";import"./OutputPass.gsAVfeiV1715673460166.js";const L=t("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),M=t("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),R=t("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),k=t("TresGridHelper",{position:[0,-1,0]},null,-1),J=_({__name:"deviceLight",setup(y){const c=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:u,outputColorSpace:f,toneMapping:h,disableRender:!0}),d=s({autoRotate:!0}),e=s({threshold:0,strength:.6,radius:.21}),o=new g({title:"参数"});return o.addBinding(e,"threshold",{label:"阈值",min:0,max:1,step:.1}),o.addBinding(e,"strength",{label:"强度",min:0,max:3,step:.2}),o.addBinding(e,"radius",{label:"半径",min:0,max:1,step:.1}),(G,N)=>{const m=C("TresCanvas");return n(),v(T,null,[a(r(b)),a(m,B(c,{"window-size":""}),{default:i(()=>[L,a(r(w),l(p(d)),null,16),M,R,(n(),x(S,null,{default:i(()=>[a(P,l(p(e)),null,16)]),_:1})),k]),_:1},16)],64)}}});export{J as default};
|
@ -1 +1 @@
|
||||
import{a1 as P,aD as G,aE as $,ak as F,bQ as w,a6 as V,az as q,o as g,c as O,Y as n,L as v,G as Q,a9 as X,a2 as _,a3 as Y,a4 as j,a5 as H,aq as I,r as J,x as M,E as x,a8 as K,a as k,aa as S,ab as y,ac as U,ag as W}from"./vendor.bbi2JiG-1715415693854.js";import{r as Z,u as ee}from"./device.jPQzv7ZT1715415693854.js";import"./BufferGeometryUtils.tJnMBnSq1715415693854.js";import"./EffectComposer.MN0PaO7v1715415693854.js";import"./Pass.5_QJD6231715415693854.js";import"./UnrealBloomPass.sFkhmiCr1715415693854.js";import"./OutputPass.o0-Ek59f1715415693854.js";const te=["object"],ae=["object"],se=P({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(b){let r,l;const t=b,{nodes:a}=([r,l]=G(()=>$("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:d,renderer:u,scene:p,sizes:B}=F();let h=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(d.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(p.value,d.value,u.value,B.width.value,B.height.value);h=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:z,onAfterLoop:E}=X();let C=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),R=f.material.clone(),A=new w({color:new q("red"),transparent:!0,opacity:1});return z(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=C,a.blades_turbine_003.rotation.x+=C),Math.floor(e)%2?f.material=R:f.material=A}),E(({elapsed:e})=>{m&&(p.value.traverse(o=>{L(o)}),m.render(e)),h&&(p.value.traverse(o=>{N(o)}),h.render(e))}),(e,o)=>(g(),O(Q,null,[n("primitive",{object:v(a).Sketchfab_model},null,8,te),n("primitive",{object:v(i)},null,8,ae)],64))}}),re=n("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=n("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),ne=n("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),me=P({__name:"deviceLightByComposerTres",setup(b){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:Y,outputColorSpace:j,toneMapping:H}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new I({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成:等待Tresjs库更新"}),(i,d)=>{const u=J("TresCanvas");return g(),M(u,K(r,{"window-size":""}),{default:x(()=>[re,k(v(U),S(y(l)),null,16),oe,ne,(g(),M(W,null,{default:x(()=>[k(se,S(y(t)),null,16)]),_:1}))]),_:1},16)}}});export{me as default};
|
||||
import{a1 as P,aD as G,aE as $,ak as F,bQ as w,a6 as V,az as q,o as g,c as O,Y as n,L as v,G as Q,a9 as X,a2 as _,a3 as Y,a4 as j,a5 as H,aq as I,r as J,x as M,E as x,a8 as K,a as k,aa as S,ab as y,ac as U,ag as W}from"./vendor._sK3qi2g1715673460166.js";import{r as Z,u as ee}from"./device.UpGlZdFp1715673460166.js";import"./BufferGeometryUtils.gDnGydNF1715673460166.js";import"./EffectComposer.9FcyN_Ya1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";import"./UnrealBloomPass.P5slxu_k1715673460166.js";import"./OutputPass.gsAVfeiV1715673460166.js";const te=["object"],ae=["object"],se=P({__name:"ByComposerTres",props:{threshold:{default:0},strength:{default:.972},radius:{default:.21}},async setup(b){let r,l;const t=b,{nodes:a}=([r,l]=G(()=>$("./plugins/industry4/model/modelDraco.glb",{draco:!0,decoderPath:"./draco/"})),r=await r,l(),r),i=Z(a.Sketchfab_model),{camera:d,renderer:u,scene:p,sizes:B}=F();let h=null,m=null,s=null;const T=new w({color:"black"});V(()=>{if(d.value){const{finalComposer:e,effectComposer:o,bloomPass:D}=ee(p.value,d.value,u.value,B.width.value,B.height.value);h=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:z,onAfterLoop:E}=X();let C=.03,f=a.Sketchfab_model.getObjectByName("canister_turbine_011_Nickel-Light-PBR_0"),R=f.material.clone(),A=new w({color:new q("red"),transparent:!0,opacity:1});return z(({elapsed:e})=>{a.hull_turbine&&(a.hull_turbine.rotation.x+=C,a.blades_turbine_003.rotation.x+=C),Math.floor(e)%2?f.material=R:f.material=A}),E(({elapsed:e})=>{m&&(p.value.traverse(o=>{L(o)}),m.render(e)),h&&(p.value.traverse(o=>{N(o)}),h.render(e))}),(e,o)=>(g(),O(Q,null,[n("primitive",{object:v(a).Sketchfab_model},null,8,te),n("primitive",{object:v(i)},null,8,ae)],64))}}),re=n("TresPerspectiveCamera",{position:[5,5,5],fov:45,near:1,far:1e3},null,-1),oe=n("TresAmbientLight",{color:"#ffffff",intensity:"40"},null,-1),ne=n("TresDirectionalLight",{position:[0,2,-4],intensity:1},null,-1),me=P({__name:"deviceLightByComposerTres",setup(b){const r=_({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:Y,outputColorSpace:j,toneMapping:H}),l=_({autoRotate:!0}),t=_({threshold:0,strength:.972,radius:.21}),a=new I({title:"参数"});return a.addBinding(t,"threshold",{label:"阈值",min:0,max:1,step:.1}),a.addBinding(t,"strength",{label:"强度",min:0,max:3,step:.2}),a.addBinding(t,"radius",{label:"半径",min:0,max:1,step:.1}),a.addBlade({view:"text",label:"post-processing",parse:i=>String(i),value:"未完成:等待Tresjs库更新"}),(i,d)=>{const u=J("TresCanvas");return g(),M(u,K(r,{"window-size":""}),{default:x(()=>[re,k(v(U),S(y(l)),null,16),oe,ne,(g(),M(W,null,{default:x(()=>[k(se,S(y(t)),null,16)]),_:1}))]),_:1},16)}}});export{me as default};
|
@ -1 +1 @@
|
||||
import{a1 as _,a2 as o,o as i,x as c,E as l,a8 as p,L as u,al as y,Y as t,I as w,l as b,a9 as R,a3 as T,a4 as I,a5 as M,r as P,c as k,a,G as z,ac as B,aa as x,ab as g,ag as C}from"./vendor.bbi2JiG-1715415693854.js";import{_ as $}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.vWmal2F71715415693854.js";/* empty css */import{_ as L}from"./randomLoading.vue_vue_type_script_setup_true_lang.y-cBogqi1715415693854.js";import{i as O}from"./index.oRU9r-cR1715415693854.js";import{_ as E}from"./device.vue_vue_type_script_setup_true_lang.UQa3mM161715415693854.js";import"./ReflectorMaterial.xdtSCe7D1715415693854.js";import"./dither.glsl.y2WXw1t-1715415693854.js";import"./Reflector.M8u_MD6G1715415693854.js";import"./OimoPhysicsBuffer.b5DejoFC1715415693854.js";import"./starLoading.zvQxCp0k1715415693854.js";import"./bubbleLoading.2f-02wQt1715415693854.js";import"./device.jPQzv7ZT1715415693854.js";import"./BufferGeometryUtils.tJnMBnSq1715415693854.js";import"./EffectComposer.MN0PaO7v1715415693854.js";import"./Pass.5_QJD6231715415693854.js";import"./UnrealBloomPass.sFkhmiCr1715415693854.js";import"./OutputPass.o0-Ek59f1715415693854.js";const F=t("div",{class:"card pos-relative text-white"},[t("div",{class:"card-body"},[t("h3",null,[t("span",null,"⚙️"),w(" Toyota 2JZ-GTE")]),t("div",{class:"flex justify-between flex-wrap"},[t("div",{class:"Onec"},[t("p",null," 输出功率 kW "),t("h1",null," 980 - 1000 ")]),t("div",{class:"Onec"},[t("p",null," 排量 升 "),t("h1",null," 3.0 - 3.5 ")]),t("div",{class:"Onec"},[t("p",null," 最大扭矩 磅-英尺 "),t("h1",null," 320 - 330 ")])])])],-1),G=_({__name:"divContent",setup(h){const s=o({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:1,zIndexRange:[9e5,0]});return(e,n)=>(i(),c(u(y),p(s,{position:[1,0,2],scale:[2,2,2],rotation:[-Math.PI/2,0,-Math.PI/2]}),{default:l(()=>[F]),_:1},16,["rotation"]))}}),N=t("div",{id:"main",style:{width:"500px",height:"300px"}},null,-1),V=_({__name:"useHtmlComChart",setup(h){const s=o({wrapperClass:"chartDiv",as:"div",transform:!0,distanceFactor:2,zIndexRange:[9e5,0]});let e=null;const n={title:{text:"最大输出功率",textStyle:{fontSize:18},padding:[20,20]},backgroundColor:"#b8e4ff3b",grid:{left:"10",right:"20",bottom:"10",top:"70",containLabel:!0},xAxis:{type:"category",data:["01","03","06","09","12","15","18"],axisLabel:{fontSize:18}},yAxis:{type:"value",axisLabel:{fontSize:18}},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0,lineStyle:{color:"#ffffffff"},animationDuration:function(v){return v*100+3e3}}],animationEasing:"elasticOut"},f=()=>{e=O(document.getElementById("main"),"dark"),e.setOption(n),e.on("finished",()=>{r=!0})},d=b(null);let r=!1;const m=()=>{r=!1,e.off("finished"),e.clear(),e.on("finished",()=>{r=!0}),e.setOption(n)},{onLoop:S}=R();return S(()=>{d.value&&!e&&f(),e&&r&&m()}),(v,D)=>(i(),c(u(y),p({ref_key:"htmlRef",ref:d},s,{position:[0,0,-1]}),{default:l(()=>[N]),_:1},16))}}),A=t("TresPerspectiveCamera",{position:[-4,5,4],fov:45,near:1,far:1e3},null,-1),it=_({__name:"deviceLightReflector",setup(h){const s=o({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),e=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:I,toneMapping:M,disableRender:!0}),n=o({autoRotate:!0}),f=o({threshold:.37,strength:1.6,radius:.1});return(d,r)=>{const m=P("TresCanvas");return i(),k(z,null,[a(u(L)),a(m,p(e,{"window-size":""}),{default:l(()=>[A,a(u(B),x(g(n)),null,16),(i(),c(C,null,{default:l(()=>[a(E,x(g(f)),null,16)]),_:1})),(i(),c(C,null,{default:l(()=>[a($,p(s,{position:[0,0,0]}),null,16)]),_:1})),a(G),a(V,{position:[-.5,-.001,2.25],rotation:[-Math.PI/2,0,-Math.PI/2]},null,8,["rotation"])]),_:1},16)],64)}}});export{it as default};
|
||||
import{a1 as _,a2 as o,o as i,x as c,E as l,a8 as p,L as u,al as y,Y as t,I as w,l as b,a9 as R,a3 as T,a4 as I,a5 as M,r as P,c as k,a,G as z,ac as B,aa as x,ab as g,ag as C}from"./vendor._sK3qi2g1715673460166.js";import{_ as $}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.DRFMMixq1715673460166.js";/* empty css */import{_ as L}from"./randomLoading.vue_vue_type_script_setup_true_lang._ayidfKJ1715673460166.js";import{i as O}from"./index.oRU9r-cR1715673460166.js";import{_ as E}from"./device.vue_vue_type_script_setup_true_lang.ZFGyTv8O1715673460166.js";import"./ReflectorMaterial.32G2BgCd1715673460166.js";import"./dither.glsl.y2WXw1t-1715673460166.js";import"./Reflector.F9R5zHf31715673460166.js";import"./OimoPhysicsBuffer.b5DejoFC1715673460166.js";import"./starLoading.apdRmDl51715673460166.js";import"./bubbleLoading.jbD68b7y1715673460166.js";import"./device.UpGlZdFp1715673460166.js";import"./BufferGeometryUtils.gDnGydNF1715673460166.js";import"./EffectComposer.9FcyN_Ya1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";import"./UnrealBloomPass.P5slxu_k1715673460166.js";import"./OutputPass.gsAVfeiV1715673460166.js";const F=t("div",{class:"card pos-relative text-white"},[t("div",{class:"card-body"},[t("h3",null,[t("span",null,"⚙️"),w(" Toyota 2JZ-GTE")]),t("div",{class:"flex justify-between flex-wrap"},[t("div",{class:"Onec"},[t("p",null," 输出功率 kW "),t("h1",null," 980 - 1000 ")]),t("div",{class:"Onec"},[t("p",null," 排量 升 "),t("h1",null," 3.0 - 3.5 ")]),t("div",{class:"Onec"},[t("p",null," 最大扭矩 磅-英尺 "),t("h1",null," 320 - 330 ")])])])],-1),G=_({__name:"divContent",setup(h){const s=o({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:1,zIndexRange:[9e5,0]});return(e,n)=>(i(),c(u(y),p(s,{position:[1,0,2],scale:[2,2,2],rotation:[-Math.PI/2,0,-Math.PI/2]}),{default:l(()=>[F]),_:1},16,["rotation"]))}}),N=t("div",{id:"main",style:{width:"500px",height:"300px"}},null,-1),V=_({__name:"useHtmlComChart",setup(h){const s=o({wrapperClass:"chartDiv",as:"div",transform:!0,distanceFactor:2,zIndexRange:[9e5,0]});let e=null;const n={title:{text:"最大输出功率",textStyle:{fontSize:18},padding:[20,20]},backgroundColor:"#b8e4ff3b",grid:{left:"10",right:"20",bottom:"10",top:"70",containLabel:!0},xAxis:{type:"category",data:["01","03","06","09","12","15","18"],axisLabel:{fontSize:18}},yAxis:{type:"value",axisLabel:{fontSize:18}},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0,lineStyle:{color:"#ffffffff"},animationDuration:function(v){return v*100+3e3}}],animationEasing:"elasticOut"},f=()=>{e=O(document.getElementById("main"),"dark"),e.setOption(n),e.on("finished",()=>{r=!0})},d=b(null);let r=!1;const m=()=>{r=!1,e.off("finished"),e.clear(),e.on("finished",()=>{r=!0}),e.setOption(n)},{onLoop:S}=R();return S(()=>{d.value&&!e&&f(),e&&r&&m()}),(v,D)=>(i(),c(u(y),p({ref_key:"htmlRef",ref:d},s,{position:[0,0,-1]}),{default:l(()=>[N]),_:1},16))}}),A=t("TresPerspectiveCamera",{position:[-4,5,4],fov:45,near:1,far:1e3},null,-1),it=_({__name:"deviceLightReflector",setup(h){const s=o({reflectivity:.1,mirror:.92,mixStrength:36,showGridHelper:!1}),e=o({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:T,outputColorSpace:I,toneMapping:M,disableRender:!0}),n=o({autoRotate:!0}),f=o({threshold:.37,strength:1.6,radius:.1});return(d,r)=>{const m=P("TresCanvas");return i(),k(z,null,[a(u(L)),a(m,p(e,{"window-size":""}),{default:l(()=>[A,a(u(B),x(g(n)),null,16),(i(),c(C,null,{default:l(()=>[a(E,x(g(f)),null,16)]),_:1})),(i(),c(C,null,{default:l(()=>[a($,p(s,{position:[0,0,0]}),null,16)]),_:1})),a(G),a(V,{position:[-.5,-.001,2.25],rotation:[-Math.PI/2,0,-Math.PI/2]},null,8,["rotation"])]),_:1},16)],64)}}});export{it as default};
|
@ -1 +1 @@
|
||||
import{a1 as b,a2 as s,aq as y,aD as C,a3 as S,a4 as x,a5 as T,r as k,o as n,c as v,a as m,L as l,E as f,a8 as i,G as P,ac as R,aa as G,ab as M,Y as d,x as c,Z as _,ag as N}from"./vendor.bbi2JiG-1715415693854.js";import{O,l as $}from"./util.y4R0XHjq1715415693854.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang.y-cBogqi1715415693854.js";import{_ as L}from"./cloudPoints.vue_vue_type_script_setup_true_lang._QDYoarf1715415693854.js";import{_ as V,a as z}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.vJe0dy6D1715415693854.js";import"./starLoading.zvQxCp0k1715415693854.js";import"./bubbleLoading.2f-02wQt1715415693854.js";import"./BufferGeometryUtils.tJnMBnSq1715415693854.js";const A=d("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=d("TresAmbientLight",{intensity:.5},null,-1),q={position:[0,120,0]},D=d("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",oa=b({__name:"digitalBrain",async setup(H){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new y({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const o=s({color:"#84ccff",show:!0,opacity:1});a.addBinding(o,"show",{label:"脑轮廓显示"}),a.addBinding(o,"color",{label:"脑轮廓颜色"}),a.addBinding(o,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const t=s({color:"#9e00af",show:!0,opacity:1});a.addBinding(t,"show",{label:"脑组织显示"}),a.addBinding(t,"color",{label:"脑组织颜色"}),a.addBinding(t,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const h=new O,p=([r,u]=C(()=>$(F,h)),r=await r,u(),r),g=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:x,toneMapping:T}),w=s({autoRotate:!0,autoRotateSpeed:2});return(Y,Z)=>{const B=k("TresCanvas");return n(),v(P,null,[m(l(J)),m(B,i(g,{"window-size":""}),{default:f(()=>[A,m(l(R),G(M(w)),null,16),E,d("TresGroup",q,[e.show?(n(),c(L,i({key:0,model:l(p)},e),null,16,["model"])):_("",!0),(n(),c(N,null,{default:f(()=>[o.show?(n(),c(V,i({key:0,model:l(p)},o),null,16,["model"])):_("",!0)]),_:1})),t.show?(n(),c(z,i({key:1,model:l(p)},t),null,16,["model"])):_("",!0)]),D]),_:1},16)],64)}}});export{oa as default};
|
||||
import{a1 as b,a2 as s,aq as y,aD as C,a3 as S,a4 as x,a5 as T,r as k,o as n,c as v,a as m,L as l,E as f,a8 as i,G as P,ac as R,aa as G,ab as M,Y as d,x as c,Z as _,ag as N}from"./vendor._sK3qi2g1715673460166.js";import{O,l as $}from"./util.N4W_Qsm-1715673460166.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang._ayidfKJ1715673460166.js";import{_ as L}from"./cloudPoints.vue_vue_type_script_setup_true_lang.uo8jtrAU1715673460166.js";import{_ as V,a as z}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.BOPbLgNR1715673460166.js";import"./starLoading.apdRmDl51715673460166.js";import"./bubbleLoading.jbD68b7y1715673460166.js";import"./BufferGeometryUtils.gDnGydNF1715673460166.js";const A=d("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),E=d("TresAmbientLight",{intensity:.5},null,-1),q={position:[0,120,0]},D=d("TresGridHelper",{args:[400,10]},null,-1),F="./plugins/medical/model/brainparts.OBJ",oa=b({__name:"digitalBrain",async setup(H){let r,u;const e=s({color:"#fff",show:!0,opacity:1}),a=new y({title:"参数"});a.addBinding(e,"show",{label:"点云显示"}),a.addBinding(e,"color",{label:"点云颜色"}),a.addBinding(e,"opacity",{label:"点云透明度",min:0,max:1,step:.1});const o=s({color:"#84ccff",show:!0,opacity:1});a.addBinding(o,"show",{label:"脑轮廓显示"}),a.addBinding(o,"color",{label:"脑轮廓颜色"}),a.addBinding(o,"opacity",{label:"脑轮廓透明度",min:0,max:1,step:.1});const t=s({color:"#9e00af",show:!0,opacity:1});a.addBinding(t,"show",{label:"脑组织显示"}),a.addBinding(t,"color",{label:"脑组织颜色"}),a.addBinding(t,"opacity",{label:"脑组织透明度",min:0,max:1,step:.1});const h=new O,p=([r,u]=C(()=>$(F,h)),r=await r,u(),r),g=s({clearColor:"#000",shadows:!0,alpha:!1,shadowMapType:S,outputColorSpace:x,toneMapping:T}),w=s({autoRotate:!0,autoRotateSpeed:2});return(Y,Z)=>{const B=k("TresCanvas");return n(),v(P,null,[m(l(J)),m(B,i(g,{"window-size":""}),{default:f(()=>[A,m(l(R),G(M(w)),null,16),E,d("TresGroup",q,[e.show?(n(),c(L,i({key:0,model:l(p)},e),null,16,["model"])):_("",!0),(n(),c(N,null,{default:f(()=>[o.show?(n(),c(V,i({key:0,model:l(p)},o),null,16,["model"])):_("",!0)]),_:1})),t.show?(n(),c(z,i({key:1,model:l(p)},t),null,16,["model"])):_("",!0)]),D]),_:1},16)],64)}}});export{oa as default};
|
@ -1 +1 @@
|
||||
import{a1 as S,a2 as o,aq as x,aD as v,a3 as k,a4 as T,a5 as P,r as R,o as n,c as $,a as l,L as r,E as f,a8 as c,G as z,ac as G,aa as g,ab as h,Y as _,x as d,Z as p,ag as L}from"./vendor.bbi2JiG-1715415693854.js";import{O as M,l as N}from"./util.y4R0XHjq1715415693854.js";import{_ as O}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.nlEqVFG81715415693854.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang.y-cBogqi1715415693854.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang._QDYoarf1715415693854.js";import{_ as A,a as E}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.vJe0dy6D1715415693854.js";import"./Reflector.u_rg7Evg1715415693854.js";import"./starLoading.zvQxCp0k1715415693854.js";import"./bubbleLoading.2f-02wQt1715415693854.js";import"./BufferGeometryUtils.tJnMBnSq1715415693854.js";const F=_("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),q=_("TresAmbientLight",{intensity:.5},null,-1),D={position:[0,120,0]},Y="./plugins/medical/model/brainparts.OBJ",na=S({__name:"digitalBrainFloor",async setup(Z){let i,u;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new x({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 M,m=([i,u]=v(()=>N(Y,B)),i=await i,u(),i),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:T,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(j,H)=>{const C=R("TresCanvas");return n(),$(z,null,[l(r(J)),l(C,c(b,{"window-size":""}),{default:f(()=>[F,l(r(G),g(h(y)),null,16),q,_("TresGroup",D,[e.show?(n(),d(V,c({key:0,model:r(m)},e),null,16,["model"])):p("",!0),(n(),d(L,null,{default:f(()=>[t.show?(n(),d(A,c({key:0,model:r(m)},t),null,16,["model"])):p("",!0)]),_:1})),s.show?(n(),d(E,c({key:1,model:r(m)},s),null,16,["model"])):p("",!0)]),l(O,g(h(w)),null,16)]),_:1},16)],64)}}});export{na as default};
|
||||
import{a1 as S,a2 as o,aq as x,aD as v,a3 as k,a4 as T,a5 as P,r as R,o as n,c as $,a as l,L as r,E as f,a8 as c,G as z,ac as G,aa as g,ab as h,Y as _,x as d,Z as p,ag as L}from"./vendor._sK3qi2g1715673460166.js";import{O as M,l as N}from"./util.N4W_Qsm-1715673460166.js";import{_ as O}from"./reflectorMesh.vue_vue_type_script_setup_true_lang.ktUcUlnc1715673460166.js";/* empty css */import{_ as J}from"./randomLoading.vue_vue_type_script_setup_true_lang._ayidfKJ1715673460166.js";import{_ as V}from"./cloudPoints.vue_vue_type_script_setup_true_lang.uo8jtrAU1715673460166.js";import{_ as A,a as E}from"./bubblesEffect.vue_vue_type_script_setup_true_lang.BOPbLgNR1715673460166.js";import"./Reflector.gbDWuAel1715673460166.js";import"./starLoading.apdRmDl51715673460166.js";import"./bubbleLoading.jbD68b7y1715673460166.js";import"./BufferGeometryUtils.gDnGydNF1715673460166.js";const F=_("TresPerspectiveCamera",{position:[100,400,500],fov:45,near:.1,far:1e4,"look-at":[0,0,0]},null,-1),q=_("TresAmbientLight",{intensity:.5},null,-1),D={position:[0,120,0]},Y="./plugins/medical/model/brainparts.OBJ",na=S({__name:"digitalBrainFloor",async setup(Z){let i,u;const w=o({mirrorSize:500,gridSize:490,mirrorColor:"#efefef",divisions:10,colorCenterLine:"#444444",colorGrid:"#888888"}),e=o({color:"#fff",show:!0,opacity:1}),a=new x({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 M,m=([i,u]=v(()=>N(Y,B)),i=await i,u(),i),b=o({clearColor:"#201919",shadows:!0,alpha:!1,shadowMapType:k,outputColorSpace:T,toneMapping:P}),y=o({autoRotate:!0,autoRotateSpeed:2});return(j,H)=>{const C=R("TresCanvas");return n(),$(z,null,[l(r(J)),l(C,c(b,{"window-size":""}),{default:f(()=>[F,l(r(G),g(h(y)),null,16),q,_("TresGroup",D,[e.show?(n(),d(V,c({key:0,model:r(m)},e),null,16,["model"])):p("",!0),(n(),d(L,null,{default:f(()=>[t.show?(n(),d(A,c({key:0,model:r(m)},t),null,16,["model"])):p("",!0)]),_:1})),s.show?(n(),d(E,c({key:1,model:r(m)},s),null,16,["model"])):p("",!0)]),l(O,g(h(w)),null,16)]),_:1},16)],64)}}});export{na as default};
|
@ -1 +1 @@
|
||||
import{a1 as c,a2 as _,l as h,r as f,o,x as i,E as a,Y as t,a as e,I as g,t as T,a8 as d,L as n,al as m,c as $,am as y,G as w,ac as C,ag as v,aa as D,ab as S}from"./vendor.bbi2JiG-1715415693854.js";/* empty css */import{_ as B}from"./randomLoading.vue_vue_type_script_setup_true_lang.y-cBogqi1715415693854.js";import{_ as F}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.vWmal2F71715415693854.js";import{_ as L}from"./model.vue_vue_type_script_setup_true_lang.wm9Q3-Dw1715415693854.js";import"./starLoading.zvQxCp0k1715415693854.js";import"./bubbleLoading.2f-02wQt1715415693854.js";import"./ReflectorMaterial.xdtSCe7D1715415693854.js";import"./dither.glsl.y2WXw1t-1715415693854.js";import"./Reflector.M8u_MD6G1715415693854.js";import"./OimoPhysicsBuffer.b5DejoFC1715415693854.js";const P=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),b={class:"parallelogram"},k=t("span",null,"🔆 飞机螺旋桨",-1),E=c({__name:"illustratePropeller",setup(p){const s=_({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=h(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,l)=>{const x=f("timeDiv");return o(),i(n(m),d(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[P,t("div",b,[k,e(x,null,{default:a(()=>[g("📆: "+T(r.value),1)]),_:1})])]),_:1},16)}}}),G=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),I={class:"parallelogram"},M=t("span",null,"🪃 飞机机翼",-1),N=c({__name:"illustrateWing",setup(p){const s=_({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const l=f("contentDiv");return o(),i(n(m),d(s,{position:[-110,180,60]}),{default:a(()=>[G,t("div",I,[M,e(l,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),R=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🚀 WJ5E涡桨发动机"),t("p",null," 中功率涡浆,功率2000千瓦,1992年已批量生产。 ")])],-1),V=c({__name:"illustrateTire",setup(p){const s=_({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(o(),i(n(m),d(s,{position:[-120,130,150]}),{default:a(()=>[R]),_:1},16))}}),z=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🛞 飞机轮胎"),t("p",null,"良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。")])],-1),W=t("TresBoxGeometry",{args:[106,58,6]},null,-1),A=c({__name:"illustrateTireMesh",setup(p){const s=_({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=h(null);return(u,l)=>(o(),$(w,null,[e(n(m),d(s,{position:[180,30,150]}),{default:a(()=>[z]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[W,e(n(y))],512)],64))}}),H=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),J=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),Y=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),at=c({__name:"divIllustrate",setup(p){const s=_({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>{const l=f("TresCanvas");return o(),$(w,null,[e(n(B)),e(l,{clearColor:"#333","window-size":""},{default:a(()=>[H,e(n(C)),J,Y,(o(),i(v,null,{default:a(()=>[e(L)]),_:1})),(o(),i(v,null,{default:a(()=>[e(F,D(S(s)),null,16)]),_:1})),e(E),e(N),e(V),e(A)]),_:1})],64)}}});export{at as default};
|
||||
import{a1 as c,a2 as _,l as h,r as f,o,x as i,E as a,Y as t,a as e,I as g,t as T,a8 as d,L as n,al as m,c as $,am as y,G as w,ac as C,ag as v,aa as D,ab as S}from"./vendor._sK3qi2g1715673460166.js";/* empty css */import{_ as B}from"./randomLoading.vue_vue_type_script_setup_true_lang._ayidfKJ1715673460166.js";import{_ as F}from"./reflectorShaderMesh.vue_vue_type_script_setup_true_lang.DRFMMixq1715673460166.js";import{_ as L}from"./model.vue_vue_type_script_setup_true_lang.nJnCNBl51715673460166.js";import"./starLoading.apdRmDl51715673460166.js";import"./bubbleLoading.jbD68b7y1715673460166.js";import"./ReflectorMaterial.32G2BgCd1715673460166.js";import"./dither.glsl.y2WXw1t-1715673460166.js";import"./Reflector.F9R5zHf31715673460166.js";import"./OimoPhysicsBuffer.b5DejoFC1715673460166.js";const P=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),b={class:"parallelogram"},k=t("span",null,"🔆 飞机螺旋桨",-1),E=c({__name:"illustratePropeller",setup(p){const s=_({wrapperClass:"illustrate1",as:"div",transform:!0,distanceFactor:120}),r=h(new Date().toLocaleString());return setInterval(()=>{r.value=new Date().toLocaleString()},1e3),(u,l)=>{const x=f("timeDiv");return o(),i(n(m),d(s,{position:[20,150,260],"rotation-y":-1}),{default:a(()=>[P,t("div",b,[k,e(x,null,{default:a(()=>[g("📆: "+T(r.value),1)]),_:1})])]),_:1},16)}}}),G=t("div",{class:"cStyle1 pos-relative text-white"},null,-1),I={class:"parallelogram"},M=t("span",null,"🪃 飞机机翼",-1),N=c({__name:"illustrateWing",setup(p){const s=_({wrapperClass:"illustrate2",as:"div",sprite:!0,transform:!0,distanceFactor:120,center:!0});return(r,u)=>{const l=f("contentDiv");return o(),i(n(m),d(s,{position:[-110,180,60]}),{default:a(()=>[G,t("div",I,[M,e(l,null,{default:a(()=>[g("改善飞行的稳定性和操纵性")]),_:1})])]),_:1},16)}}}),R=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🚀 WJ5E涡桨发动机"),t("p",null," 中功率涡浆,功率2000千瓦,1992年已批量生产。 ")])],-1),V=c({__name:"illustrateTire",setup(p){const s=_({wrapperClass:"illustrateTire",as:"div",transform:!0,distanceFactor:120});return(r,u)=>(o(),i(n(m),d(s,{position:[-120,130,150]}),{default:a(()=>[R]),_:1},16))}}),z=t("div",{class:"card pos-relative text-white"},[t("div",{class:"glass"}),t("div",{class:"card-body"},[t("h1",null,"🛞 飞机轮胎"),t("p",null,"良好平衡的轮胎和机轮组件有助于提供无摆振操作,并减少刹车和起落架部件(如扭矩连杆)的磨损。")])],-1),W=t("TresBoxGeometry",{args:[106,58,6]},null,-1),A=c({__name:"illustrateTireMesh",setup(p){const s=_({wrapperClass:"illustrateTireMesh",as:"div",transform:!0,distanceFactor:120}),r=h(null);return(u,l)=>(o(),$(w,null,[e(n(m),d(s,{position:[180,30,150]}),{default:a(()=>[z]),_:1},16),t("TresMesh",{position:[180,31,150],ref_key:"glassRef",ref:r},[W,e(n(y))],512)],64))}}),H=t("TresPerspectiveCamera",{position:[-500,330,500],fov:50,near:.1,far:1e4},null,-1),J=t("TresAmbientLight",{color:"#ffffff",intensity:"1"},null,-1),Y=t("TresDirectionalLight",{color:"#ffffff",position:[300,300,250],intensity:6},null,-1),at=c({__name:"divIllustrate",setup(p){const s=_({reflectivity:.941,mirror:113.25,mixStrength:12,showGridHelper:!0,scale:100});return(r,u)=>{const l=f("TresCanvas");return o(),$(w,null,[e(n(B)),e(l,{clearColor:"#333","window-size":""},{default:a(()=>[H,e(n(C)),J,Y,(o(),i(v,null,{default:a(()=>[e(L)]),_:1})),(o(),i(v,null,{default:a(()=>[e(F,D(S(s)),null,16)]),_:1})),e(E),e(N),e(V),e(A)]),_:1})],64)}}});export{at as default};
|
@ -1 +1 @@
|
||||
import{a1 as _,a2 as r,o as a,x as c,E as d,aa as u,ab as m,L as e,al as p,Y as s,r as v,a as i,ac as g}from"./vendor.bbi2JiG-1715415693854.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=_({__name:"divS1",setup(l){const n=r({wrapperClass:"divS1",as:"div"});return(t,o)=>(a(),c(e(p),u(m(n)),{default:d(()=>[$]),_:1},16))}}),x={class:"poputs_show_cl"},C={class:"oneline"},w=s("div",{class:"name"},"最远距离(km)",-1),S=s("div",{class:"num_s"},"120",-1),j=["src"],I=s("div",{class:"num_end"},"30",-1),T={class:"oneline"},U=s("div",{class:"name"},"切片(层)",-1),P=s("div",{class:"num_s"},"10",-1),b=["src"],k=s("div",{class:"num_end"},"50",-1),B={class:"oneline"},M=s("div",{class:"name"},"最大速度(m/s)",-1),N=s("div",{class:"num_s"},"12",-1),y=["src"],z=s("div",{class:"num_end"},"46",-1),V=_({__name:"divS2",setup(l){const n=r({wrapperClass:"divS2",as:"div"});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",x,[s("div",C,[w,S,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,j),I]),s("div",T,[U,P,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,b),k]),s("div",B,[M,N,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,y),z])])]),_:1},16))}}),E={class:"poputs_show_cl"},F={class:"oneline"},G=s("div",{class:"name"},"最远距离(km)",-1),L=s("div",{class:"num_s"},"120",-1),R=["src"],Y=s("div",{class:"num_end"},"30",-1),q={class:"oneline"},A=s("div",{class:"name"},"切片(层)",-1),D=s("div",{class:"num_s"},"10",-1),H=["src"],J=s("div",{class:"num_end"},"50",-1),K={class:"oneline"},O=s("div",{class:"name"},"最大速度(m/s)",-1),Q=s("div",{class:"num_s"},"12",-1),W=["src"],X=s("div",{class:"num_end"},"46",-1),Z=_({__name:"divSprite",setup(l){const n=r({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",E,[s("div",F,[G,L,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),Y]),s("div",q,[A,D,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,H),J]),s("div",K,[O,Q,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,W),X])])]),_:1},16))}}),ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),ns=s("TresMeshNormalMaterial",null,null,-1),is=_({__name:"divSample",setup(l){return(n,t)=>{const o=v("TresCanvas");return a(),c(o,{clearColor:"#999","window-size":""},{default:d(()=>[ss,i(e(g)),s("TresMesh",es,[ts,ns,i(f),i(V),i(Z)])]),_:1})}}});export{is as default};
|
||||
import{a1 as _,a2 as r,o as a,x as c,E as d,aa as u,ab as m,L as e,al as p,Y as s,r as v,a as i,ac as g}from"./vendor._sK3qi2g1715673460166.js";const $=s("div",{class:"boxStyle1 pos-relative left-20 top--30 text-white"}," 这是正方形 📦 ",-1),f=_({__name:"divS1",setup(l){const n=r({wrapperClass:"divS1",as:"div"});return(t,o)=>(a(),c(e(p),u(m(n)),{default:d(()=>[$]),_:1},16))}}),x={class:"poputs_show_cl"},C={class:"oneline"},w=s("div",{class:"name"},"最远距离(km)",-1),S=s("div",{class:"num_s"},"120",-1),j=["src"],I=s("div",{class:"num_end"},"30",-1),T={class:"oneline"},U=s("div",{class:"name"},"切片(层)",-1),P=s("div",{class:"num_s"},"10",-1),b=["src"],k=s("div",{class:"num_end"},"50",-1),B={class:"oneline"},M=s("div",{class:"name"},"最大速度(m/s)",-1),N=s("div",{class:"num_s"},"12",-1),y=["src"],z=s("div",{class:"num_end"},"46",-1),V=_({__name:"divS2",setup(l){const n=r({wrapperClass:"divS2",as:"div"});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",x,[s("div",C,[w,S,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,j),I]),s("div",T,[U,P,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,b),k]),s("div",B,[M,N,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,y),z])])]),_:1},16))}}),E={class:"poputs_show_cl"},F={class:"oneline"},G=s("div",{class:"name"},"最远距离(km)",-1),L=s("div",{class:"num_s"},"120",-1),R=["src"],Y=s("div",{class:"num_end"},"30",-1),q={class:"oneline"},A=s("div",{class:"name"},"切片(层)",-1),D=s("div",{class:"num_s"},"10",-1),H=["src"],J=s("div",{class:"num_end"},"50",-1),K={class:"oneline"},O=s("div",{class:"name"},"最大速度(m/s)",-1),Q=s("div",{class:"num_s"},"12",-1),W=["src"],X=s("div",{class:"num_end"},"46",-1),Z=_({__name:"divSprite",setup(l){const n=r({wrapperClass:"divS2",as:"div",sprite:!0,center:!0,transform:!0,distanceFactor:1});let t="./";return(o,h)=>(a(),c(e(p),u(m(n)),{default:d(()=>[s("div",E,[s("div",F,[G,L,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou1.png"},null,8,R),Y]),s("div",q,[A,D,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,H),J]),s("div",K,[O,Q,s("img",{src:e(t)+"/plugins/UIdemo/image/jiantou2.png"},null,8,W),X])])]),_:1},16))}}),ss=s("TresPerspectiveCamera",{position:[3,0,8]},null,-1),es={position:[1,1,1]},ts=s("TresBoxGeometry",null,null,-1),ns=s("TresMeshNormalMaterial",null,null,-1),is=_({__name:"divSample",setup(l){return(n,t)=>{const o=v("TresCanvas");return a(),c(o,{clearColor:"#999","window-size":""},{default:d(()=>[ss,i(e(g)),s("TresMesh",es,[ts,ns,i(f),i(V),i(Z)])]),_:1})}}});export{is as default};
|
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 m,ak as P,l as t,a6 as h,o as v,c as E,a as _,L as p,a$ as M,Y as s,G as L,a9 as R,aH as $,r as b,x as G,E as N,ac as V}from"./vendor.bbi2JiG-1715415693854.js";import{R as z,E as H}from"./EffectComposer.MN0PaO7v1715415693854.js";import{U as S}from"./UnrealBloomPass.sFkhmiCr1715415693854.js";import"./Pass.5_QJD6231715415693854.js";const U=s("TresBoxGeometry",{args:[1,1,1]},null,-1),A=s("TresMeshNormalMaterial",null,null,-1),D=[U,A],F=s("TresBoxGeometry",{args:[1,1,1]},null,-1),Y=s("TresMeshNormalMaterial",null,null,-1),j=[F,Y],q=m({__name:"ecLayers",setup(x){const{camera:e,renderer:a,scene:n,sizes:r}=P(),l=t(),c=t(),i=t();let o=null;const u={threshold:0,strength:.972,radius:.21},y=(f,d,g,T,w)=>{const C=new z(f,d),k=new S(new $(T,w),u.strength,u.radius,u.threshold);o=new H(g),o.addPass(C),o.addPass(k)};h(()=>{l.value&&l.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),r.width.value&&y(n.value,e.value,a.value,r.width.value,r.height.value)});const{onLoop:B}=R();return B(()=>{o&&e.value&&(a.value.clear(),e.value.layers.set(1),o.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(n.value,e.value))}),(f,d)=>(v(),E(L,null,[_(p(M),{ref_key:"normalBox",ref:l,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),s("TresMesh",{ref_key:"shineBox",ref:c,position:[0,2,-4]},D,512),s("TresMesh",{ref_key:"filmBox",ref:i,position:[1,2,3]},j,512)],64))}}),I=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),J=s("TresAmbientLight",{intensity:1},null,-1),K=s("TresGridHelper",{args:[10,10]},null,-1),Z=m({__name:"effectComposerLayers",setup(x){const e=t();return h(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,n)=>{const r=b("TresCanvas");return v(),G(r,{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:N(()=>[I,J,_(p(V)),K,_(q)]),_:1},512)}}});export{Z as default};
|
||||
import{a1 as m,ak as P,l as t,a6 as h,o as v,c as E,a as _,L as p,a$ as M,Y as s,G as L,a9 as R,aH as $,r as b,x as G,E as N,ac as V}from"./vendor._sK3qi2g1715673460166.js";import{R as z,E as H}from"./EffectComposer.9FcyN_Ya1715673460166.js";import{U as S}from"./UnrealBloomPass.P5slxu_k1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";const U=s("TresBoxGeometry",{args:[1,1,1]},null,-1),A=s("TresMeshNormalMaterial",null,null,-1),D=[U,A],F=s("TresBoxGeometry",{args:[1,1,1]},null,-1),Y=s("TresMeshNormalMaterial",null,null,-1),j=[F,Y],q=m({__name:"ecLayers",setup(x){const{camera:e,renderer:a,scene:n,sizes:r}=P(),l=t(),c=t(),i=t();let o=null;const u={threshold:0,strength:.972,radius:.21},y=(f,d,g,T,w)=>{const C=new z(f,d),k=new S(new $(T,w),u.strength,u.radius,u.threshold);o=new H(g),o.addPass(C),o.addPass(k)};h(()=>{l.value&&l.value.value.layers.set(0),c.value&&c.value.layers.set(1),i.value&&i.value.layers.set(2),r.width.value&&y(n.value,e.value,a.value,r.width.value,r.height.value)});const{onLoop:B}=R();return B(()=>{o&&e.value&&(a.value.clear(),e.value.layers.set(1),o.render(),a.value.clearDepth(),e.value.layers.set(0),a.value.render(n.value,e.value))}),(f,d)=>(v(),E(L,null,[_(p(M),{ref_key:"normalBox",ref:l,args:[1,1,1],color:"orange",position:[3,2,1]},null,512),s("TresMesh",{ref_key:"shineBox",ref:c,position:[0,2,-4]},D,512),s("TresMesh",{ref_key:"filmBox",ref:i,position:[1,2,3]},j,512)],64))}}),I=s("TresPerspectiveCamera",{position:[10,10,10]},null,-1),J=s("TresAmbientLight",{intensity:1},null,-1),K=s("TresGridHelper",{args:[10,10]},null,-1),Z=m({__name:"effectComposerLayers",setup(x){const e=t();return h(()=>{if(e.value){let a=e.value.context.renderer.value;a.autoClear=!1}}),(a,n)=>{const r=b("TresCanvas");return v(),G(r,{disableRender:"","window-size":"",ref_key:"tcRef",ref:e},{default:N(()=>[I,J,_(p(V)),K,_(q)]),_:1},512)}}});export{Z as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a1 as p,l as m,ak as S,a6 as x,o as T,c as M,Y as e,G as k,a9 as U,aH as E,ax as D,r as R,x as G,E as L,a as _,L as N,ac as V}from"./vendor.bbi2JiG-1715415693854.js";import{R as $,E as h,S as F}from"./EffectComposer.MN0PaO7v1715415693854.js";import{U as z}from"./UnrealBloomPass.sFkhmiCr1715415693854.js";import"./Pass.5_QJD6231715415693854.js";const H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),j=e("TresMeshNormalMaterial",null,null,-1),A=[H,j],Y=e("TresBoxGeometry",{args:[1,1,1]},null,-1),q=e("TresMeshNormalMaterial",null,null,-1),I=[Y,q],J=p({__name:"ecLayerShaderPass",setup(g){const s=m(),r=m(),{camera:t,renderer:o,scene:f,sizes:u}=S(),d={strength:.572,radius:.51,threshold:0};let v=null,a=null,n=null;const w=(l,i,c,C,b)=>{v=new $(l,i);const B=new z(new E(C,b),d.strength,d.radius,d.threshold);a=new h(c),a.renderToScreen=!1,a.addPass(v),a.addPass(B)},P=l=>{n=new h(l);const i=new D({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 F(i,"baseTexture");c.needsSwap=!0,n.addPass(v),n.addPass(c)};x(()=>{s.value&&s.value.layers.set(0),r.value&&r.value.layers.set(1),u.width.value&&(w(f.value,t.value,o.value,u.width.value,u.height.value),P(o.value))});const{onLoop:y}=U();return y(()=>{a&&n&&t.value&&(o.value.clear(),t.value.layers.set(1),a.render(),o.value.clearDepth(),t.value.layers.set(0),n.render(f.value,t.value))}),(l,i)=>(T(),M(k,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]},I,512)],64))}}),K=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),O=e("TresAmbientLight",{intensity:1},null,-1),Q=e("TresGridHelper",{args:[10,10]},null,-1),se=p({__name:"effectComposerShaderPass",setup(g){const s=m();return x(()=>{if(s.value){let r=s.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>{const o=R("TresCanvas");return T(),G(o,{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:L(()=>[K,O,_(N(V)),Q,_(J)]),_:1},512)}}});export{se as default};
|
||||
import{a1 as p,l as m,ak as S,a6 as x,o as T,c as M,Y as e,G as k,a9 as U,aH as E,ax as D,r as R,x as G,E as L,a as _,L as N,ac as V}from"./vendor._sK3qi2g1715673460166.js";import{R as $,E as h,S as F}from"./EffectComposer.9FcyN_Ya1715673460166.js";import{U as z}from"./UnrealBloomPass.P5slxu_k1715673460166.js";import"./Pass.agMNEUrn1715673460166.js";const H=e("TresBoxGeometry",{args:[1,1,1]},null,-1),j=e("TresMeshNormalMaterial",null,null,-1),A=[H,j],Y=e("TresBoxGeometry",{args:[1,1,1]},null,-1),q=e("TresMeshNormalMaterial",null,null,-1),I=[Y,q],J=p({__name:"ecLayerShaderPass",setup(g){const s=m(),r=m(),{camera:t,renderer:o,scene:f,sizes:u}=S(),d={strength:.572,radius:.51,threshold:0};let v=null,a=null,n=null;const w=(l,i,c,C,b)=>{v=new $(l,i);const B=new z(new E(C,b),d.strength,d.radius,d.threshold);a=new h(c),a.renderToScreen=!1,a.addPass(v),a.addPass(B)},P=l=>{n=new h(l);const i=new D({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 F(i,"baseTexture");c.needsSwap=!0,n.addPass(v),n.addPass(c)};x(()=>{s.value&&s.value.layers.set(0),r.value&&r.value.layers.set(1),u.width.value&&(w(f.value,t.value,o.value,u.width.value,u.height.value),P(o.value))});const{onLoop:y}=U();return y(()=>{a&&n&&t.value&&(o.value.clear(),t.value.layers.set(1),a.render(),o.value.clearDepth(),t.value.layers.set(0),n.render(f.value,t.value))}),(l,i)=>(T(),M(k,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]},I,512)],64))}}),K=e("TresPerspectiveCamera",{position:[10,10,10]},null,-1),O=e("TresAmbientLight",{intensity:1},null,-1),Q=e("TresGridHelper",{args:[10,10]},null,-1),se=p({__name:"effectComposerShaderPass",setup(g){const s=m();return x(()=>{if(s.value){let r=s.value.context.renderer.value;r.autoClear=!1}}),(r,t)=>{const o=R("TresCanvas");return T(),G(o,{disableRender:"","window-size":"",ref_key:"tcRef",ref:s},{default:L(()=>[K,O,_(N(V)),Q,_(J)]),_:1},512)}}});export{se as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{ax as m,c9 as a,az as s,aA as h,ap as g,a1 as v,aq as _,a2 as y,bx as t,aw as x,ca as S,b6 as b,a6 as C,r as T,o as r,x as d,E as f,a as c,L as i,ac as M,Y as n,ag as k,cb as B}from"./vendor.bbi2JiG-1715415693854.js";class G extends m{constructor(o={}){super(),this.vertexShader="\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main() {\n vec4 modelPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * viewMatrix * modelPosition;\n vec4 modelNormal = modelMatrix * vec4(normal, 0.0);\n vPosition = modelPosition.xyz;\n vNormal = modelNormal.xyz;\n\n }\n ",this.fragmentShader="\n uniform vec3 glowColor;\n uniform float falloff;\n uniform float glowSharpness;\n uniform float glowInternalRadius;\n uniform float opacity;\n\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main()\n {\n // Normal\n vec3 normal = normalize(vNormal);\n if(!gl_FrontFacing)\n normal *= - 1.0;\n vec3 viewDirection = normalize(cameraPosition - vPosition);\n float fresnel = dot(viewDirection, normal);\n fresnel = pow(fresnel, glowInternalRadius + 0.1);\n float falloff = smoothstep(0., falloff, fresnel);\n float fakeGlow = fresnel;\n fakeGlow += fresnel * glowSharpness;\n fakeGlow *= falloff;\n gl_FragColor = vec4(clamp(glowColor * fresnel, 0., 1.0), clamp(fakeGlow, 0., opacity));\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n } \n ",this.uniforms={opacity:new a(o.opacity!==void 0?o.opacity:1),glowInternalRadius:new a(o.glowInternalRadius!==void 0?o.glowInternalRadius:6),glowSharpness:new a(o.glowSharpness!==void 0?o.glowSharpness:.5),falloff:new a(o.falloff!==void 0?o.falloff:.1),glowColor:new a(o.glowColor!==void 0?new s(o.glowColor):new s("#00d5ff"))},this.setValues(o),this.depthTest=o.depthTest!==void 0?o.depthTest:!1,this.blending=o.blendMode!==void 0?o.blendMode:h,this.transparent=!0,this.side=o.side!==void 0?o.side:g}}const P=G,j=n("TresPerspectiveCamera",{position:[0,25,25],near:.1,fov:65},null,-1),R=n("TresAmbientLight",{intensity:1.5},null,-1),I=n("TresDirectionalLight",{position:[100,100,60],intensity:20},null,-1),N=n("TresGridHelper",{args:[20,10]},null,-1),z={position:[0,6,0]},F=n("TresMesh",null,[n("TresTorusKnotGeometry",{args:[4,.5,128,128]}),n("TresMeshPhysicalMaterial",{color:"blue",roughness:.2,clearcoat:1})],-1),D=["object"],q=v({__name:"fakeGlow",setup(u){const o=new _({title:"辉光参数",expanded:!0}),e=y({glowColor:"#a058c1",falloff:1.4,glowInternalRadius:3.7,glowSharpness:0,opacity:1,side:t,depthTest:!1}),l=new P,w=new x(new S(4,3.8,128,128),l);return o.addBinding(e,"glowColor",{label:"颜色"}),o.addBinding(e,"falloff",{label:"衰减",min:0,max:10,step:.1}),o.addBinding(e,"glowInternalRadius",{label:"内半径",min:-5,max:5,step:.1}),o.addBinding(e,"glowSharpness",{label:"清晰度",min:0,max:10,step:.1}),o.addBinding(e,"opacity",{label:"透明",min:0,max:1,step:.1}),o.addBinding(e,"side",{label:"材质面",options:{FrontSide:t,BackSide:b,DoubleSide:g}}),C(()=>{l.uniforms.falloff.value=e.falloff,l.uniforms.glowColor.value=new s(e.glowColor),l.uniforms.glowInternalRadius.value=e.glowInternalRadius,l.uniforms.glowSharpness.value=e.glowSharpness,l.uniforms.opacity.value=e.opacity,l.side=e.side}),(A,L)=>{const p=T("TresCanvas");return r(),d(p,{"window-size":""},{default:f(()=>[j,R,I,c(i(M),{autoRotate:""}),N,n("TresGroup",z,[F,n("primitive",{object:i(w)},null,8,D)]),(r(),d(k,null,{default:f(()=>[c(i(B),{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})}}});export{q as default};
|
||||
import{ax as m,c9 as a,az as s,aA as h,ap as g,a1 as v,aq as _,a2 as y,bx as t,aw as x,ca as S,b6 as b,a6 as C,r as T,o as r,x as d,E as f,a as c,L as i,ac as M,Y as n,ag as k,cb as B}from"./vendor._sK3qi2g1715673460166.js";class G extends m{constructor(o={}){super(),this.vertexShader="\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main() {\n vec4 modelPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * viewMatrix * modelPosition;\n vec4 modelNormal = modelMatrix * vec4(normal, 0.0);\n vPosition = modelPosition.xyz;\n vNormal = modelNormal.xyz;\n\n }\n ",this.fragmentShader="\n uniform vec3 glowColor;\n uniform float falloff;\n uniform float glowSharpness;\n uniform float glowInternalRadius;\n uniform float opacity;\n\n varying vec3 vPosition;\n varying vec3 vNormal;\n\n void main()\n {\n // Normal\n vec3 normal = normalize(vNormal);\n if(!gl_FrontFacing)\n normal *= - 1.0;\n vec3 viewDirection = normalize(cameraPosition - vPosition);\n float fresnel = dot(viewDirection, normal);\n fresnel = pow(fresnel, glowInternalRadius + 0.1);\n float falloff = smoothstep(0., falloff, fresnel);\n float fakeGlow = fresnel;\n fakeGlow += fresnel * glowSharpness;\n fakeGlow *= falloff;\n gl_FragColor = vec4(clamp(glowColor * fresnel, 0., 1.0), clamp(fakeGlow, 0., opacity));\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n } \n ",this.uniforms={opacity:new a(o.opacity!==void 0?o.opacity:1),glowInternalRadius:new a(o.glowInternalRadius!==void 0?o.glowInternalRadius:6),glowSharpness:new a(o.glowSharpness!==void 0?o.glowSharpness:.5),falloff:new a(o.falloff!==void 0?o.falloff:.1),glowColor:new a(o.glowColor!==void 0?new s(o.glowColor):new s("#00d5ff"))},this.setValues(o),this.depthTest=o.depthTest!==void 0?o.depthTest:!1,this.blending=o.blendMode!==void 0?o.blendMode:h,this.transparent=!0,this.side=o.side!==void 0?o.side:g}}const P=G,j=n("TresPerspectiveCamera",{position:[0,25,25],near:.1,fov:65},null,-1),R=n("TresAmbientLight",{intensity:1.5},null,-1),I=n("TresDirectionalLight",{position:[100,100,60],intensity:20},null,-1),N=n("TresGridHelper",{args:[20,10]},null,-1),z={position:[0,6,0]},F=n("TresMesh",null,[n("TresTorusKnotGeometry",{args:[4,.5,128,128]}),n("TresMeshPhysicalMaterial",{color:"blue",roughness:.2,clearcoat:1})],-1),D=["object"],q=v({__name:"fakeGlow",setup(u){const o=new _({title:"辉光参数",expanded:!0}),e=y({glowColor:"#a058c1",falloff:1.4,glowInternalRadius:3.7,glowSharpness:0,opacity:1,side:t,depthTest:!1}),l=new P,w=new x(new S(4,3.8,128,128),l);return o.addBinding(e,"glowColor",{label:"颜色"}),o.addBinding(e,"falloff",{label:"衰减",min:0,max:10,step:.1}),o.addBinding(e,"glowInternalRadius",{label:"内半径",min:-5,max:5,step:.1}),o.addBinding(e,"glowSharpness",{label:"清晰度",min:0,max:10,step:.1}),o.addBinding(e,"opacity",{label:"透明",min:0,max:1,step:.1}),o.addBinding(e,"side",{label:"材质面",options:{FrontSide:t,BackSide:b,DoubleSide:g}}),C(()=>{l.uniforms.falloff.value=e.falloff,l.uniforms.glowColor.value=new s(e.glowColor),l.uniforms.glowInternalRadius.value=e.glowInternalRadius,l.uniforms.glowSharpness.value=e.glowSharpness,l.uniforms.opacity.value=e.opacity,l.side=e.side}),(A,L)=>{const p=T("TresCanvas");return r(),d(p,{"window-size":""},{default:f(()=>[j,R,I,c(i(M),{autoRotate:""}),N,n("TresGroup",z,[F,n("primitive",{object:i(w)},null,8,D)]),(r(),d(k,null,{default:f(()=>[c(i(B),{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})}}});export{q as default};
|
@ -1 +1 @@
|
||||
import{a1 as n,l as s,a6 as p,a2 as r,aq as m,o as c,x as d,E as f,a as o,a8 as l}from"./vendor.bbi2JiG-1715415693854.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as i}from"./rippleMesh.vue_vue_type_script_setup_true_lang.Y0JLSfUw1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";import"./utils.ZvNxIta61715415693854.js";import"./Water2.-QM5wDhX1715415693854.js";import"./Reflector.u_rg7Evg1715415693854.js";import"./ExtensionUtilities.uSEH3D8k1715415693854.js";const E=n({__name:"fence",setup(y){const t=s();p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const e=r({color:"#00ffdd",opacity:.8,num:8,speed:.2}),a=new m({title:"围墙效果",expanded:!0});return a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"opacity",{label:"透明度",min:0,max:1,step:.1}),a.addBinding(e,"speed",{label:"滚动速度",min:0,max:1,step:.1}),a.addBinding(e,"num",{label:"条纹数",min:0,max:20,step:1}),(_,u)=>(c(),d(x,{ref_key:"pagesShowRef",ref:t},{ability:f(()=>[o(i,{"position-y":20,positionSrc:[{x:-7.3*40,y:4.27*40},{x:-7.4*40,y:10.05*40},{x:-4.9*40,y:10.03*40},{x:-4.9*40,y:4.46*40},{x:-7.3*40,y:4.27*40}],height:180}),o(i,l({"position-y":20,positionSrc:[{x:.27*40,y:-1.19*40},{x:.32*40,y:-5.5*40},{x:-7.59*40,y:-5.9*40},{x:-7.6*40,y:-1.3*40},{x:.27*40,y:-1.19*40}]},e),null,16)]),_:1},512))}});export{E as default};
|
||||
import{a1 as n,l as s,a6 as p,a2 as r,aq as m,o as c,x as d,E as f,a as o,a8 as l}from"./vendor._sK3qi2g1715673460166.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as i}from"./rippleMesh.vue_vue_type_script_setup_true_lang.WiQs4SLb1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";import"./utils.AVJJNPlc1715673460166.js";import"./Water2.lmyPwxGF1715673460166.js";import"./Reflector.gbDWuAel1715673460166.js";import"./ExtensionUtilities.jG_c6sY11715673460166.js";const E=n({__name:"fence",setup(y){const t=s();p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)});const e=r({color:"#00ffdd",opacity:.8,num:8,speed:.2}),a=new m({title:"围墙效果",expanded:!0});return a.addBinding(e,"color",{label:"颜色"}),a.addBinding(e,"opacity",{label:"透明度",min:0,max:1,step:.1}),a.addBinding(e,"speed",{label:"滚动速度",min:0,max:1,step:.1}),a.addBinding(e,"num",{label:"条纹数",min:0,max:20,step:1}),(_,u)=>(c(),d(x,{ref_key:"pagesShowRef",ref:t},{ability:f(()=>[o(i,{"position-y":20,positionSrc:[{x:-7.3*40,y:4.27*40},{x:-7.4*40,y:10.05*40},{x:-4.9*40,y:10.03*40},{x:-4.9*40,y:4.46*40},{x:-7.3*40,y:4.27*40}],height:180}),o(i,l({"position-y":20,positionSrc:[{x:.27*40,y:-1.19*40},{x:.32*40,y:-5.5*40},{x:-7.59*40,y:-5.9*40},{x:-7.6*40,y:-1.3*40},{x:.27*40,y:-1.19*40}]},e),null,16)]),_:1},512))}});export{E as default};
|
@ -1 +1 @@
|
||||
import{a1 as r,aq as o,a2 as m,l,a6 as p,o as n,c,a as i,E as s,G as f,x as d,a8 as _,ag as u}from"./vendor.bbi2JiG-1715415693854.js";import{_ as g}from"./default.vue_vue_type_script_setup_true_lang.bJtHBUNB1715415693854.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as B}from"./fireA.vue_vue_type_script_setup_true_lang.KkH7p1pf1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";const A=r({__name:"fireA",setup(S){const e=new o({title:"火-参数",expanded:!0}),a=m({fireScale:60,magnitude:1.3,lacunarity:2,gain:1});e.addBinding(a,"fireScale",{label:"大小",min:10,max:300,step:10}),e.addBinding(a,"magnitude",{label:"magnitude",min:.05,max:3,step:.05}),e.addBinding(a,"lacunarity",{label:"lacunarity",min:.1,max:10,step:.2}),e.addBinding(a,"gain",{label:"gain",min:.1,max:2,step:.1});const t=l();return p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)}),(b,h)=>(n(),c(f,null,[i(g),i(x,{ref_key:"pagesShowRef",ref:t},{ability:s(()=>[(n(),d(u,null,{default:s(()=>[i(B,_(a,{position:[200,19,120]}),null,16)]),_:1}))]),_:1},512)],64))}});export{A as default};
|
||||
import{a1 as r,aq as o,a2 as m,l,a6 as p,o as n,c,a as i,E as s,G as f,x as d,a8 as _,ag as u}from"./vendor._sK3qi2g1715673460166.js";import{_ as g}from"./default.vue_vue_type_script_setup_true_lang.1388ZE0s1715673460166.js";import{_ as x}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as B}from"./fireA.vue_vue_type_script_setup_true_lang.VIftq3tN1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";const A=r({__name:"fireA",setup(S){const e=new o({title:"火-参数",expanded:!0}),a=m({fireScale:60,magnitude:1.3,lacunarity:2,gain:1});e.addBinding(a,"fireScale",{label:"大小",min:10,max:300,step:10}),e.addBinding(a,"magnitude",{label:"magnitude",min:.05,max:3,step:.05}),e.addBinding(a,"lacunarity",{label:"lacunarity",min:.1,max:10,step:.2}),e.addBinding(a,"gain",{label:"gain",min:.1,max:2,step:.1});const t=l();return p(()=>{t.value&&t.value.$refs.perspectiveCameraRef.position.set(580,360,500)}),(b,h)=>(n(),c(f,null,[i(g),i(x,{ref_key:"pagesShowRef",ref:t},{ability:s(()=>[(n(),d(u,null,{default:s(()=>[i(B,_(a,{position:[200,19,120]}),null,16)]),_:1}))]),_:1},512)],64))}});export{A as default};
|
File diff suppressed because one or more lines are too long
1
dist/js/fireB.GRvbIZvY1715673460166.js
vendored
Normal file
1
dist/js/fireB.GRvbIZvY1715673460166.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.KX01PGhH1715673460166.js";import{_ as r}from"./fireB.vue_vue_type_script_setup_true_lang.GOo15QvN1715673460166.js";import{a1 as s,o as a,x as t,E as o,ag as i,a as m}from"./vendor._sK3qi2g1715673460166.js";import"./vanilla.fCPzXgIX1715673460166.js";import"./_commonjsHelpers.5-cIlDoe1715673460166.js";import"./_commonjs-dynamic-modules.h-SxKiO41715673460166.js";import"./LineSegments2.83MXiyLH1715673460166.js";import"./SPE.VTYx4B4K1715673460166.js";const k=s({__name:"fireB",setup(_){return(p,n)=>(a(),t(e,null,{ability:o(()=>[(a(),t(i,null,{default:o(()=>[m(r)]),_:1}))]),_:1}))}});export{k as default};
|
1
dist/js/fireB.OH4dpBnD1715415693854.js
vendored
1
dist/js/fireB.OH4dpBnD1715415693854.js
vendored
@ -1 +0,0 @@
|
||||
import{_ as e}from"./pagesShow.vue_vue_type_script_setup_true_lang.kDsRnNy21715415693854.js";import{_ as r}from"./fireB.vue_vue_type_script_setup_true_lang.-lOLk1d71715415693854.js";import{a1 as s,o as a,x as t,E as o,ag as i,a as m}from"./vendor.bbi2JiG-1715415693854.js";import"./vanilla.S7F0bJrE1715415693854.js";import"./_commonjsHelpers.5-cIlDoe1715415693854.js";import"./_commonjs-dynamic-modules.h-SxKiO41715415693854.js";import"./LineSegments2.8xxKgZUV1715415693854.js";import"./SPE.Y31IVjpB1715415693854.js";const k=s({__name:"fireB",setup(_){return(p,n)=>(a(),t(e,null,{ability:o(()=>[(a(),t(i,null,{default:o(()=>[m(r)]),_:1}))]),_:1}))}});export{k 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