icegl-three-vue-tres/dist/js/accumulativeShadows.yvrIYhKy1725416517797.js
2024-09-04 10:33:50 +08:00

2 lines
5.0 KiB
JavaScript

import{a9 as n,C as t}from"./three.VTQVqxMx1725416517797.js";import{d as e,x as s}from"./@tresjs.5lh7VmqZ1725416517797.js";import{a as o}from"./index.6rFj34yJ1725416517797.js";import{P as a}from"./tweakpane.yHWGBmom1725416517797.js";import{_ as r}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.YawtifQB1725416517797.js";import{d as i,r as c,Y as u,a2 as l,o as p,f as m,g as f,j as d,u as h,aj as g,ak as b,al as j,m as w,L as y}from"./@vue._6MD2XyK1725416517797.js";import"./@vueuse.L-salR9N1725416517797.js";import"./three-stdlib.a3mqXhLa1725416517797.js";import"./@pmndrs.3SP8A_bt1725416517797.js";import"./object-hash.UdqO8HjX1725416517797.js";import"./@amap.LUDXTi4z1725416517797.js";import"./jszip.7CKSmb6c1725416517797.js";const x=I;!function(n,t){const e=I,s=S();for(;;)try{if(726593===parseInt(e(388))/1+parseInt(e(405))/2*(-parseInt(e(378))/3)+parseInt(e(414))/4+parseInt(e(370))/5*(parseInt(e(371))/6)+-parseInt(e(409))/7*(-parseInt(e(393))/8)+-parseInt(e(376))/9+parseInt(e(420))/10)break;s.push(s.shift())}catch(o){s.push(s.shift())}}();const _=function(){let n=!0;return function(t,e){const s=n?function(){if(e){const n=e[I(418)](t,arguments);return e=null,n}}:function(){};return n=!1,s}}();!function(){_(this,(function(){const n=I,t=new RegExp(n(422)),e=new RegExp(n(394),"i"),s=C(n(382));t[n(397)](s+n(416))&&e[n(397)](s+n(387))?C():s("0")}))()}();const v=function(){let n=!0;return function(t,e){const s=n?function(){if(e){const n=e[I(418)](t,arguments);return e=null,n}}:function(){};return n=!1,s}}();function I(n,t){const e=S();return(I=function(n,t){return e[n-=367]})(n,t)}v(void 0,(function(){const n=I,t=function(){const n=I;let t;try{t=Function("return (function() "+n(404)+");")()}catch(e){t=window}return t}(),e=t[n(417)]=t[n(417)]||{},s=["log",n(374),n(390),n(367),"exception",n(383),n(403)];for(let o=0;o<s.length;o++){const t=v[n(401)][n(427)][n(384)](v),a=s[o],r=e[a]||t;t[n(372)]=v[n(384)](v),t[n(429)]=r[n(429)][n(384)](r),e[a]=t}}))();const T=y(x(408),{position:[2,3,4],fov:45,near:1,far:1e3},null,-1),z=y(x(380),{intensity:.5},null,-1),k=y(x(428),{position:[2,.5,-1.5],"receive-shadow":"","cast-shadow":"",name:"sphere"},[y("TresSphereGeometry",{args:[.5]}),y("TresMeshStandardMaterial",{color:16724991,roughness:0,metalness:1})],-1),M=y(x(428),{position:[-1.5,.5,1.5],"receive-shadow":"","cast-shadow":"",name:x(431)},[y("TresCylinderGeometry",{args:[.5,.5,1]}),y(x(392),{color:3407871,roughness:0,metalness:0})],-1),B=y("TresMesh",{position:[0,.9,0],"receive-shadow":"","cast-shadow":"",name:x(389)},[y("TresTorusKnotGeometry",{args:[.5,.2,80,64]}),y(x(392),{color:16777011,roughness:.3,metalness:.5})],-1);function S(){const n=["console","apply","counter","14006070eblKoC","frames","function *\\( *\\)","blendWindow","alphaTest","grey","length","prototype","TresMesh","toString","pos-x.jpg","cube","debu","error","call","scene","2491255lEaKHB","6kZlbmb","__proto__","action","warn","https://opensource-1314935952.cos.ap-nanjing.myqcloud.com/images/skyBox/6jpg/","11813553tnedqZ","value","2525559GaHBYK","neg-y.jpg","TresAmbientLight","neg-x.jpg","init","table","bind","pos-y.jpg","blend","input","537869NzLQAq","torus","info","color","TresMeshStandardMaterial","67376qcrsUo","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","透明度","pos-z.jpg","test","渲染帧数","颜色混合","context","constructor","透明检测","trace",'{}.constructor("return this")( )',"2YIjiWO","background","string","TresPerspectiveCamera","182jNNkuI","addBinding","stateObject","ambient","#000000","901456AjYnHY","gger","chain"];return(S=function(){return n})()}const A=i({__name:"accumulativeShadows",setup(i){const y=x,_=c({alpha:!0,shadows:!0,shadowMap:!0,toneMapping:n}),v=c({enableDamping:!0,autoRotate:!1}),S=u();l((()=>{const n=I;if(S[n(377)]){S[n(377)][n(400)][n(369)][n(377)][n(406)]=new t(n(425))}}));const A=c({opacity:.8,alphaTest:.9,color:y(413),blend:2,lightPosition:{x:3,y:5,z:3},frames:60,blendWindow:100,ambient:.5}),C=new a({title:"参数"});return C[y(410)](A,"opacity",{label:y(395),min:0,max:1,step:.1}),C[y(410)](A,y(424),{label:y(402),min:0,max:1,step:.1}),C[y(410)](A,y(391),{label:"颜色"}),C.addBinding(A,"blend",{label:y(399),min:0,max:3,step:.1}),C.addBinding(A,"lightPosition",{label:"光源位置",x:{min:-5,max:5},y:{min:1,max:5},z:{min:-5,max:5}}),C[y(410)](A,y(421),{label:y(398),min:1,max:100,step:1}),C[y(410)](A,y(423),{label:y(386),min:1,max:100,step:1}),C.addBinding(A,y(412),{label:y(412),min:0,max:1,step:.1}),(n,t)=>{const a=y;return p(),m(h(s),w(_,{ref_key:"tcRef",ref:S,"window-size":""}),{default:f((()=>[T,d(h(e),g(b(v)),null,16),z,k,M,B,d(r,g(b(A)),null,16),(p(),m(j,null,{default:f((()=>[d(h(o),{files:[a(430),a(381),a(385),a(379),a(396),"neg-z.jpg"],path:a(375)})])),_:1}))])),_:1},16)}}});function C(n){function t(n){const e=I;if(typeof n===e(407))return function(n){}[e(401)]("while (true) {}")[e(418)](e(419));1!==(""+n/n)[e(426)]||n%20==0?function(){return!0}[e(401)](e(432)+e(415))[e(368)](e(373)):function(){return!1}[e(401)](e(432)+e(415))[e(418)](e(411)),t(++n)}try{if(n)return t;t(0)}catch(e){}}export{A as default};