mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
import{p as n,$ as t,S as r,d as e}from"./@tresjs.bIWdfO9a1725721021019.js";import{a6 as o,bW as s,bX as c,j as u,bY as i,c8 as a}from"./three.a9V66irq1725721021019.js";import{d as f,a2 as p,o as l,f as h,u as d,e as w,g,j as b,L as I}from"./@vue._6MD2XyK1725721021019.js";import"./tweakpane.yHWGBmom1725721021019.js";import"./@vueuse.Ex-1AOlz1725721021019.js";const m=P;!function(n,t){const r=P,e=_();for(;;)try{if(520517===parseInt(r(514))/1*(parseInt(r(525))/2)+parseInt(r(526))/3+parseInt(r(509))/4+parseInt(r(506))/5+-parseInt(r(495))/6*(-parseInt(r(492))/7)+-parseInt(r(527))/8*(parseInt(r(533))/9)+-parseInt(r(542))/10*(parseInt(r(535))/11))break;e.push(e.shift())}catch(o){e.push(e.shift())}}();const y=function(){let n=!0;return function(t,r){const e=n?function(){if(r){const n=r.apply(t,arguments);return r=null,n}}:function(){};return n=!1,e}}();function _(){const n=["threshold","radius","debu","test","string","render","bind","3978bksxkX","2956218KXBGnz","8FTGuIw","toString","while (true) {}","addPass","clear","__proto__","5522490bTwQzl","bloomPass","55vsPJsU","trace","width","apply","add","stateObject","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","5633590AXzmcS","action","orange","Mesh","exception",'{}.constructor("return this")( )',"7IQhPAZ","height","chain","5007534CzjwaB","value","prototype","constructor","call","Scene","console","info","counter","MeshNormalMaterial","strength","601355ilbwTM","return (function() ","gger","3921416SbhwJC","BoxGeometry","set","warn","error","518MjsQxo","length","position","log"];return(_=function(){return n})()}!function(){y(this,(function(){const n=P,t=new RegExp("function *\\( *\\)"),r=new RegExp(n(541),"i"),e=x("init");t[n(521)](e+n(494))&&r.test(e+"input")?x():e("0")}))()}();const j=function(){let n=!0;return function(t,r){const e=n?function(){if(r){const n=r[P(538)](t,arguments);return r=null,n}}:function(){};return n=!1,e}}();function P(n,t){const r=_();return(P=function(n,t){return r[n-=489]})(n,t)}j(void 0,(function(){const n=P,t=function(){const n=P;let t;try{t=Function(n(507)+n(491)+");")()}catch(r){t=window}return t}(),r=t[n(501)]=t[n(501)]||{},e=[n(517),n(512),n(502),n(513),n(490),"table",n(536)];for(let o=0;o<e[n(515)];o++){const t=j.constructor[n(497)][n(524)](j),s=e[o],c=r[s]||t;t[n(532)]=j[n(524)](j),t.toString=c[n(528)][n(524)](c),r[s]=t}}))();const v=f({__name:m(534),setup(e){const{camera:f,renderer:w,scene:g,sizes:b}=n(),I={threshold:0,strength:.972,radius:.21};let m=null;p((()=>{const n=P;b[n(537)][n(496)]&&(((n,t,r,e,o)=>{const a=P,f=new s(n,t),p=new c(new u(e,o),I[a(505)],I[a(519)],I[a(518)]);m=new i(r),m[a(530)](f),m.addPass(p)})(g[n(496)],f[n(496)],w[n(496)],b[n(537)][n(496)],b[n(493)][n(496)]),((n,t,r,e,c)=>{const u=P;let i=new(o[u(489)])(new(o[u(510)])(1,1,1),new(o[u(504)]));i[u(516)][u(511)](0,2,-4),n[u(539)](i);var f=new s(n,t);f[u(531)]=!1,m.addPass(f);const p=new a;m.addPass(p)})(new(o[n(500)]),f.value,w[n(496)],b[n(537)][n(496)],b[n(493)][n(496)]))}));const{onLoop:y}=t();return y((()=>{m&&m[P(523)]()})),(n,t)=>{const e=P;return l(),h(d(r),{args:[1,1,1],color:e(544),position:[3,2,1]})}}});function x(n){function t(n){const r=P;if(typeof n===r(522))return function(n){}[r(498)](r(529))[r(538)](r(503));1!==(""+n/n)[r(515)]||n%20==0?function(){return!0}.constructor("debu"+r(508))[r(499)](r(543)):function(){return!1}[r(498)](r(520)+r(508))[r(538)](r(540)),t(++n)}try{if(n)return t;t(0)}catch(r){}}const z=E;!function(n,t){const r=E,e=M();for(;;)try{if(623939===parseInt(r(433))/1*(parseInt(r(442))/2)+parseInt(r(424))/3*(parseInt(r(448))/4)+parseInt(r(450))/5+-parseInt(r(455))/6+-parseInt(r(445))/7*(-parseInt(r(430))/8)+parseInt(r(429))/9*(-parseInt(r(443))/10)+parseInt(r(431))/11)break;e.push(e.shift())}catch(o){e.push(e.shift())}}();const S=function(){let n=!0;return function(t,r){const e=n?function(){if(r){const n=r[E(422)](t,arguments);return r=null,n}}:function(){};return n=!1,e}}();!function(){S(this,(function(){const n=E,t=new RegExp(n(435)),r=new RegExp(n(432),"i"),e=L(n(428));t[n(446)](e+"chain")&&r[n(446)](e+n(444))?L():e("0")}))()}();const A=function(){let n=!0;return function(t,r){const e=n?function(){if(r){const n=r[E(422)](t,arguments);return r=null,n}}:function(){};return n=!1,e}}();function M(){const n=["init","63ttXvIr","1168EnqnrS","322058PlUVNp","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","209dPSwKM","TresAmbientLight","function *\\( *\\)","gger","debu","info","error","exception","bind","8378QsUYDA","1531990DDUgUm","input","8267ccLLrX","test","console","36808wzMPyK","manual","2685270NloGBW","counter","TresGridHelper","length","while (true) {}","3538038hxjPor",'{}.constructor("return this")( )',"table","TresPerspectiveCamera","toString","apply","constructor","219ufASbl","log","warn","call"];return(M=function(){return n})()}A(void 0,(function(){const n=E;let t;try{t=Function("return (function() "+n(456)+");")()}catch(o){t=window}const r=t[n(447)]=t[n(447)]||{},e=[n(425),n(426),n(438),n(439),n(440),n(457),"trace"];for(let s=0;s<e[n(453)];s++){const t=A.constructor.prototype.bind(A),o=e[s],c=r[o]||t;t.__proto__=A.bind(A),t[n(421)]=c.toString[n(441)](c),r[o]=t}}))();const T=I(z(420),{position:[10,10,10]},null,-1),k=I(z(434),{intensity:1},null,-1),X=I(z(452),{args:[10,10]},null,-1);function E(n,t){const r=M();return(E=function(n,t){return r[n-=420]})(n,t)}const G=f({__name:"bloomPass",setup:n=>(n,t)=>{const r=E,o=w("TresCanvas");return l(),h(o,{renderMode:r(449),"window-size":""},{default:g((()=>[T,k,b(d(e)),X,b(v)])),_:1})}});function L(n){function t(n){const r=E;if("string"==typeof n)return function(n){}.constructor(r(454)).apply(r(451));1!==(""+n/n)[r(453)]||n%20==0?function(){return!0}[r(423)](r(437)+r(436))[r(427)]("action"):function(){return!1}[r(423)](r(437)+"gger")[r(422)]("stateObject"),t(++n)}try{if(n)return t;t(0)}catch(r){}}export{G as default};
|