lythreeframe 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +68 -68
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +68 -68
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -25,143 +25,143 @@ var ShaderPass_js = require('three/examples/jsm/postprocessing/ShaderPass.js');
|
|
|
25
25
|
var FXAAShader_js = require('three/examples/jsm/shaders/FXAAShader.js');
|
|
26
26
|
var gsap = require('gsap');
|
|
27
27
|
var SkyMesh_js = require('three/examples/jsm/objects/SkyMesh.js');
|
|
28
|
-
var
|
|
28
|
+
var _0x1193a9 = require('earcut');
|
|
29
29
|
var CSS2DRenderer_js = require('three/examples/jsm/renderers/CSS2DRenderer.js');
|
|
30
30
|
var TransformControls_js = require('three/examples/jsm/controls/TransformControls.js');
|
|
31
31
|
|
|
32
|
-
const
|
|
32
|
+
const _0x7d7bb5=_0x3615;function _0x208a(){const _0x1bb1be=['5AnihRr','2238246pBuBxd','8kuxSgq','879641zwDKSt','1572812fwmAme','940935uhiQKl','54IBZsAv','tick','forEach','removeTickEvent','isTickEnabled','bCanTick','14588ipuTYM','1339820gomPML','generateUUID','12466806LYmgOa','push','tickEvents','destroy','6SpFyHz','_uuid'];_0x208a=function(){return _0x1bb1be;};return _0x208a();}(function(_0x452456,_0x48fad3){const _0x356ebf=_0x3615,_0x59e324=_0x452456();while(!![]){try{const _0x46fa31=-parseInt(_0x356ebf(0x1a9))/0x1*(-parseInt(_0x356ebf(0x19a))/0x2)+parseInt(_0x356ebf(0x1a8))/0x3+parseInt(_0x356ebf(0x1a7))/0x4*(parseInt(_0x356ebf(0x1a3))/0x5)+-parseInt(_0x356ebf(0x1a1))/0x6*(parseInt(_0x356ebf(0x1a6))/0x7)+parseInt(_0x356ebf(0x1a5))/0x8*(parseInt(_0x356ebf(0x1a4))/0x9)+parseInt(_0x356ebf(0x19b))/0xa+-parseInt(_0x356ebf(0x19d))/0xb;if(_0x46fa31===_0x48fad3)break;else _0x59e324['push'](_0x59e324['shift']());}catch(_0x24be12){_0x59e324['push'](_0x59e324['shift']());}}}(_0x208a,0x36c87));function _0x3615(_0x114add,_0x571fd7){_0x114add=_0x114add-0x197;const _0x208a7d=_0x208a();let _0x361586=_0x208a7d[_0x114add];return _0x361586;}class BaseObject{get[_0x7d7bb5(0x198)](){const _0x1369d7=_0x7d7bb5;return this[_0x1369d7(0x199)];}set['isTickEnabled'](_0x3ed93e){const _0x3a2125=_0x7d7bb5;this[_0x3a2125(0x199)]=_0x3ed93e;}get['uuid'](){const _0x257901=_0x7d7bb5;return this[_0x257901(0x1a2)];}constructor(_0x683f7e=webgpu.MathUtils[_0x7d7bb5(0x19c)]()){const _0x3b2158=_0x7d7bb5;this['bCanTick']=![],this['tickEvents']=[],this[_0x3b2158(0x199)]=![],this['_uuid']=_0x683f7e;}[_0x7d7bb5(0x1aa)](_0x1ac455){const _0x459fb5=_0x7d7bb5;if(!this[_0x459fb5(0x199)])return;this[_0x459fb5(0x19f)][_0x459fb5(0x1ab)](_0x1bf382=>{_0x1bf382(_0x1ac455);});}['addTickEvent'](_0x4002ac){const _0x202449=_0x7d7bb5;this['tickEvents'][_0x202449(0x19e)](_0x4002ac);}[_0x7d7bb5(0x197)](_0x27606a){const _0x478066=_0x7d7bb5;let _0x542d58=this[_0x478066(0x19f)]['indexOf'](_0x27606a);_0x542d58!=-1&&this[_0x478066(0x19f)]['splice'](_0x542d58,0x1);}['clearTickEvents'](){const _0xa338f4=_0x7d7bb5;this[_0xa338f4(0x19f)]=[];}[_0x7d7bb5(0x1a0)](){}}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
function _0x131e(_0x3a12c4,_0xc7cf00){_0x3a12c4=_0x3a12c4-0x1f1;const _0x10d2e4=_0x10d2();let _0x131e99=_0x10d2e4[_0x3a12c4];return _0x131e99;}const _0x5d4eb8=_0x131e;(function(_0x3a5ad3,_0x47dbcc){const _0x31b322=_0x131e,_0x53723f=_0x3a5ad3();while(!![]){try{const _0x4a984f=parseInt(_0x31b322(0x1f2))/0x1+parseInt(_0x31b322(0x204))/0x2*(-parseInt(_0x31b322(0x205))/0x3)+parseInt(_0x31b322(0x203))/0x4+-parseInt(_0x31b322(0x1f8))/0x5+parseInt(_0x31b322(0x1fa))/0x6*(parseInt(_0x31b322(0x200))/0x7)+parseInt(_0x31b322(0x1fd))/0x8*(-parseInt(_0x31b322(0x1f6))/0x9)+parseInt(_0x31b322(0x1fc))/0xa*(-parseInt(_0x31b322(0x1f7))/0xb);if(_0x4a984f===_0x47dbcc)break;else _0x53723f['push'](_0x53723f['shift']());}catch(_0x260d0e){_0x53723f['push'](_0x53723f['shift']());}}}(_0x10d2,0x1a9bd));function _0x10d2(){const _0x28f213=['755676fMGPer','26GvIBuY','11163DAtEDQ','Component','type','generateUUID','140693NftZxi','warn','name','destroyObject','9477siKbSh','3817ohYoxa','228600txoMum','parentActor','408282gbkOyq','threeObject','6070jWMxpq','912zhPrXw','_name','userData','21caMVdU','obj','_parentActor'];_0x10d2=function(){return _0x28f213;};return _0x10d2();}class Component extends BaseObject{set[_0x5d4eb8(0x1f9)](_0x449a8a){const _0x4568bd=_0x5d4eb8;this[_0x4568bd(0x202)]=_0x449a8a;}get['parentActor'](){const _0x171414=_0x5d4eb8;return this[_0x171414(0x202)];}get[_0x5d4eb8(0x1fb)](){const _0x431f60=_0x5d4eb8;return this[_0x431f60(0x201)];}set[_0x5d4eb8(0x1fb)](_0x44692f){const _0x22dd83=_0x5d4eb8;this[_0x22dd83(0x201)]=_0x44692f,this[_0x22dd83(0x201)]&&(this[_0x22dd83(0x201)][_0x22dd83(0x1ff)]['LYObject']=this);}get[_0x5d4eb8(0x1f4)](){const _0x28a753=_0x5d4eb8;return this[_0x28a753(0x1fe)];}set[_0x5d4eb8(0x1f4)](_0x255aed){const _0x46acc1=_0x5d4eb8;this[_0x46acc1(0x1fe)]=_0x255aed,this[_0x46acc1(0x201)]&&(this[_0x46acc1(0x201)][_0x46acc1(0x1f4)]=_0x255aed);}constructor(_0x53914f){const _0x526e3c=_0x5d4eb8;super(_0x53914f?_0x53914f:webgpu.MathUtils[_0x526e3c(0x1f1)]()),this[_0x526e3c(0x201)]=null,this['_parentActor']=null,this[_0x526e3c(0x1fe)]=_0x526e3c(0x206),this[_0x526e3c(0x202)]=null;let _0x4d201a=this['createDefaultObject']();_0x4d201a?(this[_0x526e3c(0x201)]=_0x4d201a,this[_0x526e3c(0x1fe)]=this['obj'][_0x526e3c(0x207)]+_0x526e3c(0x206)):console[_0x526e3c(0x1f3)]('Component\x20createDefaultObject\x20return\x20null');}['createDefaultObject'](_0x3684cd){return null;}[_0x5d4eb8(0x1f5)](){if(!this['obj'])return;}['destroy'](){this['destroyObject']();}}
|
|
35
35
|
|
|
36
|
-
function
|
|
36
|
+
function _0x5f10(){var _0x219577=['2929cisFAt','1235108IpdWlK','6110574PINnFG','KeepWorld','7975759CxZwpe','20774976TMRZZR','5NzrLqZ','3aciEch','1659FWGGsQ','775230rQBUOw','KeepRelative','117bUmqwr','16616WGKIUF','150elVpgE'];_0x5f10=function(){return _0x219577;};return _0x5f10();}(function(_0x5ae02b,_0x5114f0){var _0x5b95ee=_0x3359,_0x16f650=_0x5ae02b();while(!![]){try{var _0x3c7133=parseInt(_0x5b95ee(0x12f))/0x1*(parseInt(_0x5b95ee(0x13c))/0x2)+parseInt(_0x5b95ee(0x136))/0x3*(parseInt(_0x5b95ee(0x130))/0x4)+-parseInt(_0x5b95ee(0x135))/0x5*(-parseInt(_0x5b95ee(0x131))/0x6)+-parseInt(_0x5b95ee(0x137))/0x7*(-parseInt(_0x5b95ee(0x13b))/0x8)+parseInt(_0x5b95ee(0x13a))/0x9*(parseInt(_0x5b95ee(0x138))/0xa)+-parseInt(_0x5b95ee(0x133))/0xb+-parseInt(_0x5b95ee(0x134))/0xc;if(_0x3c7133===_0x5114f0)break;else _0x16f650['push'](_0x16f650['shift']());}catch(_0x3fa463){_0x16f650['push'](_0x16f650['shift']());}}}(_0x5f10,0x90314));function _0x3359(_0x104839,_0x5efc2f){_0x104839=_0x104839-0x12f;var _0x5f10b4=_0x5f10();var _0x335905=_0x5f10b4[_0x104839];return _0x335905;}exports.AttachmentRules = void 0;(function(_0x1c0ae6){var _0x18d92a=_0x3359;_0x1c0ae6[_0x1c0ae6[_0x18d92a(0x132)]=0x1]=_0x18d92a(0x132),_0x1c0ae6[_0x1c0ae6[_0x18d92a(0x139)]=0x2]=_0x18d92a(0x139);}(exports.AttachmentRules||(exports.AttachmentRules={})));
|
|
37
37
|
|
|
38
|
-
const
|
|
38
|
+
const _0x21946a=_0x4c46;(function(_0xa3dbbb,_0x4f3658){const _0x5b1b6c=_0x4c46,_0x15434f=_0xa3dbbb();while(!![]){try{const _0x553032=-parseInt(_0x5b1b6c(0xbd))/0x1*(-parseInt(_0x5b1b6c(0xc2))/0x2)+parseInt(_0x5b1b6c(0xbb))/0x3*(parseInt(_0x5b1b6c(0xb9))/0x4)+parseInt(_0x5b1b6c(0xb8))/0x5+parseInt(_0x5b1b6c(0xc0))/0x6*(-parseInt(_0x5b1b6c(0xb7))/0x7)+parseInt(_0x5b1b6c(0xb6))/0x8+-parseInt(_0x5b1b6c(0xbe))/0x9+-parseInt(_0x5b1b6c(0xba))/0xa*(-parseInt(_0x5b1b6c(0xc4))/0xb);if(_0x553032===_0x4f3658)break;else _0x15434f['push'](_0x15434f['shift']());}catch(_0x4cc592){_0x15434f['push'](_0x15434f['shift']());}}}(_0xe9be,0xc89e1));class Delegate{constructor(){const _0x383a2f=_0x4c46;this[_0x383a2f(0xc6)]=[];}[_0x21946a(0xbc)](..._0x4e7a00){const _0x59dfaa=_0x21946a;this[_0x59dfaa(0xc6)]['forEach'](_0x43c8da=>_0x43c8da(..._0x4e7a00));}[_0x21946a(0xc3)](_0x15ae3a){const _0x5d4023=_0x21946a;this[_0x5d4023(0xc6)]['push'](_0x15ae3a);}[_0x21946a(0xbf)](_0x69036d){const _0x3a814e=_0x21946a,_0x417cd6=this[_0x3a814e(0xc6)][_0x3a814e(0xc1)](_0x69036d);_0x417cd6>=0x0&&this[_0x3a814e(0xc6)][_0x3a814e(0xc5)](_0x417cd6,0x1);}['clear'](){const _0x46a683=_0x21946a;this[_0x46a683(0xc6)]=[];}}function _0x4c46(_0x230a63,_0x4fcfc2){_0x230a63=_0x230a63-0xb6;const _0xe9be6f=_0xe9be();let _0x4c4663=_0xe9be6f[_0x230a63];return _0x4c4663;}function _0xe9be(){const _0x5489f9=['2197034pjsSCP','687565EYuHGa','31148BEcIRd','150fdaPQu','237xKxRvs','broadcast','1gwZURL','11185335RYsaCo','remove','6VCMhsw','indexOf','908022QUUucQ','add','311036CeNnwh','splice','functions','5980552qecmKN'];_0xe9be=function(){return _0x5489f9;};return _0xe9be();}
|
|
39
39
|
|
|
40
|
-
const _0x3b02b1=_0x1a21;(function(_0x251803,_0x533679){const _0x4c1714=_0x1a21,_0x1d3f03=_0x251803();while(!![]){try{const _0x4239cf=parseInt(_0x4c1714(0xb0))/0x1*(parseInt(_0x4c1714(0xc5))/0x2)+-parseInt(_0x4c1714(0x89))/0x3+parseInt(_0x4c1714(0x98))/0x4*(-parseInt(_0x4c1714(0x88))/0x5)+parseInt(_0x4c1714(0x7c))/0x6*(parseInt(_0x4c1714(0xc1))/0x7)+-parseInt(_0x4c1714(0xb2))/0x8*(parseInt(_0x4c1714(0x92))/0x9)+parseInt(_0x4c1714(0x76))/0xa+parseInt(_0x4c1714(0xc9))/0xb*(-parseInt(_0x4c1714(0x8e))/0xc);if(_0x4239cf===_0x533679)break;else _0x1d3f03['push'](_0x1d3f03['shift']());}catch(_0x35f5aa){_0x1d3f03['push'](_0x1d3f03['shift']());}}}(_0x50e5,0x20f76));function _0x1a21(_0x52403a,_0x55464a){_0x52403a=_0x52403a-0x74;const _0x50e5fa=_0x50e5();let _0x1a216a=_0x50e5fa[_0x52403a];return _0x1a216a;}function _0x50e5(){const _0x32de8a=['min','_onDoubleClickDelegate','onDoubleClickDelegate','getWorldUpDirection','18UCCrhR','bCanHover','number','copy','matrixAutoUpdate','_parentActor','setLayers','addChildComponent','setFromObject','decompose','worldToLocal','getWorldQuaternion','45VTmRNB','241440qPElJs','length','setQuaternion','max','onClicked','956136FEwSdZ','getPosition','position','LYObject','1095363ymxdQk','setMatrix','_onHoverEndDelegate','detachFromParentActor','setPosition','getMatrix','33584gKfKQi','matrix','getWorldForwardDirection','isClickEnabled','updateMatrixWorld','getWorldScale','compose','destroy','visible','quaternion','userData','newComponent\x20threeObject\x20is\x20invalid','getQuaternion','app','setQuaternion\x20failed,param\x20is\x20invalid','applyQuaternion','getWorldDirection','viewport','_onHoverBeginDelegate','invert','getCenter','SceneComponent','destroyChildren','tick','2VNqbLK','forEach','8NbwZxR','bCanClick','isVector3','broadcast','children','markRenderStateDirty','uuid','getBounds','obj','onClickDelegate','multiplyMatrices','remove','parent','_onClickDelegate','getScale','520961bBPRCS','set','onAddedToWorld','getWorldRotation','49384ASePbm','getBoundsTopCenterPositionWS','parentActor','getComponentById','11yLpZHK','getWorldMatrix','setScale','error','detachFromParentComponent','setWorldMatrix','clone','scale','threeObject\x20is\x20invalid','removeChildComponent','world','KeepRelative','parentComponent','setFromQuaternion','isQuaternion','push','childrenComponents','threeObject','destroyObject','onHoverEndDelegate','rotation','matrixWorld','add','updateMatrix','onHoverBeginDelegate','2198060oAVFdD','getWorldPosition'];_0x50e5=function(){return _0x32de8a;};return _0x50e5();}class SceneComponent extends Component{set['parentActor'](_0x40d5d8){const _0x26c11e=_0x1a21;this[_0x26c11e(0xd9)][_0x26c11e(0xb1)](_0xacdabe=>{const _0x503547=_0x26c11e;_0xacdabe[_0x503547(0xc7)]=_0x40d5d8;}),this[_0x26c11e(0x81)]=_0x40d5d8;}get[_0x3b02b1(0xc7)](){const _0x2520a0=_0x3b02b1;return this[_0x2520a0(0x81)];}get[_0x3b02b1(0x75)](){const _0x53d708=_0x3b02b1;return this[_0x53d708(0xaa)];}get[_0x3b02b1(0xdc)](){const _0x10ae28=_0x3b02b1;return this[_0x10ae28(0x94)];}get[_0x3b02b1(0xbb)](){const _0x7fb452=_0x3b02b1;return this[_0x7fb452(0xbf)];}get[_0x3b02b1(0x7a)](){const _0xb45abd=_0x3b02b1;return this[_0xb45abd(0x79)];}get[_0x3b02b1(0xd3)](){const _0x136610=_0x3b02b1;return this['app'][_0x136610(0xd3)];}constructor(_0x4ccaff,_0x58cb7b){const _0xb27b7f=_0x3b02b1;super(_0x58cb7b),this['bCanHover']=![],this[_0xb27b7f(0xb3)]=![],this[_0xb27b7f(0xaa)]=new Delegate(),this['_onHoverEndDelegate']=new Delegate(),this['_onClickDelegate']=new Delegate(),this[_0xb27b7f(0x79)]=new Delegate(),this[_0xb27b7f(0xa5)]=_0x4ccaff,this['name']=_0xb27b7f(0xad);}['createDefaultObject'](){return new webgpu.Object3D();}[_0x3b02b1(0xaf)](_0x5b0542){const _0x18b516=_0x3b02b1;super[_0x18b516(0xaf)](_0x5b0542),this['childrenComponents'][_0x18b516(0xb1)](_0x18414e=>{const _0x1c00a0=_0x18b516;_0x18414e[_0x1c00a0(0xaf)](_0x5b0542);});}get['isVisible'](){const _0x217090=_0x3b02b1;if(!this[_0x217090(0xba)])return ![];return this[_0x217090(0xba)][_0x217090(0xa0)];}['setVisible'](_0x3bc1da){const _0x322455=_0x3b02b1;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');this['obj'][_0x322455(0xa0)]=_0x3bc1da,this[_0x322455(0xd3)]&&this['world'][_0x322455(0xa9)]['markRenderStateDirty']();}[_0x3b02b1(0x82)](_0x644b69){const _0x1cb3aa=_0x3b02b1;if(!this['obj'])throw Error(_0x1cb3aa(0xd1));this[_0x1cb3aa(0xba)]['layers'][_0x1cb3aa(0xc2)](_0x644b69);let _0x503deb=this[_0x1cb3aa(0xd9)];_0x503deb[_0x1cb3aa(0xb1)](_0x2a546a=>{_0x2a546a['setLayers'](_0x644b69);});}['getComponentById'](_0x4ecddb,_0x216ab7=!![]){const _0xab0759=_0x3b02b1;if(this['uuid']===_0x4ecddb)return this;if(_0x216ab7){let _0x490b05=this[_0xab0759(0xd9)];for(let _0x2049aa=0x0;_0x2049aa<_0x490b05[_0xab0759(0x8a)];++_0x2049aa){let _0x571969=_0x490b05[_0x2049aa][_0xab0759(0xc8)](_0x4ecddb,_0x216ab7);if(_0x571969)return _0x571969;}}else {let _0x2c4173=this[_0xab0759(0xd9)];for(let _0x46be96=0x0;_0x46be96<_0x2c4173[_0xab0759(0x8a)];++_0x46be96){let _0x56ce41=_0x2c4173[_0x46be96];if(_0x56ce41[_0xab0759(0xb8)]===_0x4ecddb)return _0x56ce41;}}return null;}['getBoundsCenterPositionWS'](){const _0x479c9b=_0x3b02b1;let _0x1350e6=new webgpu.Vector3();return this[_0x479c9b(0xb9)]()[_0x479c9b(0xac)](_0x1350e6),this[_0x479c9b(0x77)]();}[_0x3b02b1(0xc6)](){const _0x296ea0=_0x3b02b1;let _0x131040=new webgpu.Vector3(),_0x3bef89=this[_0x296ea0(0xb9)]();return _0x3bef89[_0x296ea0(0xac)](_0x131040),_0x131040['y']=_0x3bef89['max']['y'],_0x131040;}['getBoundsBottomCenterPositionWS'](){const _0x5a378e=_0x3b02b1;let _0xdd8670=new webgpu.Vector3(),_0x269151=this[_0x5a378e(0xb9)]();return _0x269151[_0x5a378e(0xac)](_0xdd8670),_0xdd8670['y']=_0x269151[_0x5a378e(0x78)]['y'],_0xdd8670;}[_0x3b02b1(0xb9)](){const _0x183f0c=_0x3b02b1;if(!this[_0x183f0c(0xba)])throw Error(_0x183f0c(0xd1));let _0x32fba2=new webgpu.Box3();return _0x32fba2[_0x183f0c(0x84)](this[_0x183f0c(0xba)],![]),_0x32fba2['isEmpty']()&&(_0x32fba2[_0x183f0c(0x78)]=_0x32fba2[_0x183f0c(0x8c)]=this[_0x183f0c(0x77)]()),_0x32fba2;}get['parentComponent'](){const _0x4d0b6f=_0x3b02b1;var _0x3a366a,_0x2b02d8;if(!this[_0x4d0b6f(0xba)])throw Error(_0x4d0b6f(0xd1));let _0x182466=(_0x2b02d8=(_0x3a366a=this[_0x4d0b6f(0xba)])===null||_0x3a366a===void 0?void 0:_0x3a366a[_0x4d0b6f(0xbe)])===null||_0x2b02d8===void 0?void 0:_0x2b02d8[_0x4d0b6f(0xa2)][_0x4d0b6f(0x91)];if(!_0x182466)return null;if(!(_0x182466 instanceof SceneComponent))return null;if(_0x182466[_0x4d0b6f(0xc7)]!==this[_0x4d0b6f(0xc7)])return null;return _0x182466;}get[_0x3b02b1(0xd9)](){const _0x33bb98=_0x3b02b1;if(!this[_0x33bb98(0xba)])throw Error('threeObject\x20is\x20invalid');let _0x1ff2da=[];for(let _0x1f3ce0=0x0;_0x1f3ce0<this[_0x33bb98(0xba)][_0x33bb98(0xb6)][_0x33bb98(0x8a)];++_0x1f3ce0){if(!this[_0x33bb98(0xba)][_0x33bb98(0xb6)][_0x1f3ce0][_0x33bb98(0xa2)][_0x33bb98(0x91)])continue;this[_0x33bb98(0xba)][_0x33bb98(0xb6)][_0x1f3ce0][_0x33bb98(0xa2)]['LYObject'][_0x33bb98(0xc7)]===this[_0x33bb98(0xc7)]&&_0x1ff2da[_0x33bb98(0xd8)](this[_0x33bb98(0xba)]['children'][_0x1f3ce0]['userData'][_0x33bb98(0x91)]);}return _0x1ff2da;}[_0x3b02b1(0xc3)](_0x1d40bc){const _0x10381c=_0x3b02b1;let _0x137af2=this[_0x10381c(0xd9)];for(let _0x4f4ba7=0x0;_0x4f4ba7<_0x137af2[_0x10381c(0x8a)];++_0x4f4ba7){_0x137af2[_0x4f4ba7]['onAddedToWorld'](_0x1d40bc);}}[_0x3b02b1(0x9f)](){const _0x57b987=_0x3b02b1;this['isHoverEnabled']=![],this[_0x57b987(0x9b)]=![],this[_0x57b987(0x95)](),this[_0x57b987(0xcd)](),this['destroyChildren'](),this[_0x57b987(0xdb)](),this['world']&&this[_0x57b987(0xd3)][_0x57b987(0xa9)][_0x57b987(0xb7)]();}[_0x3b02b1(0xdb)](){const _0x4a2236=_0x3b02b1;if(!this['obj'])return;this[_0x4a2236(0xba)]['parent']&&this[_0x4a2236(0xba)][_0x4a2236(0xbe)][_0x4a2236(0xbd)](this['obj']),super[_0x4a2236(0xdb)]();}[_0x3b02b1(0x8f)](){const _0x1e2ace=_0x3b02b1;if(!this['obj'])throw Error(_0x1e2ace(0xd1));if(this[_0x1e2ace(0xba)][_0x1e2ace(0x80)])return this['obj'][_0x1e2ace(0x90)][_0x1e2ace(0xcf)]();else {const _0x5b43fd=new webgpu.Vector3(),_0x5c9963=new webgpu.Quaternion(),_0x1e83c2=new webgpu.Vector3();return this['obj']['matrix'][_0x1e2ace(0x85)](_0x5b43fd,_0x5c9963,_0x1e83c2),_0x5b43fd;}}[_0x3b02b1(0x96)](..._0x4fb5ea){const _0x2a86a1=_0x3b02b1;var _0x1ec86c;if(!this[_0x2a86a1(0xba)])throw Error(_0x2a86a1(0xd1));let _0x19c202=null;if(_0x4fb5ea['length']===0x1&&((_0x1ec86c=_0x4fb5ea[0x0])===null||_0x1ec86c===void 0?void 0:_0x1ec86c['isVector3'])){const _0x1a7027=_0x4fb5ea[0x0];_0x19c202=new webgpu.Vector3(_0x1a7027['x'],_0x1a7027['y'],_0x1a7027['z']);}else _0x4fb5ea[_0x2a86a1(0x8a)]===0x3&&typeof _0x4fb5ea[0x0]==='number'&&typeof _0x4fb5ea[0x1]==='number'&&typeof _0x4fb5ea[0x2]===_0x2a86a1(0x7e)&&(_0x19c202=new webgpu.Vector3(_0x4fb5ea[0x0],_0x4fb5ea[0x1],_0x4fb5ea[0x2]));if(!_0x19c202)return;this[_0x2a86a1(0xba)][_0x2a86a1(0x90)][_0x2a86a1(0x7f)](_0x19c202),!this['obj']['matrixAutoUpdate']&&this['obj']['matrix'][_0x2a86a1(0x96)](_0x19c202['x'],_0x19c202['y'],_0x19c202['z']),this['obj'][_0x2a86a1(0x74)](),this[_0x2a86a1(0xba)]['updateMatrixWorld'](!![]),this[_0x2a86a1(0xd3)]&&this[_0x2a86a1(0xd3)][_0x2a86a1(0xa9)][_0x2a86a1(0xb7)]();}['getRotation'](){const _0x59568a=_0x3b02b1;if(!this[_0x59568a(0xba)])throw Error(_0x59568a(0xd1));if(this['obj'][_0x59568a(0x80)])return this['obj'][_0x59568a(0xdd)][_0x59568a(0xcf)]();else {const _0x2ab27f=new webgpu.Vector3(),_0x39906a=new webgpu.Quaternion(),_0x5bb72b=new webgpu.Vector3();return this[_0x59568a(0xba)]['matrix'][_0x59568a(0x85)](_0x2ab27f,_0x39906a,_0x5bb72b),new webgpu.Euler()[_0x59568a(0xd6)](_0x39906a);}}['setRotation'](..._0x2cf436){const _0x1abd0c=_0x3b02b1;var _0x39d6d3;if(!this[_0x1abd0c(0xba)])throw Error('threeObject\x20is\x20invalid');let _0x35a658=null;if((_0x39d6d3=_0x2cf436[0x0])===null||_0x39d6d3===void 0?void 0:_0x39d6d3['isEuler']){const _0xbbd0b=_0x2cf436[0x0];_0x35a658=new webgpu.Euler(_0xbbd0b['x'],_0xbbd0b['y'],_0xbbd0b['z'],_0xbbd0b['order']);}else typeof _0x2cf436[0x0]===_0x1abd0c(0x7e)&&typeof _0x2cf436[0x1]===_0x1abd0c(0x7e)&&typeof _0x2cf436[0x2]===_0x1abd0c(0x7e)&&(_0x35a658=new webgpu.Euler(_0x2cf436[0x0],_0x2cf436[0x1],_0x2cf436[0x2]));if(!_0x35a658)return;this[_0x1abd0c(0xba)][_0x1abd0c(0xdd)]['copy'](_0x35a658),this[_0x1abd0c(0xba)][_0x1abd0c(0x74)](),this[_0x1abd0c(0xba)][_0x1abd0c(0x9c)](!![]),this['world']&&this[_0x1abd0c(0xd3)][_0x1abd0c(0xa9)][_0x1abd0c(0xb7)]();}[_0x3b02b1(0xa4)](){const _0x441daf=_0x3b02b1;if(!this[_0x441daf(0xba)])throw Error(_0x441daf(0xd1));if(this[_0x441daf(0xba)]['matrixAutoUpdate'])return this['obj']['quaternion'][_0x441daf(0xcf)]();else {const _0x471ec8=new webgpu.Vector3(),_0x2b876e=new webgpu.Quaternion(),_0xe63604=new webgpu.Vector3();return this[_0x441daf(0xba)][_0x441daf(0x99)][_0x441daf(0x85)](_0x471ec8,_0x2b876e,_0xe63604),_0x2b876e;}}[_0x3b02b1(0x8b)](..._0x49cb28){const _0x5e7054=_0x3b02b1;var _0x28a842;if(!this['obj'])throw Error(_0x5e7054(0xd1));let _0x1ad9a3=null;if((_0x28a842=_0x49cb28[0x0])===null||_0x28a842===void 0?void 0:_0x28a842[_0x5e7054(0xd7)]){const _0x369014=_0x49cb28[0x0];_0x1ad9a3=new webgpu.Quaternion(_0x369014['x'],_0x369014['y'],_0x369014['z'],_0x369014['w']);}else typeof _0x49cb28[0x0]==='number'&&typeof _0x49cb28[0x1]===_0x5e7054(0x7e)&&typeof _0x49cb28[0x2]===_0x5e7054(0x7e)&&typeof _0x49cb28[0x3]===_0x5e7054(0x7e)&&(_0x1ad9a3=new webgpu.Quaternion(_0x49cb28[0x0],_0x49cb28[0x1],_0x49cb28[0x2],_0x49cb28[0x3]));if(!_0x1ad9a3){console[_0x5e7054(0xcc)](_0x5e7054(0xa6),_0x49cb28);return;}this['obj'][_0x5e7054(0xa1)][_0x5e7054(0x7f)](_0x1ad9a3);if(!this[_0x5e7054(0xba)][_0x5e7054(0x80)]){const _0x1373f3=new webgpu.Vector3(),_0x52a905=new webgpu.Quaternion(),_0x48c3dd=new webgpu.Vector3();this[_0x5e7054(0xba)][_0x5e7054(0x99)][_0x5e7054(0x85)](_0x1373f3,_0x52a905,_0x48c3dd),this[_0x5e7054(0xba)][_0x5e7054(0x99)][_0x5e7054(0x9e)](_0x1373f3,_0x1ad9a3,_0x48c3dd);}this[_0x5e7054(0xd3)]&&this['world'][_0x5e7054(0xa9)][_0x5e7054(0xb7)](),this[_0x5e7054(0xba)]['updateMatrix'](),this[_0x5e7054(0xba)][_0x5e7054(0x9c)](!![]);}[_0x3b02b1(0xc0)](){const _0x4d181e=_0x3b02b1;if(!this[_0x4d181e(0xba)])throw Error('threeObject\x20is\x20invalid');if(this['obj'][_0x4d181e(0x80)])return this['obj'][_0x4d181e(0xd0)][_0x4d181e(0xcf)]();else {const _0x56b51f=new webgpu.Vector3(),_0x41efce=new webgpu.Quaternion(),_0x2f1d5b=new webgpu.Vector3();return this['obj'][_0x4d181e(0x99)][_0x4d181e(0x85)](_0x56b51f,_0x41efce,_0x2f1d5b),_0x2f1d5b;}}[_0x3b02b1(0xcb)](..._0x3660f7){const _0x171af9=_0x3b02b1;var _0x3d13b6;if(!this[_0x171af9(0xba)])throw Error(_0x171af9(0xd1));let _0x3cfd85=null;if((_0x3d13b6=_0x3660f7[0x0])===null||_0x3d13b6===void 0?void 0:_0x3d13b6[_0x171af9(0xb4)]){const _0x16d033=_0x3660f7[0x0];_0x3cfd85=new webgpu.Vector3(_0x16d033['x'],_0x16d033['y'],_0x16d033['z']);}else typeof _0x3660f7[0x0]===_0x171af9(0x7e)&&typeof _0x3660f7[0x1]===_0x171af9(0x7e)&&typeof _0x3660f7[0x2]===_0x171af9(0x7e)&&(_0x3cfd85=new webgpu.Vector3(_0x3660f7[0x0],_0x3660f7[0x1],_0x3660f7[0x2]));if(!_0x3cfd85)return;this[_0x171af9(0xba)][_0x171af9(0xd0)][_0x171af9(0x7f)](_0x3cfd85),this[_0x171af9(0xba)][_0x171af9(0x74)](),this[_0x171af9(0xba)][_0x171af9(0x9c)](!![]),this[_0x171af9(0xd3)]&&this[_0x171af9(0xd3)][_0x171af9(0xa9)][_0x171af9(0xb7)]();}[_0x3b02b1(0x97)](){const _0x3c542e=_0x3b02b1;if(!this[_0x3c542e(0xba)])throw Error(_0x3c542e(0xd1));return this[_0x3c542e(0xba)][_0x3c542e(0x99)];}[_0x3b02b1(0x93)](_0x5d7d0e){const _0x3bad89=_0x3b02b1;var _0x28c915;if(!this['obj'])throw Error(_0x3bad89(0xd1));_0x5d7d0e['decompose'](this[_0x3bad89(0xba)][_0x3bad89(0x90)],this['obj']['quaternion'],this[_0x3bad89(0xba)]['scale']),this[_0x3bad89(0xba)][_0x3bad89(0x74)](),this[_0x3bad89(0xba)][_0x3bad89(0x9c)](!![]),(_0x28c915=this[_0x3bad89(0xd3)])===null||_0x28c915===void 0?void 0:_0x28c915[_0x3bad89(0xa9)][_0x3bad89(0xb7)]();}[_0x3b02b1(0x77)](){const _0x36efeb=_0x3b02b1;if(!this[_0x36efeb(0xba)])throw Error('threeObject\x20is\x20invalid');let _0x56565f=new webgpu.Vector3();return this[_0x36efeb(0xba)][_0x36efeb(0x77)](_0x56565f),_0x56565f;}[_0x3b02b1(0xc4)](){const _0x927fa9=_0x3b02b1;if(!this[_0x927fa9(0xba)])throw Error('threeObject\x20is\x20invalid');let _0x1ec341=new webgpu.Quaternion();return this[_0x927fa9(0xba)][_0x927fa9(0x87)](_0x1ec341),new webgpu.Euler()[_0x927fa9(0xd6)](_0x1ec341);}['getWorldQuaternion'](){const _0x1da24f=_0x3b02b1;if(!this[_0x1da24f(0xba)])throw Error(_0x1da24f(0xd1));let _0x1852bb=new webgpu.Quaternion();return this[_0x1da24f(0xba)][_0x1da24f(0x87)](_0x1852bb),_0x1852bb;}[_0x3b02b1(0x9d)](){const _0x2a5546=_0x3b02b1;if(!this[_0x2a5546(0xba)])throw Error(_0x2a5546(0xd1));let _0x5ec334=new webgpu.Vector3();return this[_0x2a5546(0xba)]['getWorldScale'](_0x5ec334),_0x5ec334;}[_0x3b02b1(0xca)](){const _0x4bb58e=_0x3b02b1;if(!this[_0x4bb58e(0xba)])throw Error(_0x4bb58e(0xd1));return this[_0x4bb58e(0xba)][_0x4bb58e(0x9c)](!![]),this['obj']['matrixWorld'][_0x4bb58e(0xcf)]();}[_0x3b02b1(0xce)](_0x111809){const _0x20a238=_0x3b02b1;if(!this[_0x20a238(0xba)])throw Error(_0x20a238(0xd1));if(this[_0x20a238(0xba)][_0x20a238(0xbe)]){this[_0x20a238(0xba)][_0x20a238(0xbe)][_0x20a238(0x9c)](!![]);const _0x321635=this[_0x20a238(0xba)][_0x20a238(0xbe)][_0x20a238(0xde)][_0x20a238(0xcf)]()[_0x20a238(0xab)](),_0x23d8e5=new webgpu.Matrix4()[_0x20a238(0xbc)](_0x321635,_0x111809);this['setMatrix'](_0x23d8e5);}else this[_0x20a238(0x93)](_0x111809);this['obj'][_0x20a238(0x9c)](!![]),this['world']&&this[_0x20a238(0xd3)][_0x20a238(0xa9)][_0x20a238(0xb7)]();}[_0x3b02b1(0x9a)](){const _0xc66de2=_0x3b02b1;if(!this[_0xc66de2(0xba)])throw Error(_0xc66de2(0xd1));let _0x36462a=new webgpu.Vector3();return this['obj'][_0xc66de2(0xa8)](_0x36462a),_0x36462a;}[_0x3b02b1(0x7b)](){const _0x3b91bc=_0x3b02b1;if(!this[_0x3b91bc(0xba)])throw Error(_0x3b91bc(0xd1));let _0x46834c=new webgpu.Vector3(0x0,0x1,0x0);return _0x46834c['applyQuaternion'](this[_0x3b91bc(0x87)]()),_0x46834c;}['getWorldRightDirection'](){const _0x4019cc=_0x3b02b1;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');let _0xc27b80=new webgpu.Vector3(0x1,0x0,0x0);return _0xc27b80[_0x4019cc(0xa7)](this[_0x4019cc(0x87)]()),_0xc27b80;}[_0x3b02b1(0x86)](_0x5bdde4){const _0x4b3be1=_0x3b02b1;if(!this['obj'])throw Error(_0x4b3be1(0xd1));return this['obj'][_0x4b3be1(0x86)](_0x5bdde4);}['localToWorld'](_0xe0e1cf){const _0x5cd6dd=_0x3b02b1;if(!this[_0x5cd6dd(0xba)])throw Error(_0x5cd6dd(0xd1));return this[_0x5cd6dd(0xba)]['localToWorld'](_0xe0e1cf);}['attachComponent'](_0x469f05){const _0x3ed550=_0x3b02b1;if(!this[_0x3ed550(0xba)])throw Error(_0x3ed550(0xd1));if(!_0x469f05[_0x3ed550(0xda)])throw Error(_0x3ed550(0xa3));this[_0x3ed550(0xba)][_0x3ed550(0xdf)](_0x469f05[_0x3ed550(0xda)]),this[_0x3ed550(0xd3)]&&_0x469f05['onAddedToWorld'](this[_0x3ed550(0xd3)]);}['detachComponent'](_0x3f7c8e){const _0x280225=_0x3b02b1;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');if(!_0x3f7c8e[_0x280225(0xda)])throw Error('target\x20threeObject\x20is\x20invalid');this[_0x280225(0xba)][_0x280225(0xbd)](_0x3f7c8e['threeObject']);}[_0x3b02b1(0x83)](_0x2c1119,_0x110f16=exports.AttachmentRules[_0x3b02b1(0xd4)]){const _0x561465=_0x3b02b1;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');if(!_0x2c1119['threeObject'])throw Error('newComponent\x20threeObject\x20is\x20invalid');_0x2c1119[_0x561465(0xc7)]=this['parentActor'];if(_0x110f16===exports.AttachmentRules['KeepWorld']){let _0x40a4fc=_0x2c1119['getWorldMatrix']();this[_0x561465(0xba)][_0x561465(0xdf)](_0x2c1119[_0x561465(0xda)]),_0x2c1119['setWorldMatrix'](_0x40a4fc);}else this[_0x561465(0xba)][_0x561465(0xdf)](_0x2c1119[_0x561465(0xda)]);this[_0x561465(0xd3)]&&_0x2c1119['onAddedToWorld'](this['world']),this['obj'][_0x561465(0x74)](),this[_0x561465(0xba)][_0x561465(0x9c)](!![]);}[_0x3b02b1(0xd2)](_0x4ac713){const _0x46f278=_0x3b02b1;if(!this[_0x46f278(0xba)])throw Error(_0x46f278(0xd1));if(!_0x4ac713[_0x46f278(0xda)])throw Error('targetComponent\x20threeObject\x20is\x20invalid');this[_0x46f278(0xba)][_0x46f278(0xbd)](_0x4ac713[_0x46f278(0xda)]);}[_0x3b02b1(0xcd)](){const _0x52f8da=_0x3b02b1;this[_0x52f8da(0xd5)]&&this[_0x52f8da(0xd5)][_0x52f8da(0xd2)](this);}[_0x3b02b1(0x95)](){const _0x177861=_0x3b02b1;this[_0x177861(0xc7)]&&(this[_0x177861(0xc7)]=null);}[_0x3b02b1(0xae)](){const _0x498426=_0x3b02b1;var _0x26bda6;if(!this[_0x498426(0xba)])return;let _0x379fdc=[];for(let _0x26bb65=0x0;_0x26bb65<this[_0x498426(0xba)][_0x498426(0xb6)][_0x498426(0x8a)];++_0x26bb65){let _0x1af354=(_0x26bda6=this['obj'][_0x498426(0xb6)][_0x26bb65][_0x498426(0xa2)])===null||_0x26bda6===void 0?void 0:_0x26bda6[_0x498426(0x91)];_0x1af354&&_0x379fdc[_0x498426(0xd8)](_0x1af354);}_0x379fdc[_0x498426(0xb1)](_0x2fcab3=>{const _0xf7333b=_0x498426;_0x2fcab3[_0xf7333b(0x9f)]();}),_0x379fdc=[];}set['isHoverEnabled'](_0xe05e34){const _0x4d0a97=_0x3b02b1;this[_0x4d0a97(0x7d)]=_0xe05e34;let _0x47bb9e=this[_0x4d0a97(0xd9)];for(let _0x15d096=0x0;_0x15d096<_0x47bb9e['length'];++_0x15d096){_0x47bb9e[_0x15d096]['isHoverEnabled']=this[_0x4d0a97(0x7d)];}}get['isHoverEnabled'](){const _0x245ddb=_0x3b02b1;return this[_0x245ddb(0x7d)];}set[_0x3b02b1(0x9b)](_0x3095fe){const _0x1437c3=_0x3b02b1;this[_0x1437c3(0xb3)]=_0x3095fe;let _0x2893ee=this['childrenComponents'];for(let _0x15f792=0x0;_0x15f792<_0x2893ee[_0x1437c3(0x8a)];++_0x15f792){_0x2893ee[_0x15f792][_0x1437c3(0x9b)]=this[_0x1437c3(0xb3)];}}get[_0x3b02b1(0x9b)](){const _0x26c526=_0x3b02b1;return this[_0x26c526(0xb3)];}['onHorveringBegin'](){const _0x170958=_0x3b02b1;this['_onHoverBeginDelegate'][_0x170958(0xb5)]();}['onHorveringEnd'](){const _0x1899ae=_0x3b02b1;this[_0x1899ae(0x94)][_0x1899ae(0xb5)]();}[_0x3b02b1(0x8d)](){const _0x4fbdd4=_0x3b02b1;this[_0x4fbdd4(0xbf)][_0x4fbdd4(0xb5)]();}['onDoubleClicked'](){const _0x1954d5=_0x3b02b1;this[_0x1954d5(0x79)][_0x1954d5(0xb5)]();}}
|
|
40
|
+
const _0x7c4208=_0x5c8a;(function(_0x2c7541,_0x163880){const _0x4baddc=_0x5c8a,_0x5ab357=_0x2c7541();while(!![]){try{const _0x82af60=parseInt(_0x4baddc(0x1dc))/0x1*(-parseInt(_0x4baddc(0x200))/0x2)+parseInt(_0x4baddc(0x1ea))/0x3*(-parseInt(_0x4baddc(0x1f5))/0x4)+parseInt(_0x4baddc(0x1ef))/0x5+-parseInt(_0x4baddc(0x1e2))/0x6+-parseInt(_0x4baddc(0x1f2))/0x7*(parseInt(_0x4baddc(0x1ec))/0x8)+-parseInt(_0x4baddc(0x1b8))/0x9+parseInt(_0x4baddc(0x1c2))/0xa;if(_0x82af60===_0x163880)break;else _0x5ab357['push'](_0x5ab357['shift']());}catch(_0x503f04){_0x5ab357['push'](_0x5ab357['shift']());}}}(_0x1ee6,0xb00f4));function _0x5c8a(_0x14e1ce,_0x2e375b){_0x14e1ce=_0x14e1ce-0x1b3;const _0x1ee62d=_0x1ee6();let _0x5c8aee=_0x1ee62d[_0x14e1ce];return _0x5c8aee;}function _0x1ee6(){const _0x280652=['2718705qCKmFH','updateMatrixWorld','getBounds','830018liJrLV','compose','_onClickDelegate','33336IEYmPV','threeObject','isEuler','destroyObject','destroy','setRotation','isEmpty','order','getPosition','matrixAutoUpdate','position','842UmtaOL','number','scale','layers','_onHoverBeginDelegate','isVector3','getWorldDirection','getScale','getWorldRightDirection','onClicked','detachFromParentComponent','destroyChildren','localToWorld','newComponent\x20threeObject\x20is\x20invalid','viewport','children','obj','isQuaternion','childrenComponents','parentActor','broadcast','copy','world','multiplyMatrices','getWorldPosition','set','_onDoubleClickDelegate','threeObject\x20is\x20invalid','bCanHover','onDoubleClicked','getWorldUpDirection','forEach','add','applyQuaternion','quaternion','setMatrix','remove','LYObject','onHorveringBegin','parentComponent','onHorveringEnd','setQuaternion','getRotation','decompose','getWorldMatrix','getWorldRotation','setVisible','min','5082642PxfqGe','target\x20threeObject\x20is\x20invalid','_onHoverEndDelegate','_parentActor','matrix','SceneComponent','getWorldQuaternion','setWorldMatrix','removeChildComponent','getMatrix','42919680QnEhmr','parent','onAddedToWorld','KeepRelative','setPosition','setScale','getComponentById','max','onClickDelegate','markRenderStateDirty','uuid','tick','updateMatrix','createDefaultObject','setFromQuaternion','isHoverEnabled','matrixWorld','rotation','getBoundsCenterPositionWS','name','clone','getCenter','userData','visible','push','targetComponent\x20threeObject\x20is\x20invalid','1098gEkzPB','error','getBoundsBottomCenterPositionWS','isClickEnabled','addChildComponent','getQuaternion','8183514tSGlbg','onHoverBeginDelegate','length','app','invert','attachComponent','bCanClick','KeepWorld','279qObayz','detachFromParentActor','64GFkSGp','isVisible','getWorldScale'];_0x1ee6=function(){return _0x280652;};return _0x1ee6();}class SceneComponent extends Component{set[_0x7c4208(0x213)](_0x4e3188){const _0x56dfcb=_0x7c4208;this[_0x56dfcb(0x212)][_0x56dfcb(0x21f)](_0x4acdc4=>{_0x4acdc4['parentActor']=_0x4e3188;}),this[_0x56dfcb(0x1bb)]=_0x4e3188;}get[_0x7c4208(0x213)](){const _0x20bf11=_0x7c4208;return this[_0x20bf11(0x1bb)];}get[_0x7c4208(0x1e3)](){const _0x3cb448=_0x7c4208;return this[_0x3cb448(0x204)];}get['onHoverEndDelegate'](){const _0x4cc1ac=_0x7c4208;return this[_0x4cc1ac(0x1ba)];}get[_0x7c4208(0x1ca)](){const _0x1db65=_0x7c4208;return this[_0x1db65(0x1f4)];}get['onDoubleClickDelegate'](){const _0x4ccf05=_0x7c4208;return this[_0x4ccf05(0x21a)];}get[_0x7c4208(0x216)](){const _0x58151e=_0x7c4208;return this['app'][_0x58151e(0x216)];}constructor(_0x5dfc66,_0x5a8f88){const _0x4a6aa6=_0x7c4208;super(_0x5a8f88),this[_0x4a6aa6(0x21c)]=![],this['bCanClick']=![],this[_0x4a6aa6(0x204)]=new Delegate(),this[_0x4a6aa6(0x1ba)]=new Delegate(),this['_onClickDelegate']=new Delegate(),this[_0x4a6aa6(0x21a)]=new Delegate(),this[_0x4a6aa6(0x1e5)]=_0x5dfc66,this[_0x4a6aa6(0x1d5)]=_0x4a6aa6(0x1bd);}[_0x7c4208(0x1cf)](){return new webgpu.Object3D();}['tick'](_0x3d8ee9){const _0x505cfa=_0x7c4208;super[_0x505cfa(0x1cd)](_0x3d8ee9),this[_0x505cfa(0x212)][_0x505cfa(0x21f)](_0x339252=>{const _0x4d637c=_0x505cfa;_0x339252[_0x4d637c(0x1cd)](_0x3d8ee9);});}get[_0x7c4208(0x1ed)](){const _0x589ed0=_0x7c4208;if(!this[_0x589ed0(0x210)])return ![];return this[_0x589ed0(0x210)][_0x589ed0(0x1d9)];}[_0x7c4208(0x1b6)](_0x5c5b96){const _0x4672a0=_0x7c4208;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');this[_0x4672a0(0x210)][_0x4672a0(0x1d9)]=_0x5c5b96,this[_0x4672a0(0x216)]&&this['world'][_0x4672a0(0x20e)][_0x4672a0(0x1cb)]();}['setLayers'](_0x187995){const _0x8150a1=_0x7c4208;if(!this[_0x8150a1(0x210)])throw Error('threeObject\x20is\x20invalid');this[_0x8150a1(0x210)][_0x8150a1(0x203)][_0x8150a1(0x219)](_0x187995);let _0x40bcef=this[_0x8150a1(0x212)];_0x40bcef[_0x8150a1(0x21f)](_0x3ba0df=>{_0x3ba0df['setLayers'](_0x187995);});}[_0x7c4208(0x1c8)](_0x5d64cb,_0x4d525c=!![]){const _0x5356af=_0x7c4208;if(this[_0x5356af(0x1cc)]===_0x5d64cb)return this;if(_0x4d525c){let _0x2005c7=this['childrenComponents'];for(let _0x2c4d7a=0x0;_0x2c4d7a<_0x2005c7[_0x5356af(0x1e4)];++_0x2c4d7a){let _0x4d4e85=_0x2005c7[_0x2c4d7a][_0x5356af(0x1c8)](_0x5d64cb,_0x4d525c);if(_0x4d4e85)return _0x4d4e85;}}else {let _0x5a1b9e=this[_0x5356af(0x212)];for(let _0x3ff3f5=0x0;_0x3ff3f5<_0x5a1b9e['length'];++_0x3ff3f5){let _0x121acf=_0x5a1b9e[_0x3ff3f5];if(_0x121acf['uuid']===_0x5d64cb)return _0x121acf;}}return null;}[_0x7c4208(0x1d4)](){const _0x57ec15=_0x7c4208;let _0xef4102=new webgpu.Vector3();return this[_0x57ec15(0x1f1)]()[_0x57ec15(0x1d7)](_0xef4102),this[_0x57ec15(0x218)]();}['getBoundsTopCenterPositionWS'](){const _0x3db9c3=_0x7c4208;let _0xcc5805=new webgpu.Vector3(),_0x35ebc2=this[_0x3db9c3(0x1f1)]();return _0x35ebc2[_0x3db9c3(0x1d7)](_0xcc5805),_0xcc5805['y']=_0x35ebc2['max']['y'],_0xcc5805;}[_0x7c4208(0x1de)](){const _0xa8833=_0x7c4208;let _0x1243d7=new webgpu.Vector3(),_0x501228=this[_0xa8833(0x1f1)]();return _0x501228[_0xa8833(0x1d7)](_0x1243d7),_0x1243d7['y']=_0x501228['min']['y'],_0x1243d7;}['getBounds'](){const _0x1cb121=_0x7c4208;if(!this[_0x1cb121(0x210)])throw Error(_0x1cb121(0x21b));let _0x2c9da6=new webgpu.Box3();return _0x2c9da6['setFromObject'](this[_0x1cb121(0x210)],![]),_0x2c9da6[_0x1cb121(0x1fb)]()&&(_0x2c9da6[_0x1cb121(0x1b7)]=_0x2c9da6[_0x1cb121(0x1c9)]=this[_0x1cb121(0x218)]()),_0x2c9da6;}get['parentComponent'](){const _0x4b0524=_0x7c4208;var _0x530305,_0x31de2e;if(!this[_0x4b0524(0x210)])throw Error(_0x4b0524(0x21b));let _0x284547=(_0x31de2e=(_0x530305=this[_0x4b0524(0x210)])===null||_0x530305===void 0?void 0:_0x530305['parent'])===null||_0x31de2e===void 0?void 0:_0x31de2e['userData'][_0x4b0524(0x225)];if(!_0x284547)return null;if(!(_0x284547 instanceof SceneComponent))return null;if(_0x284547[_0x4b0524(0x213)]!==this[_0x4b0524(0x213)])return null;return _0x284547;}get[_0x7c4208(0x212)](){const _0x39ec90=_0x7c4208;if(!this['obj'])throw Error(_0x39ec90(0x21b));let _0x41279c=[];for(let _0x25a691=0x0;_0x25a691<this[_0x39ec90(0x210)][_0x39ec90(0x20f)]['length'];++_0x25a691){if(!this['obj'][_0x39ec90(0x20f)][_0x25a691][_0x39ec90(0x1d8)][_0x39ec90(0x225)])continue;this[_0x39ec90(0x210)][_0x39ec90(0x20f)][_0x25a691][_0x39ec90(0x1d8)][_0x39ec90(0x225)][_0x39ec90(0x213)]===this[_0x39ec90(0x213)]&&_0x41279c[_0x39ec90(0x1da)](this[_0x39ec90(0x210)]['children'][_0x25a691][_0x39ec90(0x1d8)][_0x39ec90(0x225)]);}return _0x41279c;}[_0x7c4208(0x1c4)](_0x403b0f){const _0xe1402e=_0x7c4208;let _0x15aec1=this['childrenComponents'];for(let _0x590752=0x0;_0x590752<_0x15aec1[_0xe1402e(0x1e4)];++_0x590752){_0x15aec1[_0x590752][_0xe1402e(0x1c4)](_0x403b0f);}}[_0x7c4208(0x1f9)](){const _0x30ab0f=_0x7c4208;this[_0x30ab0f(0x1d1)]=![],this['isClickEnabled']=![],this[_0x30ab0f(0x1eb)](),this[_0x30ab0f(0x20a)](),this['destroyChildren'](),this[_0x30ab0f(0x1f8)](),this[_0x30ab0f(0x216)]&&this[_0x30ab0f(0x216)][_0x30ab0f(0x20e)][_0x30ab0f(0x1cb)]();}[_0x7c4208(0x1f8)](){const _0x33d6bc=_0x7c4208;if(!this[_0x33d6bc(0x210)])return;this[_0x33d6bc(0x210)][_0x33d6bc(0x1c3)]&&this[_0x33d6bc(0x210)][_0x33d6bc(0x1c3)][_0x33d6bc(0x224)](this[_0x33d6bc(0x210)]),super['destroyObject']();}[_0x7c4208(0x1fd)](){const _0x519ec2=_0x7c4208;if(!this['obj'])throw Error(_0x519ec2(0x21b));if(this[_0x519ec2(0x210)][_0x519ec2(0x1fe)])return this[_0x519ec2(0x210)][_0x519ec2(0x1ff)]['clone']();else {const _0x51efd4=new webgpu.Vector3(),_0x74cc5f=new webgpu.Quaternion(),_0x3274a9=new webgpu.Vector3();return this[_0x519ec2(0x210)][_0x519ec2(0x1bc)]['decompose'](_0x51efd4,_0x74cc5f,_0x3274a9),_0x51efd4;}}['setPosition'](..._0x35cf13){const _0x3a2fb3=_0x7c4208;var _0x59c827;if(!this['obj'])throw Error(_0x3a2fb3(0x21b));let _0x2c9d5c=null;if(_0x35cf13[_0x3a2fb3(0x1e4)]===0x1&&((_0x59c827=_0x35cf13[0x0])===null||_0x59c827===void 0?void 0:_0x59c827[_0x3a2fb3(0x205)])){const _0xf75632=_0x35cf13[0x0];_0x2c9d5c=new webgpu.Vector3(_0xf75632['x'],_0xf75632['y'],_0xf75632['z']);}else _0x35cf13[_0x3a2fb3(0x1e4)]===0x3&&typeof _0x35cf13[0x0]===_0x3a2fb3(0x201)&&typeof _0x35cf13[0x1]===_0x3a2fb3(0x201)&&typeof _0x35cf13[0x2]===_0x3a2fb3(0x201)&&(_0x2c9d5c=new webgpu.Vector3(_0x35cf13[0x0],_0x35cf13[0x1],_0x35cf13[0x2]));if(!_0x2c9d5c)return;this[_0x3a2fb3(0x210)][_0x3a2fb3(0x1ff)][_0x3a2fb3(0x215)](_0x2c9d5c),!this[_0x3a2fb3(0x210)][_0x3a2fb3(0x1fe)]&&this[_0x3a2fb3(0x210)][_0x3a2fb3(0x1bc)][_0x3a2fb3(0x1c6)](_0x2c9d5c['x'],_0x2c9d5c['y'],_0x2c9d5c['z']),this[_0x3a2fb3(0x210)][_0x3a2fb3(0x1ce)](),this[_0x3a2fb3(0x210)][_0x3a2fb3(0x1f0)](!![]),this[_0x3a2fb3(0x216)]&&this['world']['viewport']['markRenderStateDirty']();}[_0x7c4208(0x22a)](){const _0x3fcdbe=_0x7c4208;if(!this[_0x3fcdbe(0x210)])throw Error(_0x3fcdbe(0x21b));if(this[_0x3fcdbe(0x210)]['matrixAutoUpdate'])return this[_0x3fcdbe(0x210)][_0x3fcdbe(0x1d3)][_0x3fcdbe(0x1d6)]();else {const _0x3422d7=new webgpu.Vector3(),_0x177ed8=new webgpu.Quaternion(),_0xca1846=new webgpu.Vector3();return this[_0x3fcdbe(0x210)][_0x3fcdbe(0x1bc)][_0x3fcdbe(0x1b3)](_0x3422d7,_0x177ed8,_0xca1846),new webgpu.Euler()[_0x3fcdbe(0x1d0)](_0x177ed8);}}[_0x7c4208(0x1fa)](..._0x9ea28c){const _0x45dced=_0x7c4208;var _0x2f6e97;if(!this[_0x45dced(0x210)])throw Error(_0x45dced(0x21b));let _0xfd3ddf=null;if((_0x2f6e97=_0x9ea28c[0x0])===null||_0x2f6e97===void 0?void 0:_0x2f6e97[_0x45dced(0x1f7)]){const _0x6f7fdf=_0x9ea28c[0x0];_0xfd3ddf=new webgpu.Euler(_0x6f7fdf['x'],_0x6f7fdf['y'],_0x6f7fdf['z'],_0x6f7fdf[_0x45dced(0x1fc)]);}else typeof _0x9ea28c[0x0]==='number'&&typeof _0x9ea28c[0x1]===_0x45dced(0x201)&&typeof _0x9ea28c[0x2]==='number'&&(_0xfd3ddf=new webgpu.Euler(_0x9ea28c[0x0],_0x9ea28c[0x1],_0x9ea28c[0x2]));if(!_0xfd3ddf)return;this[_0x45dced(0x210)][_0x45dced(0x1d3)]['copy'](_0xfd3ddf),this['obj'][_0x45dced(0x1ce)](),this[_0x45dced(0x210)][_0x45dced(0x1f0)](!![]),this[_0x45dced(0x216)]&&this[_0x45dced(0x216)]['viewport']['markRenderStateDirty']();}[_0x7c4208(0x1e1)](){const _0x5d1caf=_0x7c4208;if(!this[_0x5d1caf(0x210)])throw Error(_0x5d1caf(0x21b));if(this['obj'][_0x5d1caf(0x1fe)])return this[_0x5d1caf(0x210)][_0x5d1caf(0x222)][_0x5d1caf(0x1d6)]();else {const _0x284a70=new webgpu.Vector3(),_0x2f1085=new webgpu.Quaternion(),_0x515bac=new webgpu.Vector3();return this['obj'][_0x5d1caf(0x1bc)][_0x5d1caf(0x1b3)](_0x284a70,_0x2f1085,_0x515bac),_0x2f1085;}}[_0x7c4208(0x229)](..._0x35a83e){const _0x4e84c8=_0x7c4208;var _0x305af0;if(!this['obj'])throw Error(_0x4e84c8(0x21b));let _0x4fe4e6=null;if((_0x305af0=_0x35a83e[0x0])===null||_0x305af0===void 0?void 0:_0x305af0[_0x4e84c8(0x211)]){const _0x45e36f=_0x35a83e[0x0];_0x4fe4e6=new webgpu.Quaternion(_0x45e36f['x'],_0x45e36f['y'],_0x45e36f['z'],_0x45e36f['w']);}else typeof _0x35a83e[0x0]===_0x4e84c8(0x201)&&typeof _0x35a83e[0x1]===_0x4e84c8(0x201)&&typeof _0x35a83e[0x2]==='number'&&typeof _0x35a83e[0x3]===_0x4e84c8(0x201)&&(_0x4fe4e6=new webgpu.Quaternion(_0x35a83e[0x0],_0x35a83e[0x1],_0x35a83e[0x2],_0x35a83e[0x3]));if(!_0x4fe4e6){console[_0x4e84c8(0x1dd)]('setQuaternion\x20failed,param\x20is\x20invalid',_0x35a83e);return;}this[_0x4e84c8(0x210)]['quaternion']['copy'](_0x4fe4e6);if(!this[_0x4e84c8(0x210)][_0x4e84c8(0x1fe)]){const _0x47e607=new webgpu.Vector3(),_0x2ef93d=new webgpu.Quaternion(),_0x2ff869=new webgpu.Vector3();this['obj'][_0x4e84c8(0x1bc)][_0x4e84c8(0x1b3)](_0x47e607,_0x2ef93d,_0x2ff869),this[_0x4e84c8(0x210)][_0x4e84c8(0x1bc)][_0x4e84c8(0x1f3)](_0x47e607,_0x4fe4e6,_0x2ff869);}this[_0x4e84c8(0x216)]&&this['world'][_0x4e84c8(0x20e)][_0x4e84c8(0x1cb)](),this[_0x4e84c8(0x210)][_0x4e84c8(0x1ce)](),this['obj']['updateMatrixWorld'](!![]);}[_0x7c4208(0x207)](){const _0x196ec0=_0x7c4208;if(!this[_0x196ec0(0x210)])throw Error(_0x196ec0(0x21b));if(this[_0x196ec0(0x210)][_0x196ec0(0x1fe)])return this[_0x196ec0(0x210)][_0x196ec0(0x202)][_0x196ec0(0x1d6)]();else {const _0x506a5c=new webgpu.Vector3(),_0x24b1d1=new webgpu.Quaternion(),_0x31882f=new webgpu.Vector3();return this[_0x196ec0(0x210)]['matrix'][_0x196ec0(0x1b3)](_0x506a5c,_0x24b1d1,_0x31882f),_0x31882f;}}[_0x7c4208(0x1c7)](..._0x51cc95){const _0x6bfe70=_0x7c4208;var _0x4d5976;if(!this[_0x6bfe70(0x210)])throw Error(_0x6bfe70(0x21b));let _0x537d20=null;if((_0x4d5976=_0x51cc95[0x0])===null||_0x4d5976===void 0?void 0:_0x4d5976['isVector3']){const _0x10f895=_0x51cc95[0x0];_0x537d20=new webgpu.Vector3(_0x10f895['x'],_0x10f895['y'],_0x10f895['z']);}else typeof _0x51cc95[0x0]===_0x6bfe70(0x201)&&typeof _0x51cc95[0x1]===_0x6bfe70(0x201)&&typeof _0x51cc95[0x2]==='number'&&(_0x537d20=new webgpu.Vector3(_0x51cc95[0x0],_0x51cc95[0x1],_0x51cc95[0x2]));if(!_0x537d20)return;this['obj'][_0x6bfe70(0x202)]['copy'](_0x537d20),this[_0x6bfe70(0x210)]['updateMatrix'](),this['obj'][_0x6bfe70(0x1f0)](!![]),this['world']&&this[_0x6bfe70(0x216)][_0x6bfe70(0x20e)][_0x6bfe70(0x1cb)]();}[_0x7c4208(0x1c1)](){const _0x4a45b6=_0x7c4208;if(!this[_0x4a45b6(0x210)])throw Error(_0x4a45b6(0x21b));return this[_0x4a45b6(0x210)][_0x4a45b6(0x1bc)];}[_0x7c4208(0x223)](_0xf34b42){const _0x29b250=_0x7c4208;var _0x117355;if(!this[_0x29b250(0x210)])throw Error(_0x29b250(0x21b));_0xf34b42[_0x29b250(0x1b3)](this[_0x29b250(0x210)]['position'],this['obj'][_0x29b250(0x222)],this[_0x29b250(0x210)][_0x29b250(0x202)]),this[_0x29b250(0x210)]['updateMatrix'](),this[_0x29b250(0x210)][_0x29b250(0x1f0)](!![]),(_0x117355=this['world'])===null||_0x117355===void 0?void 0:_0x117355[_0x29b250(0x20e)][_0x29b250(0x1cb)]();}[_0x7c4208(0x218)](){const _0x528cbd=_0x7c4208;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');let _0x42e0d0=new webgpu.Vector3();return this[_0x528cbd(0x210)]['getWorldPosition'](_0x42e0d0),_0x42e0d0;}[_0x7c4208(0x1b5)](){const _0x23e0db=_0x7c4208;if(!this[_0x23e0db(0x210)])throw Error(_0x23e0db(0x21b));let _0x24a548=new webgpu.Quaternion();return this['obj'][_0x23e0db(0x1be)](_0x24a548),new webgpu.Euler()[_0x23e0db(0x1d0)](_0x24a548);}['getWorldQuaternion'](){const _0xace443=_0x7c4208;if(!this[_0xace443(0x210)])throw Error(_0xace443(0x21b));let _0x5cba08=new webgpu.Quaternion();return this[_0xace443(0x210)][_0xace443(0x1be)](_0x5cba08),_0x5cba08;}['getWorldScale'](){const _0x315df1=_0x7c4208;if(!this['obj'])throw Error(_0x315df1(0x21b));let _0x593eed=new webgpu.Vector3();return this[_0x315df1(0x210)][_0x315df1(0x1ee)](_0x593eed),_0x593eed;}[_0x7c4208(0x1b4)](){const _0x5a61a3=_0x7c4208;if(!this['obj'])throw Error(_0x5a61a3(0x21b));return this[_0x5a61a3(0x210)][_0x5a61a3(0x1f0)](!![]),this[_0x5a61a3(0x210)][_0x5a61a3(0x1d2)][_0x5a61a3(0x1d6)]();}[_0x7c4208(0x1bf)](_0x1a37d7){const _0xd0aa20=_0x7c4208;if(!this['obj'])throw Error(_0xd0aa20(0x21b));if(this[_0xd0aa20(0x210)][_0xd0aa20(0x1c3)]){this[_0xd0aa20(0x210)][_0xd0aa20(0x1c3)][_0xd0aa20(0x1f0)](!![]);const _0x50527f=this['obj'][_0xd0aa20(0x1c3)]['matrixWorld']['clone']()[_0xd0aa20(0x1e6)](),_0x41b298=new webgpu.Matrix4()[_0xd0aa20(0x217)](_0x50527f,_0x1a37d7);this[_0xd0aa20(0x223)](_0x41b298);}else this[_0xd0aa20(0x223)](_0x1a37d7);this[_0xd0aa20(0x210)][_0xd0aa20(0x1f0)](!![]),this[_0xd0aa20(0x216)]&&this[_0xd0aa20(0x216)][_0xd0aa20(0x20e)]['markRenderStateDirty']();}['getWorldForwardDirection'](){const _0x2a44e7=_0x7c4208;if(!this[_0x2a44e7(0x210)])throw Error('threeObject\x20is\x20invalid');let _0xc9407a=new webgpu.Vector3();return this[_0x2a44e7(0x210)][_0x2a44e7(0x206)](_0xc9407a),_0xc9407a;}[_0x7c4208(0x21e)](){const _0x4ee793=_0x7c4208;if(!this[_0x4ee793(0x210)])throw Error(_0x4ee793(0x21b));let _0x4dd127=new webgpu.Vector3(0x0,0x1,0x0);return _0x4dd127[_0x4ee793(0x221)](this[_0x4ee793(0x1be)]()),_0x4dd127;}[_0x7c4208(0x208)](){const _0x30e62d=_0x7c4208;if(!this[_0x30e62d(0x210)])throw Error(_0x30e62d(0x21b));let _0x5e2015=new webgpu.Vector3(0x1,0x0,0x0);return _0x5e2015[_0x30e62d(0x221)](this[_0x30e62d(0x1be)]()),_0x5e2015;}['worldToLocal'](_0x21d4c8){const _0x4f21a8=_0x7c4208;if(!this[_0x4f21a8(0x210)])throw Error(_0x4f21a8(0x21b));return this[_0x4f21a8(0x210)]['worldToLocal'](_0x21d4c8);}[_0x7c4208(0x20c)](_0x56185e){const _0x4f3e15=_0x7c4208;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');return this[_0x4f3e15(0x210)][_0x4f3e15(0x20c)](_0x56185e);}[_0x7c4208(0x1e7)](_0x2453e1){const _0x142b03=_0x7c4208;if(!this[_0x142b03(0x210)])throw Error(_0x142b03(0x21b));if(!_0x2453e1['threeObject'])throw Error(_0x142b03(0x20d));this[_0x142b03(0x210)][_0x142b03(0x220)](_0x2453e1[_0x142b03(0x1f6)]),this[_0x142b03(0x216)]&&_0x2453e1[_0x142b03(0x1c4)](this[_0x142b03(0x216)]);}['detachComponent'](_0xc080c2){const _0x4f9dac=_0x7c4208;if(!this['obj'])throw Error(_0x4f9dac(0x21b));if(!_0xc080c2[_0x4f9dac(0x1f6)])throw Error(_0x4f9dac(0x1b9));this[_0x4f9dac(0x210)][_0x4f9dac(0x224)](_0xc080c2[_0x4f9dac(0x1f6)]);}[_0x7c4208(0x1e0)](_0x21a2ee,_0x374d36=exports.AttachmentRules[_0x7c4208(0x1c5)]){const _0x1d7d36=_0x7c4208;if(!this[_0x1d7d36(0x210)])throw Error(_0x1d7d36(0x21b));if(!_0x21a2ee['threeObject'])throw Error('newComponent\x20threeObject\x20is\x20invalid');_0x21a2ee[_0x1d7d36(0x213)]=this[_0x1d7d36(0x213)];if(_0x374d36===exports.AttachmentRules[_0x1d7d36(0x1e9)]){let _0x29b0db=_0x21a2ee[_0x1d7d36(0x1b4)]();this[_0x1d7d36(0x210)]['add'](_0x21a2ee[_0x1d7d36(0x1f6)]),_0x21a2ee[_0x1d7d36(0x1bf)](_0x29b0db);}else this[_0x1d7d36(0x210)]['add'](_0x21a2ee[_0x1d7d36(0x1f6)]);this['world']&&_0x21a2ee[_0x1d7d36(0x1c4)](this['world']),this[_0x1d7d36(0x210)][_0x1d7d36(0x1ce)](),this[_0x1d7d36(0x210)][_0x1d7d36(0x1f0)](!![]);}['removeChildComponent'](_0x44a2ac){const _0x3d9530=_0x7c4208;if(!this['obj'])throw Error('threeObject\x20is\x20invalid');if(!_0x44a2ac[_0x3d9530(0x1f6)])throw Error(_0x3d9530(0x1db));this[_0x3d9530(0x210)][_0x3d9530(0x224)](_0x44a2ac[_0x3d9530(0x1f6)]);}['detachFromParentComponent'](){const _0x349684=_0x7c4208;this[_0x349684(0x227)]&&this[_0x349684(0x227)][_0x349684(0x1c0)](this);}['detachFromParentActor'](){const _0x443b43=_0x7c4208;this[_0x443b43(0x213)]&&(this[_0x443b43(0x213)]=null);}[_0x7c4208(0x20b)](){const _0x16ce82=_0x7c4208;var _0x24dfbf;if(!this[_0x16ce82(0x210)])return;let _0xd82dd0=[];for(let _0x3cdaaf=0x0;_0x3cdaaf<this['obj'][_0x16ce82(0x20f)][_0x16ce82(0x1e4)];++_0x3cdaaf){let _0x457779=(_0x24dfbf=this['obj'][_0x16ce82(0x20f)][_0x3cdaaf]['userData'])===null||_0x24dfbf===void 0?void 0:_0x24dfbf[_0x16ce82(0x225)];_0x457779&&_0xd82dd0[_0x16ce82(0x1da)](_0x457779);}_0xd82dd0['forEach'](_0x1c3d74=>{_0x1c3d74['destroy']();}),_0xd82dd0=[];}set[_0x7c4208(0x1d1)](_0x3f502c){const _0x4aee03=_0x7c4208;this[_0x4aee03(0x21c)]=_0x3f502c;let _0x3158b8=this[_0x4aee03(0x212)];for(let _0x7d43ff=0x0;_0x7d43ff<_0x3158b8[_0x4aee03(0x1e4)];++_0x7d43ff){_0x3158b8[_0x7d43ff][_0x4aee03(0x1d1)]=this[_0x4aee03(0x21c)];}}get[_0x7c4208(0x1d1)](){const _0x1e8c29=_0x7c4208;return this[_0x1e8c29(0x21c)];}set[_0x7c4208(0x1df)](_0x473fdf){const _0x3a6ba7=_0x7c4208;this[_0x3a6ba7(0x1e8)]=_0x473fdf;let _0x46c130=this[_0x3a6ba7(0x212)];for(let _0x3b6756=0x0;_0x3b6756<_0x46c130['length'];++_0x3b6756){_0x46c130[_0x3b6756]['isClickEnabled']=this[_0x3a6ba7(0x1e8)];}}get[_0x7c4208(0x1df)](){return this['bCanClick'];}[_0x7c4208(0x226)](){const _0x1bea6b=_0x7c4208;this[_0x1bea6b(0x204)][_0x1bea6b(0x214)]();}[_0x7c4208(0x228)](){const _0x5e910f=_0x7c4208;this[_0x5e910f(0x1ba)]['broadcast']();}[_0x7c4208(0x209)](){const _0xec823d=_0x7c4208;this[_0xec823d(0x1f4)]['broadcast']();}[_0x7c4208(0x21d)](){const _0x28d62a=_0x7c4208;this['_onDoubleClickDelegate'][_0x28d62a(0x214)]();}}
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const _0x250f8d=_0x1885;function _0x1885(_0x98474d,_0x3dd4da){_0x98474d=_0x98474d-0x184;const _0x262280=_0x2622();let _0x18854b=_0x262280[_0x98474d];return _0x18854b;}(function(_0x4c81a5,_0x437e1c){const _0x9a1f7e=_0x1885,_0x32a86b=_0x4c81a5();while(!![]){try{const _0x3478b3=parseInt(_0x9a1f7e(0x193))/0x1*(-parseInt(_0x9a1f7e(0x1ad))/0x2)+-parseInt(_0x9a1f7e(0x184))/0x3*(parseInt(_0x9a1f7e(0x189))/0x4)+parseInt(_0x9a1f7e(0x185))/0x5+-parseInt(_0x9a1f7e(0x18c))/0x6*(parseInt(_0x9a1f7e(0x192))/0x7)+-parseInt(_0x9a1f7e(0x19e))/0x8+-parseInt(_0x9a1f7e(0x197))/0x9+parseInt(_0x9a1f7e(0x1a6))/0xa*(parseInt(_0x9a1f7e(0x1a2))/0xb);if(_0x3478b3===_0x437e1c)break;else _0x32a86b['push'](_0x32a86b['shift']());}catch(_0x6a3198){_0x32a86b['push'](_0x32a86b['shift']());}}}(_0x2622,0x84380));class MeshComponent extends SceneComponent{get[_0x250f8d(0x1a4)](){const _0x427763=_0x250f8d;if(!this['obj'])throw new Error(_0x427763(0x196));return this[_0x427763(0x18f)];}set['threeObject'](_0x43017c){const _0x4dd34d=_0x250f8d;this[_0x4dd34d(0x18f)]=_0x43017c,this['obj']&&(this[_0x4dd34d(0x18f)][_0x4dd34d(0x199)][_0x4dd34d(0x19a)]=this);}get[_0x250f8d(0x1ac)](){if(!this['_geometryPtr'])throw new Error('geometryPtr\x20is\x20null');return this['_geometryPtr']['getValue']();}set[_0x250f8d(0x1ac)](_0xd583ed){const _0x41cfea=_0x250f8d;let _0x241ed5=this[_0x41cfea(0x18a)][_0x41cfea(0x18d)][_0x41cfea(0x1aa)](_0xd583ed);this['geometryPtr']=_0x241ed5;}get[_0x250f8d(0x191)](){const _0xe4ef09=_0x250f8d;if(!this[_0xe4ef09(0x198)])throw new Error(_0xe4ef09(0x19d));return this[_0xe4ef09(0x198)];}set[_0x250f8d(0x191)](_0x676d6d){const _0xad4daa=_0x250f8d;this[_0xad4daa(0x198)]&&(this[_0xad4daa(0x198)][_0xad4daa(0x1a0)](),this[_0xad4daa(0x198)]=null);this[_0xad4daa(0x198)]=_0x676d6d;let _0x42f34d=_0x676d6d[_0xad4daa(0x19c)]();this[_0xad4daa(0x1a4)]&&_0x42f34d&&(this[_0xad4daa(0x1a4)]['geometry']=_0x42f34d);}get[_0x250f8d(0x1a7)](){const _0x22cd55=_0x250f8d;let _0x28266f=[];return this[_0x22cd55(0x19b)][_0x22cd55(0x186)](_0x24a07e=>{const _0x1f2e12=_0x22cd55;let _0x56831a=_0x24a07e[_0x1f2e12(0x19c)]();if(_0x56831a)_0x28266f[_0x1f2e12(0x187)](_0x56831a);}),_0x28266f['length']>0x1?_0x28266f:_0x28266f[0x0];}get[_0x250f8d(0x188)](){const _0x430f54=_0x250f8d;return this[_0x430f54(0x188)];}set[_0x250f8d(0x1a7)](_0x2a764c){const _0x14368b=_0x250f8d;let _0x1f6883=Array[_0x14368b(0x195)](_0x2a764c)?_0x2a764c:[_0x2a764c],_0x4995e4=[];_0x1f6883['forEach'](_0x2d31b4=>{const _0xed23a9=_0x14368b;let _0x332755=this[_0xed23a9(0x18a)][_0xed23a9(0x18d)]['addMaterialAsset'](_0x2d31b4);if(_0x332755)_0x4995e4['push'](_0x332755);}),this[_0x14368b(0x188)]=_0x4995e4;}set[_0x250f8d(0x188)](_0x22aa56){const _0x415fa1=_0x250f8d;this[_0x415fa1(0x19b)]&&(this[_0x415fa1(0x19b)]['forEach'](_0x4e168f=>{const _0x460a72=_0x415fa1;_0x4e168f[_0x460a72(0x1a0)]();}),this['_materialPtr']=[]);let _0x19dacf=Array['isArray'](_0x22aa56)?_0x22aa56:[_0x22aa56],_0x54c897=[];_0x19dacf['forEach'](_0x5f0653=>{const _0x26a4e6=_0x415fa1;let _0xd1bbb0=_0x5f0653[_0x26a4e6(0x19c)]();if(_0xd1bbb0)_0x54c897['push'](_0xd1bbb0);_0x5f0653[_0x26a4e6(0x18b)]();});if(this[_0x415fa1(0x1a4)]){if(_0x54c897['length']>0x0)this[_0x415fa1(0x1a4)]['material']=Array[_0x415fa1(0x195)](_0x22aa56)?_0x54c897[0x0]:_0x54c897;}this['_materialPtr']=_0x19dacf;}constructor(_0x378aa0,_0x5d2362,_0x1c6cce,_0x1a0233){const _0x514890=_0x250f8d;let _0x5f1270=[],_0xb29625=Array['isArray'](_0x1c6cce)?_0x1c6cce:[_0x1c6cce];_0xb29625[_0x514890(0x186)](_0x586d62=>{const _0x27d073=_0x514890;let _0x40a774=_0x378aa0['assetManager'][_0x27d073(0x1a9)](_0x586d62);if(_0x40a774)_0x5f1270[_0x27d073(0x187)](_0x40a774);}),super(_0x378aa0,_0x1a0233),this[_0x514890(0x198)]=_0x378aa0[_0x514890(0x18d)]['addGeometryAsset'](_0x5d2362),this[_0x514890(0x19b)]=_0x5f1270,_0x5f1270['forEach'](_0x1b7671=>{_0x1b7671['addRef']();}),this[_0x514890(0x1a4)][_0x514890(0x1a7)]=_0x1c6cce,this['threeObject']['geometry']=_0x5d2362,this[_0x514890(0x1a8)]=!![],this[_0x514890(0x1a5)]=!![];}[_0x250f8d(0x19f)](){return new webgpu.Mesh();}set[_0x250f8d(0x1a8)](_0x4ec85c){const _0x1fb53a=_0x250f8d;if(this['threeObject'])this['threeObject'][_0x1fb53a(0x1a8)]=_0x4ec85c;}get['castShadow'](){const _0x31de0f=_0x250f8d;return this[_0x31de0f(0x1a4)]?this[_0x31de0f(0x1a4)][_0x31de0f(0x1a8)]:![];}set['receiveShadow'](_0x289e9f){const _0x59cff7=_0x250f8d;if(!this[_0x59cff7(0x1a4)])return;this[_0x59cff7(0x1a4)][_0x59cff7(0x1a5)]=_0x289e9f;}get['receiveShadow'](){const _0x15e95b=_0x250f8d;return this['threeObject']?this[_0x15e95b(0x1a4)][_0x15e95b(0x1a5)]:![];}[_0x250f8d(0x190)](){let _0x3d580e=new webgpu.Vector3();return this['getBounds']()['getCenter'](_0x3d580e),_0x3d580e;}['getBoundsTopCenterPosition'](){const _0x16f112=_0x250f8d;let _0x22d660=new webgpu.Vector3(),_0x303a32=this['getBounds']();return _0x303a32[_0x16f112(0x18e)](_0x22d660),_0x22d660['y']=_0x303a32['max']['y'],_0x22d660;}['getBoundsBottomCenterPosition'](){const _0x3ca49d=_0x250f8d;let _0x208104=new webgpu.Vector3(),_0x1f9d09=this[_0x3ca49d(0x1ab)]();return _0x1f9d09[_0x3ca49d(0x18e)](_0x208104),_0x208104['y']=_0x1f9d09[_0x3ca49d(0x1a3)]['y'],_0x208104;}[_0x250f8d(0x1a1)](){const _0x1b7829=_0x250f8d;var _0x5994be;this[_0x1b7829(0x1a4)]&&this[_0x1b7829(0x1a4)][_0x1b7829(0x194)]();(_0x5994be=this[_0x1b7829(0x198)])===null||_0x5994be===void 0?void 0:_0x5994be[_0x1b7829(0x1a0)]();let _0x5aea8c=Array[_0x1b7829(0x195)](this[_0x1b7829(0x19b)])?this['_materialPtr']:[this['_materialPtr']];_0x5aea8c[_0x1b7829(0x186)](_0x14ae05=>{_0x14ae05['release']();}),super[_0x1b7829(0x1a1)]();}}function _0x2622(){const _0x2c2ebb=['geometry','460058OHPYYq','189gWnlVR','533200yiUYwR','forEach','push','materialPtr','3504ZhfDzh','app','addRef','169458ZkncVD','assetManager','getCenter','obj','getBoundsCenterPosition','geometryPtr','70SwsksT','3LxTubs','removeFromParent','isArray','threeObject\x20is\x20null','6853914TjQLUI','_geometryPtr','userData','LYObject','_materialPtr','getValue','geometryPtr\x20is\x20null','7847240SrlKlq','createDefaultObject','release','destroyObject','76978ZUVzLp','min','threeObject','receiveShadow','4580uToNtp','material','castShadow','addMaterialAsset','addGeometryAsset','getBounds'];_0x2622=function(){return _0x2c2ebb;};return _0x2622();}
|
|
43
43
|
|
|
44
|
-
const
|
|
44
|
+
function _0x2773(){const _0x244b55=['removeFromParent','_geometryPtr','18PVwUxP','52sIvfUH','336500CzbAon','assetManager','addMaterialAsset','getMatrixAt','destroyObject','instanceMatrix','40520CRXlUV','receiveShadow','80hHKasn','min','length','isArray','398088MNBAzs','push','forEach','LYObject','release','needsUpdate','2310296WhfGeP','geometry','InstanceMeshComponent:\x20threeObject\x20is\x20null','21825pTdVPs','addGeometryAsset','8105ozIFSN','247gANyKS','7noibFk','addRef','432246kbtAuc','dispose','castShadow','_materialPtr','material','threeObject','getValue','userData','649bAwZHI','updateMatrices','count','obj'];_0x2773=function(){return _0x244b55;};return _0x2773();}const _0x1ae499=_0x481a;(function(_0x526fe8,_0x1d43d4){const _0x921d0d=_0x481a,_0x5f1a8f=_0x526fe8();while(!![]){try{const _0x17b98c=-parseInt(_0x921d0d(0x120))/0x1+parseInt(_0x921d0d(0x128))/0x2*(parseInt(_0x921d0d(0x10a))/0x3)+parseInt(_0x921d0d(0x11f))/0x4*(parseInt(_0x921d0d(0x10c))/0x5)+-parseInt(_0x921d0d(0x110))/0x6*(-parseInt(_0x921d0d(0x10e))/0x7)+-parseInt(_0x921d0d(0x107))/0x8*(parseInt(_0x921d0d(0x11e))/0x9)+parseInt(_0x921d0d(0x126))/0xa*(parseInt(_0x921d0d(0x118))/0xb)+parseInt(_0x921d0d(0x12c))/0xc*(parseInt(_0x921d0d(0x10d))/0xd);if(_0x17b98c===_0x1d43d4)break;else _0x5f1a8f['push'](_0x5f1a8f['shift']());}catch(_0x453f05){_0x5f1a8f['push'](_0x5f1a8f['shift']());}}}(_0x2773,0x52dd6));function _0x481a(_0x42c339,_0xfcf135){_0x42c339=_0x42c339-0x105;const _0x27735b=_0x2773();let _0x481a0a=_0x27735b[_0x42c339];return _0x481a0a;}class InstanceMeshComponent extends SceneComponent{get[_0x1ae499(0x115)](){const _0x2fe9dd=_0x1ae499;if(!this[_0x2fe9dd(0x11b)])throw new Error(_0x2fe9dd(0x109));return this['obj'];}set[_0x1ae499(0x115)](_0x22e386){const _0x46eb3f=_0x1ae499;this[_0x46eb3f(0x11b)]=_0x22e386,this['obj']&&(this['obj'][_0x46eb3f(0x117)][_0x46eb3f(0x12f)]=this);}get[_0x1ae499(0x108)](){const _0x482d58=_0x1ae499;var _0xb6309f,_0x1ee421;return (_0x1ee421=(_0xb6309f=this[_0x482d58(0x11d)])===null||_0xb6309f===void 0?void 0:_0xb6309f[_0x482d58(0x116)]())!==null&&_0x1ee421!==void 0?_0x1ee421:null;}get[_0x1ae499(0x114)](){const _0x53ac09=_0x1ae499,_0x7b7b88=[];return this[_0x53ac09(0x113)][_0x53ac09(0x12e)](_0x4f90db=>{const _0x155b5a=_0x53ac09,_0x2725b7=_0x4f90db[_0x155b5a(0x116)]();if(_0x2725b7)_0x7b7b88[_0x155b5a(0x12d)](_0x2725b7);}),_0x7b7b88['length']>0x1?_0x7b7b88:_0x7b7b88[0x0];}get[_0x1ae499(0x11a)](){const _0xd9620a=_0x1ae499;return this['threeObject'][_0xd9620a(0x11a)];}set['count'](_0x29ee83){this['threeObject']['count']=_0x29ee83;}set[_0x1ae499(0x112)](_0x47c77f){const _0x31d9cf=_0x1ae499;if(this[_0x31d9cf(0x115)])this[_0x31d9cf(0x115)][_0x31d9cf(0x112)]=_0x47c77f;}get[_0x1ae499(0x112)](){const _0x209636=_0x1ae499;return this[_0x209636(0x115)]?this[_0x209636(0x115)][_0x209636(0x112)]:![];}set[_0x1ae499(0x127)](_0x2194df){const _0x484210=_0x1ae499;if(!this[_0x484210(0x115)])return;this[_0x484210(0x115)]['receiveShadow']=_0x2194df;}get[_0x1ae499(0x127)](){const _0x31aeab=_0x1ae499;return this[_0x31aeab(0x115)]?this[_0x31aeab(0x115)][_0x31aeab(0x127)]:![];}constructor(_0xf8590c,_0x123313,_0x48f211){const _0x52b17d=_0x1ae499;super(_0xf8590c,_0x48f211),this[_0x52b17d(0x11d)]=null,this[_0x52b17d(0x113)]=[];_0x123313[_0x52b17d(0x108)]&&(this[_0x52b17d(0x11d)]=_0xf8590c[_0x52b17d(0x121)][_0x52b17d(0x10b)](_0x123313[_0x52b17d(0x108)]));const _0x468bfa=Array[_0x52b17d(0x12b)](_0x123313['material'])?_0x123313['material']:[_0x123313[_0x52b17d(0x114)]];_0x468bfa[_0x52b17d(0x12e)](_0x36d72b=>{const _0xcfc808=_0x52b17d,_0x170aa5=_0xf8590c[_0xcfc808(0x121)][_0xcfc808(0x122)](_0x36d72b);_0x170aa5&&(_0x170aa5[_0xcfc808(0x10f)](),this['_materialPtr']['push'](_0x170aa5));}),this[_0x52b17d(0x115)]=_0x123313,this[_0x52b17d(0x112)]=!![],this['receiveShadow']=!![];}['createDefaultObject'](){return new webgpu.InstancedMesh(undefined,undefined,0x0);}['getMatrixAt'](_0x4e9eed,_0x180cb2){const _0x82a557=_0x1ae499;this['threeObject'][_0x82a557(0x123)](_0x4e9eed,_0x180cb2);}['setMatrixAt'](_0x5dc774,_0x1f586c){const _0x2023b0=_0x1ae499;this[_0x2023b0(0x115)]['setMatrixAt'](_0x5dc774,_0x1f586c),this[_0x2023b0(0x115)]['instanceMatrix']['needsUpdate']=!![];}[_0x1ae499(0x119)](_0x1ed08e){const _0x1492fb=_0x1ae499,_0x1e1224=Math[_0x1492fb(0x129)](_0x1ed08e[_0x1492fb(0x12a)],this['threeObject'][_0x1492fb(0x11a)]);for(let _0x303308=0x0;_0x303308<_0x1e1224;_0x303308++){this[_0x1492fb(0x115)]['setMatrixAt'](_0x303308,_0x1ed08e[_0x303308]);}this[_0x1492fb(0x115)][_0x1492fb(0x125)][_0x1492fb(0x106)]=!![];}[_0x1ae499(0x124)](){const _0x9db4e7=_0x1ae499;var _0x5e2109;this[_0x9db4e7(0x115)]&&(this[_0x9db4e7(0x115)][_0x9db4e7(0x11c)](),this[_0x9db4e7(0x115)][_0x9db4e7(0x111)]()),(_0x5e2109=this[_0x9db4e7(0x11d)])===null||_0x5e2109===void 0?void 0:_0x5e2109[_0x9db4e7(0x105)](),this[_0x9db4e7(0x11d)]=null,this[_0x9db4e7(0x113)][_0x9db4e7(0x12e)](_0x2d001e=>{const _0x1850db=_0x9db4e7;_0x2d001e[_0x1850db(0x105)]();}),this[_0x9db4e7(0x113)]=[],super[_0x9db4e7(0x124)]();}}
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _0x5a3da8=_0x2b5b;function _0x2b5b(_0x29e299,_0xbc6411){_0x29e299=_0x29e299-0x1b9;var _0x4cb432=_0x4cb4();var _0x2b5b76=_0x4cb432[_0x29e299];return _0x2b5b76;}(function(_0x1072d6,_0x5d7a01){var _0x7c14cf=_0x2b5b,_0x4a185d=_0x1072d6();while(!![]){try{var _0x69a9d=parseInt(_0x7c14cf(0x1c3))/0x1*(parseInt(_0x7c14cf(0x1cd))/0x2)+-parseInt(_0x7c14cf(0x1c5))/0x3*(-parseInt(_0x7c14cf(0x1be))/0x4)+parseInt(_0x7c14cf(0x1c2))/0x5+-parseInt(_0x7c14cf(0x1c9))/0x6*(-parseInt(_0x7c14cf(0x1c0))/0x7)+parseInt(_0x7c14cf(0x1c4))/0x8*(-parseInt(_0x7c14cf(0x1b9))/0x9)+parseInt(_0x7c14cf(0x1c7))/0xa*(parseInt(_0x7c14cf(0x1cb))/0xb)+-parseInt(_0x7c14cf(0x1ba))/0xc*(parseInt(_0x7c14cf(0x1c1))/0xd);if(_0x69a9d===_0x5d7a01)break;else _0x4a185d['push'](_0x4a185d['shift']());}catch(_0x52da56){_0x4a185d['push'](_0x4a185d['shift']());}}}(_0x4cb4,0x837ca));class TSmartPointer{constructor(_0x4ecc8e,_0x5759ce=0x1){var _0x569724=_0x2b5b;this[_0x569724(0x1bd)]=0x1,this[_0x569724(0x1bb)]=null,this[_0x569724(0x1bb)]=_0x4ecc8e,this[_0x569724(0x1bd)]=_0x5759ce;}[_0x5a3da8(0x1bc)](){var _0xaa302c=_0x5a3da8;return this[_0xaa302c(0x1bd)];}[_0x5a3da8(0x1ca)](){var _0x2e21ca=_0x5a3da8;return this[_0x2e21ca(0x1bb)]!==null;}[_0x5a3da8(0x1cc)](_0x363d49=0x1){var _0x2a1c2e=_0x5a3da8;this[_0x2a1c2e(0x1bb)]!==null&&(this[_0x2a1c2e(0x1bd)]+=_0x363d49);}[_0x5a3da8(0x1c6)](){var _0x206533=_0x5a3da8;this['value']!==null&&this['referenceCount']>0x0&&(this[_0x206533(0x1bd)]--,this['referenceCount']===0x0&&this[_0x206533(0x1bf)]());}['forceRelease'](){var _0x17ea4e=_0x5a3da8;this[_0x17ea4e(0x1bb)]!==null&&(this[_0x17ea4e(0x1bf)](),this['referenceCount']=0x0);}['dispose'](){this['value']=null;}[_0x5a3da8(0x1c8)](){return this['value'];}}function _0x4cb4(){var _0x58ede4=['getRefCount','referenceCount','429172CzTcxC','dispose','5677rxZRtA','2314507cNiIQr','4501945IXrDzI','112757amsawL','1381624jsSbJc','18MuzbwI','release','2325130azhkwL','getValue','6348OtOsHr','isValid','11NOzULy','addRef','10BTFMXm','18LRRtGz','156GsWMwe','value'];_0x4cb4=function(){return _0x58ede4;};return _0x4cb4();}
|
|
47
47
|
|
|
48
|
-
const
|
|
48
|
+
const _0x34765a=_0x2f2f;function _0x45f7(){const _0x3300de=['userData','value','1023050gqRSIt','dispose','8396FPjPUv','_uuid','10755KQYjcw','10876gTgwRA','20XMEdbr','54649309TNkOtH','8793900eQVIlS','9215688fAPEwx','7UksmLU','38XTHhFv','uuid','2118rxxWOo'];_0x45f7=function(){return _0x3300de;};return _0x45f7();}(function(_0x309b4a,_0x3e7a20){const _0x578064=_0x2f2f,_0x72458c=_0x309b4a();while(!![]){try{const _0x30f806=-parseInt(_0x578064(0x1af))/0x1*(parseInt(_0x578064(0x1b9))/0x2)+parseInt(_0x578064(0x1b1))/0x3*(-parseInt(_0x578064(0x1b6))/0x4)+parseInt(_0x578064(0x1b4))/0x5+-parseInt(_0x578064(0x1ac))/0x6+-parseInt(_0x578064(0x1ae))/0x7*(parseInt(_0x578064(0x1ad))/0x8)+-parseInt(_0x578064(0x1b8))/0x9*(parseInt(_0x578064(0x1ba))/0xa)+parseInt(_0x578064(0x1bb))/0xb;if(_0x30f806===_0x3e7a20)break;else _0x72458c['push'](_0x72458c['shift']());}catch(_0x5ad321){_0x72458c['push'](_0x72458c['shift']());}}}(_0x45f7,0xd2fbe));const ASSET_POINTER_KEY='assetPointer';function _0x2f2f(_0x1da51e,_0x371424){_0x1da51e=_0x1da51e-0x1ac;const _0x45f7df=_0x45f7();let _0x2f2f8e=_0x45f7df[_0x1da51e];return _0x2f2f8e;}const EDITOR_ASSET_ID_KEY='editorAssetId';class TAssetPointer extends TSmartPointer{get[_0x34765a(0x1b0)](){const _0x4b1a0e=_0x34765a;return this[_0x4b1a0e(0x1b7)];}constructor(_0x298bd8,_0x2af493=0x0){const _0x3bb6bc=_0x34765a;super(_0x298bd8,_0x2af493),this[_0x3bb6bc(0x1b7)]=_0x298bd8[_0x3bb6bc(0x1b0)],_0x298bd8[_0x3bb6bc(0x1b2)][ASSET_POINTER_KEY]=this;}[_0x34765a(0x1b5)](){const _0x59d473=_0x34765a;this[_0x59d473(0x1b3)]&&(this['value'][_0x59d473(0x1b2)]&&(delete this[_0x59d473(0x1b3)][_0x59d473(0x1b2)][ASSET_POINTER_KEY],delete this[_0x59d473(0x1b3)][_0x59d473(0x1b2)][EDITOR_ASSET_ID_KEY]),typeof this['value'][_0x59d473(0x1b5)]==='function'&&this[_0x59d473(0x1b3)][_0x59d473(0x1b5)]()),super[_0x59d473(0x1b5)]();}}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
const _0x2a151d=_0x4df6;function _0x4df6(_0x231c9d,_0x5f344e){_0x231c9d=_0x231c9d-0x1c6;const _0x27ac2c=_0x27ac();let _0x4df65f=_0x27ac2c[_0x231c9d];return _0x4df65f;}(function(_0x2069c6,_0xd9efef){const _0x4f3a0d=_0x4df6,_0x1aea30=_0x2069c6();while(!![]){try{const _0x16dd9b=parseInt(_0x4f3a0d(0x1d8))/0x1*(-parseInt(_0x4f3a0d(0x1d5))/0x2)+-parseInt(_0x4f3a0d(0x1d7))/0x3*(parseInt(_0x4f3a0d(0x1cb))/0x4)+-parseInt(_0x4f3a0d(0x1c6))/0x5*(-parseInt(_0x4f3a0d(0x1c9))/0x6)+-parseInt(_0x4f3a0d(0x1c8))/0x7+parseInt(_0x4f3a0d(0x1cf))/0x8*(parseInt(_0x4f3a0d(0x1d3))/0x9)+parseInt(_0x4f3a0d(0x1c7))/0xa*(-parseInt(_0x4f3a0d(0x1d0))/0xb)+-parseInt(_0x4f3a0d(0x1dd))/0xc*(-parseInt(_0x4f3a0d(0x1d6))/0xd);if(_0x16dd9b===_0xd9efef)break;else _0x1aea30['push'](_0x1aea30['shift']());}catch(_0x46ea86){_0x1aea30['push'](_0x1aea30['shift']());}}}(_0x27ac,0x6f2f2));function _0x27ac(){const _0x5a52d4=['3156872VhwNYa','Material\x20is\x20null','clear','get','1208104lcmHfl','132627KPBhtu','getValue','set','9KnPJib','needsUpdate','97354QCoegL','13ZiKsjK','3SzvwQh','9IgNTia','release','textures','setTexture','addRef','25306356FNIvkj','texturePointers','delete','820295TDGvsh','530xiNkRk','5309003nupIge','30gdChIi','removeTexture'];_0x27ac=function(){return _0x5a52d4;};return _0x27ac();}class MaterialAssetPointer extends TAssetPointer{constructor(_0x3ba598,_0x2d7e4f,_0x45c634=0x0){const _0x218f03=_0x4df6;super(_0x3ba598,_0x45c634),this[_0x218f03(0x1da)]=_0x2d7e4f;}get[_0x2a151d(0x1de)](){const _0x488bde=_0x2a151d;return this[_0x488bde(0x1da)];}[_0x2a151d(0x1db)](_0x3d2838,_0xec5e66){const _0x4881e9=_0x2a151d,_0x1cbfd0=this[_0x4881e9(0x1d1)](),_0x380e28=_0xec5e66[_0x4881e9(0x1d1)]();if(!_0x380e28)throw new Error('Texture\x20is\x20null');if(!_0x1cbfd0)throw new Error(_0x4881e9(0x1cc));const _0x2b5ce1=this[_0x4881e9(0x1da)]['get'](_0x3d2838);_0x2b5ce1!==_0xec5e66&&(_0x2b5ce1&&_0x2b5ce1[_0x4881e9(0x1d9)](),this['textures'][_0x4881e9(0x1d2)](_0x3d2838,_0xec5e66),_0x1cbfd0[_0x3d2838]=_0x380e28,_0xec5e66[_0x4881e9(0x1dc)](),_0x1cbfd0['needsUpdate']=!![]);}[_0x2a151d(0x1ca)](_0x513592){const _0x8e9588=_0x2a151d,_0x2c21d9=this[_0x8e9588(0x1d1)](),_0x48e907=this[_0x8e9588(0x1da)][_0x8e9588(0x1ce)](_0x513592);_0x48e907&&(_0x48e907[_0x8e9588(0x1d9)](),this[_0x8e9588(0x1da)][_0x8e9588(0x1df)](_0x513592),_0x2c21d9&&(_0x2c21d9[_0x513592]=null,_0x2c21d9[_0x8e9588(0x1d4)]=!![]));}['dispose'](){const _0x250089=_0x2a151d;for(const _0x3a774c of this['textures']['values']()){_0x3a774c[_0x250089(0x1d9)]();}this['textures'][_0x250089(0x1cd)](),super['dispose']();}}
|
|
51
51
|
|
|
52
|
-
(function(
|
|
52
|
+
function _0x59a4(){var _0xcc834b=['20570VYwNuj','164097qLxpmQ','3685590reYdOz','3706569jQCmjj','1051626GxvaLo','1595192aKAKCX','21BGPIJC','60616WZWKLI','24pfJsUK','606zQVxQm'];_0x59a4=function(){return _0xcc834b;};return _0x59a4();}function _0x4add(_0x40a95a,_0x3c38c4){_0x40a95a=_0x40a95a-0x12f;var _0x59a41f=_0x59a4();var _0x4add45=_0x59a41f[_0x40a95a];return _0x4add45;}(function(_0x5dc014,_0x4cf004){var _0x13a512=_0x4add,_0x82969a=_0x5dc014();while(!![]){try{var _0x75499b=parseInt(_0x13a512(0x133))/0x1+-parseInt(_0x13a512(0x136))/0x2+-parseInt(_0x13a512(0x130))/0x3*(-parseInt(_0x13a512(0x12f))/0x4)+-parseInt(_0x13a512(0x132))/0x5*(-parseInt(_0x13a512(0x131))/0x6)+parseInt(_0x13a512(0x138))/0x7*(-parseInt(_0x13a512(0x137))/0x8)+parseInt(_0x13a512(0x135))/0x9+parseInt(_0x13a512(0x134))/0xa;if(_0x75499b===_0x4cf004)break;else _0x82969a['push'](_0x82969a['shift']());}catch(_0x20252a){_0x82969a['push'](_0x82969a['shift']());}}}(_0x59a4,0x57371));class TextureAssetPointer extends TAssetPointer{constructor(_0x2fd9cd,_0x50b078=0x1){super(_0x2fd9cd,_0x50b078);}}
|
|
53
53
|
|
|
54
|
-
(function(
|
|
54
|
+
(function(_0x4e8971,_0xc3d28a){var _0x9255a1=_0x4e8b,_0x483808=_0x4e8971();while(!![]){try{var _0x466f1c=parseInt(_0x9255a1(0x15e))/0x1+-parseInt(_0x9255a1(0x15f))/0x2*(parseInt(_0x9255a1(0x160))/0x3)+parseInt(_0x9255a1(0x165))/0x4+parseInt(_0x9255a1(0x166))/0x5+parseInt(_0x9255a1(0x161))/0x6*(-parseInt(_0x9255a1(0x163))/0x7)+-parseInt(_0x9255a1(0x162))/0x8*(parseInt(_0x9255a1(0x15d))/0x9)+parseInt(_0x9255a1(0x164))/0xa;if(_0x466f1c===_0xc3d28a)break;else _0x483808['push'](_0x483808['shift']());}catch(_0x145168){_0x483808['push'](_0x483808['shift']());}}}(_0xef22,0xb899a));function _0x4e8b(_0x12b944,_0x1f7506){_0x12b944=_0x12b944-0x15d;var _0xef228=_0xef22();var _0x4e8bbe=_0xef228[_0x12b944];return _0x4e8bbe;}function _0xef22(){var _0x537b67=['3683800FkKsHH','82784RPpQOv','4071390BOltdy','18ugxMsG','1078567zkdAcW','30466KBToch','9wcKIAT','276HBXKMc','4176264JFNSJt','66353faKGcI'];_0xef22=function(){return _0x537b67;};return _0xef22();}class GeometryAssetPointer extends TAssetPointer{constructor(_0x252be2,_0x4bf9ad=0x1){super(_0x252be2,_0x4bf9ad);}}
|
|
55
55
|
|
|
56
|
-
const _0x42f5e8=_0x4c06;(function(_0xe34133,_0x3b2079){const _0xca3e55=_0x4c06,_0xe88f80=_0xe34133();while(!![]){try{const _0x1e36e6=-parseInt(_0xca3e55(0x81))/0x1*(-parseInt(_0xca3e55(0x87))/0x2)+-parseInt(_0xca3e55(0x97))/0x3+parseInt(_0xca3e55(0xaf))/0x4+parseInt(_0xca3e55(0x85))/0x5+parseInt(_0xca3e55(0xc9))/0x6*(-parseInt(_0xca3e55(0xc0))/0x7)+parseInt(_0xca3e55(0x91))/0x8*(-parseInt(_0xca3e55(0xb4))/0x9)+parseInt(_0xca3e55(0x9f))/0xa;if(_0x1e36e6===_0x3b2079)break;else _0xe88f80['push'](_0xe88f80['shift']());}catch(_0x16b900){_0xe88f80['push'](_0xe88f80['shift']());}}}(_0x41bb,0xbe713));function _0x4c06(_0x4070ab,_0x384380){_0x4070ab=_0x4070ab-0x80;const _0x41bb03=_0x41bb();let _0x4c06bb=_0x41bb03[_0x4070ab];return _0x4c06bb;}class AssetManager{constructor(_0xdba252,_0x58f9e3){const _0x481363=_0x4c06;this[_0x481363(0x89)]=new Map(),this['textureAssets']=new Map(),this[_0x481363(0xaa)]=new Map(),this['loadingManager']=new webgpu.LoadingManager(),this[_0x481363(0xbb)]=new Addons_js.GLTFLoader(this['loadingManager']),this[_0x481363(0x8f)]=_0xdba252,this[_0x481363(0xc5)]=_0x58f9e3;}get[_0x42f5e8(0xb2)](){const _0x17901c=_0x42f5e8;return this[_0x17901c(0xa7)];}get[_0x42f5e8(0x82)](){const _0x55346f=_0x42f5e8;return AssetManager[_0x55346f(0xb5)];}async[_0x42f5e8(0x9d)](){return;}[_0x42f5e8(0x98)](){const _0x4ce76a=_0x42f5e8;if(!AssetManager['_dracoLoader']){AssetManager['_dracoLoader']=new Addons_js.DRACOLoader();if(AssetManager[_0x4ce76a(0xc8)][_0x4ce76a(0xc2)]){const _0x3569e2=AssetManager['_dracoLoader'][_0x4ce76a(0xc2)];_0x3569e2[_0x4ce76a(0xac)]=undefined,_0x3569e2[_0x4ce76a(0xc6)]=undefined,_0x3569e2[_0x4ce76a(0xa4)]=undefined,_0x3569e2['onError']=undefined;}AssetManager['_dracoLoader']['setDecoderPath'](this[_0x4ce76a(0xc5)]),AssetManager[_0x4ce76a(0xc8)][_0x4ce76a(0x93)]();}}[_0x42f5e8(0xb6)](_0x5b6d64,_0xa7dcb4){const _0x3874cf=_0x42f5e8,_0x2af072=_0xa7dcb4[_0x3874cf(0xc1)]['clone'](),_0x5ccc8f=_0xa7dcb4['rotation']['clone'](),_0x8cad4a=_0xa7dcb4[_0x3874cf(0xb1)][_0x3874cf(0x8c)]();let _0x5815a2=null;const _0x5e3af4=_0xa7dcb4['children'];_0xa7dcb4['children']=[];if(_0xa7dcb4[_0x3874cf(0xbf)]===_0x3874cf(0x9b)||_0xa7dcb4[_0x3874cf(0xbf)]===_0x3874cf(0xc3))_0x5815a2=new SceneComponent(this[_0x3874cf(0x8f)],_0xa7dcb4['uuid']);else {if(_0xa7dcb4['isInstancedMesh']){const _0x33ad4d=_0xa7dcb4;_0x5815a2=new InstanceMeshComponent(this['app'],_0x33ad4d,_0x33ad4d[_0x3874cf(0xa3)]),_0x5815a2[_0x3874cf(0x9c)]=_0x33ad4d[_0x3874cf(0x9c)],_0xa7dcb4[_0x3874cf(0xa6)]['set'](0x0);}else {if(_0xa7dcb4[_0x3874cf(0x8a)]){const _0x5b9889=_0xa7dcb4;_0x5815a2=new MeshComponent(this[_0x3874cf(0x8f)],_0x5b9889[_0x3874cf(0xbc)],_0x5b9889[_0x3874cf(0x86)],_0x5b9889['uuid']),_0x5815a2[_0x3874cf(0x9c)]=_0x5b9889['name'],_0xa7dcb4[_0x3874cf(0xa6)][_0x3874cf(0x90)](0x0);}else _0x5815a2=new SceneComponent(this[_0x3874cf(0x8f)],_0xa7dcb4[_0x3874cf(0xa3)]);}}if(_0x5815a2===null)return _0xa7dcb4['children']=_0x5e3af4,null;_0x5b6d64[_0x3874cf(0x84)](_0x5815a2),_0x5815a2[_0x3874cf(0x83)](_0x2af072),_0x5815a2[_0x3874cf(0xab)](_0x5ccc8f),_0x5815a2[_0x3874cf(0xad)](_0x8cad4a);for(const _0x2a1902 of _0x5e3af4){this[_0x3874cf(0xb6)](_0x5815a2,_0x2a1902);}return _0x5815a2;}[_0x42f5e8(0xb3)](_0x1d1a0d){const _0x249a69=_0x42f5e8,_0x58fc38=(_0x3ff514,_0x18fe70)=>{const _0xac685b=_0x4c06;var _0x7344b2;const _0x1d4996=(_0x7344b2=_0x3ff514[_0xac685b(0x8d)](_0x18fe70))!==null&&_0x7344b2!==void 0?_0x7344b2:0x0;_0x3ff514[_0xac685b(0x90)](_0x18fe70,_0x1d4996+0x1);},_0x5cc9bb={'geometries':new Map(),'materials':new Map(),'textures':new Map()};_0x1d1a0d[_0x249a69(0x8e)](_0x187d96=>{const _0x4b4b2b=_0x249a69,_0x371e01=_0x187d96;_0x371e01['geometry']instanceof webgpu.BufferGeometry&&_0x58fc38(_0x5cc9bb[_0x4b4b2b(0xbe)],_0x371e01[_0x4b4b2b(0xbc)]);if(_0x371e01['material']){const _0x1fcdfe=Array['isArray'](_0x371e01[_0x4b4b2b(0x86)])?_0x371e01[_0x4b4b2b(0x86)]:[_0x371e01[_0x4b4b2b(0x86)]];_0x1fcdfe[_0x4b4b2b(0xa0)](_0x40bee7=>{const _0x59b067=_0x4b4b2b;_0x40bee7&&(_0x58fc38(_0x5cc9bb[_0x59b067(0xb0)],_0x40bee7),Object[_0x59b067(0xc4)](_0x40bee7)[_0x59b067(0xa0)](_0x5cd55c=>{const _0x2b9015=_0x59b067;_0x5cd55c instanceof webgpu.Texture&&_0x58fc38(_0x5cc9bb[_0x2b9015(0xc7)],_0x5cd55c);}));});}}),_0x5cc9bb['geometries']['forEach']((_0x455635,_0x25b0a2)=>this[_0x249a69(0x94)](_0x25b0a2,_0x455635)),_0x5cc9bb[_0x249a69(0xb0)][_0x249a69(0xa0)]((_0x4cb5a5,_0x9bc5f6)=>this[_0x249a69(0x94)](_0x9bc5f6,_0x4cb5a5)),_0x5cc9bb[_0x249a69(0xc7)][_0x249a69(0xa0)]((_0x47c13a,_0x441d99)=>this['addAsset'](_0x441d99,_0x47c13a));}[_0x42f5e8(0xa8)](_0x2c831d){const _0x369925=_0x42f5e8;_0x2c831d[_0x369925(0xbc)]&&!_0x2c831d[_0x369925(0xbc)]['userData']['assetPointer']&&this[_0x369925(0x94)](_0x2c831d['geometry']);if(_0x2c831d[_0x369925(0x86)]){const _0x3e2932=Array[_0x369925(0x95)](_0x2c831d['material'])?_0x2c831d[_0x369925(0x86)]:[_0x2c831d[_0x369925(0x86)]];_0x3e2932[_0x369925(0xa0)](_0x5716ed=>{const _0x4767b2=_0x369925;if(!_0x5716ed)return;!_0x5716ed[_0x4767b2(0x99)][_0x4767b2(0xa1)]&&this['addAsset'](_0x5716ed),Object[_0x4767b2(0xc4)](_0x5716ed)[_0x4767b2(0xa0)](_0x1734ad=>{const _0x2a4663=_0x4767b2;_0x1734ad instanceof webgpu.Texture&&!_0x1734ad[_0x2a4663(0x99)][_0x2a4663(0xa1)]&&this[_0x2a4663(0x94)](_0x1734ad);});});}}async[_0x42f5e8(0x9a)](_0x3b0945){const _0x474fc1=_0x42f5e8;this[_0x474fc1(0x98)]();const _0x3ee48c=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager['_dracoLoader']&&_0x3ee48c[_0x474fc1(0xa2)](AssetManager[_0x474fc1(0xc8)]);AssetManager[_0x474fc1(0xb5)]&&_0x3ee48c[_0x474fc1(0xa5)](AssetManager[_0x474fc1(0xb5)]);try{const _0x45ead3=await _0x3ee48c['loadAsync'](_0x3b0945);return _0x45ead3;}catch(_0x3eee3a){console[_0x474fc1(0xb8)]('Failed\x20to\x20load\x20gltf',_0x3b0945,_0x3eee3a);throw _0x3eee3a;}}['loadGltfFromPath'](_0x1b4123,_0x56c12d){const _0x580620=_0x42f5e8;this[_0x580620(0x98)]();const _0x280fe1=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager[_0x580620(0xc8)]&&_0x280fe1[_0x580620(0xa2)](AssetManager[_0x580620(0xc8)]),_0x280fe1[_0x580620(0x8b)](_0x1b4123,_0x56c12d);}[_0x42f5e8(0xa9)](_0x19108e,_0x18b223,_0x26f470){const _0x566562=_0x42f5e8;this['setupDracoLoader']();const _0x54a738=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager[_0x566562(0xc8)]&&_0x54a738[_0x566562(0xa2)](AssetManager[_0x566562(0xc8)]),_0x54a738[_0x566562(0xbd)](_0x19108e,_0x18b223,_0x26f470);}[_0x42f5e8(0xb9)](_0x4bdc96='',_0x373088){const _0x14596e=new webgpu.FileLoader();_0x14596e['load'](_0x4bdc96,_0x373088);}[_0x42f5e8(0x94)](_0x52204a,_0x5de98f=0x0){const _0x38ad81=_0x42f5e8;if(_0x52204a instanceof webgpu.BufferGeometry)return this['addGeometryAsset'](_0x52204a,_0x5de98f);if(_0x52204a instanceof webgpu.Material)return this[_0x38ad81(0x92)](_0x52204a,_0x5de98f);if(_0x52204a instanceof webgpu.Texture)return this[_0x38ad81(0x88)](_0x52204a,_0x5de98f);return undefined;}['addMaterialAsset'](_0xb081e3,_0x3f5421=0x0){const _0x387af2=_0x42f5e8;let _0x36c31b=_0xb081e3[_0x387af2(0x99)][_0x387af2(0xa1)];if(!_0x36c31b){const _0x9d9306=new Map();Object['entries'](_0xb081e3)['forEach'](([_0x310289,_0x595f8d])=>{const _0x3679be=_0x387af2;if(_0x595f8d instanceof webgpu.Texture){const _0x1c27b0=this[_0x3679be(0x88)](_0x595f8d,0x1);_0x9d9306[_0x3679be(0x90)](_0x310289,_0x1c27b0);}}),_0x36c31b=new MaterialAssetPointer(_0xb081e3,_0x9d9306,_0x3f5421),this[_0x387af2(0xaa)][_0x387af2(0x90)](_0xb081e3[_0x387af2(0xa3)],_0x36c31b);}else _0x36c31b[_0x387af2(0xb7)](_0x3f5421);return _0x36c31b;}[_0x42f5e8(0x88)](_0x539487,_0x5659cf=0x0){const _0xa36e81=_0x42f5e8;let _0x56b6d1=_0x539487['userData'][_0xa36e81(0xa1)];return !_0x56b6d1?(_0x56b6d1=new TextureAssetPointer(_0x539487,_0x5659cf),this[_0xa36e81(0x96)][_0xa36e81(0x90)](_0x539487[_0xa36e81(0xa3)],_0x56b6d1)):_0x56b6d1[_0xa36e81(0xb7)](_0x5659cf),_0x56b6d1;}['addGeometryAsset'](_0x857415,_0x19b444=0x0){const _0xf244da=_0x42f5e8;let _0x2620a4=_0x857415[_0xf244da(0x99)][_0xf244da(0xa1)];return !_0x2620a4?(_0x2620a4=new GeometryAssetPointer(_0x857415,_0x19b444),this[_0xf244da(0x89)][_0xf244da(0x90)](_0x857415[_0xf244da(0xa3)],_0x2620a4)):_0x2620a4[_0xf244da(0xb7)](_0x19b444),_0x2620a4;}['releaseAsset'](_0xd85b70){const _0x582a8b=_0x42f5e8,_0x5eec88=_0xd85b70['userData']['assetPointer'];_0x5eec88?_0x5eec88[_0x582a8b(0xba)]():_0xd85b70['dispose']();}[_0x42f5e8(0x9e)](){const _0x192eef=_0x42f5e8;this[_0x192eef(0x80)](),AssetManager[_0x192eef(0xc8)]&&(AssetManager[_0x192eef(0xc8)][_0x192eef(0x9e)](),AssetManager[_0x192eef(0xc8)]=null),AssetManager[_0x192eef(0xb5)]&&(AssetManager[_0x192eef(0xb5)]['dispose'](),AssetManager[_0x192eef(0xb5)]=null);}[_0x42f5e8(0x80)](){const _0x61e920=_0x42f5e8;this[_0x61e920(0x89)]['forEach'](_0x1b4e0c=>_0x1b4e0c['forceRelease']()),this['geometryAssets'][_0x61e920(0xae)](),this['materialAssets'][_0x61e920(0xa0)](_0x330a32=>_0x330a32['forceRelease']()),this[_0x61e920(0xaa)][_0x61e920(0xae)](),this[_0x61e920(0x96)][_0x61e920(0xa0)](_0xda089a=>_0xda089a['forceRelease']()),this[_0x61e920(0x96)][_0x61e920(0xae)]();}}AssetManager['_dracoLoader']=null,AssetManager['_ktx2Loader']=null;function _0x41bb(){const _0x421734=['clone','get','traverse','app','set','24ZqUgtx','addMaterialAsset','preload','addAsset','isArray','textureAssets','1966929oyAkBq','setupDracoLoader','userData','loadGltfFromPathAsync','Group','name','init','dispose','34655120kopWhO','forEach','assetPointer','setDRACOLoader','uuid','onProgress','setKTX2Loader','layers','loadingManager','checkMeshResource','loadGltfFromBuffer','materialAssets','setRotation','onStart','setScale','clear','413624lrrtYR','materials','scale','LoadingManager','collectResourcesAndReferences','3466602lProjG','_ktx2Loader','convertThreeObjectToLYObject','addRef','error','loadFile','release','gltfLoader','geometry','parse','geometries','type','538349uGNmrR','position','manager','Object3D','values','dracoPath','onLoad','textures','_dracoLoader','114FxcBui','clearAssets','1699cizmbx','KTX2Loader','setPosition','addChildComponent','2205340tDWNQB','material','50YhNzCU','addTextureAsset','geometryAssets','isMesh','load'];_0x41bb=function(){return _0x421734;};return _0x41bb();}
|
|
56
|
+
const _0x4b0d77=_0x589f;(function(_0x306cce,_0x28e922){const _0x4ec22d=_0x589f,_0x3ebf22=_0x306cce();while(!![]){try{const _0x508bd2=parseInt(_0x4ec22d(0x183))/0x1*(parseInt(_0x4ec22d(0x18a))/0x2)+-parseInt(_0x4ec22d(0x1a7))/0x3+parseInt(_0x4ec22d(0x17e))/0x4*(-parseInt(_0x4ec22d(0x18d))/0x5)+-parseInt(_0x4ec22d(0x170))/0x6*(parseInt(_0x4ec22d(0x179))/0x7)+parseInt(_0x4ec22d(0x181))/0x8+parseInt(_0x4ec22d(0x176))/0x9*(-parseInt(_0x4ec22d(0x189))/0xa)+parseInt(_0x4ec22d(0x16d))/0xb;if(_0x508bd2===_0x28e922)break;else _0x3ebf22['push'](_0x3ebf22['shift']());}catch(_0x3dfd19){_0x3ebf22['push'](_0x3ebf22['shift']());}}}(_0x4584,0x6e518));function _0x4584(){const _0x112aa7=['3398535VFRvAk','preload','set','8988qeGPSO','geometries','addMaterialAsset','addTextureAsset','type','242404colQDr','scale','checkMeshResource','4053232gEQwik','collectResourcesAndReferences','63qaDrSw','Object3D','rotation','textures','forEach','Failed\x20to\x20load\x20gltf','10koggoF','9696KhGPkG','clearAssets','values','65wpIQEb','forceRelease','_dracoLoader','traverse','name','assetPointer','LoadingManager','setDRACOLoader','addRef','geometry','onLoad','userData','layers','textureAssets','loadingManager','isInstancedMesh','material','app','_ktx2Loader','init','isArray','entries','addChildComponent','loadGltfFromPath','children','materialAssets','711885zgfKfV','loadAsync','addAsset','onStart','setRotation','clone','parse','uuid','clear','onError','isMesh','geometryAssets','setPosition','setupDracoLoader','dispose','12964743esygEu','error','addGeometryAsset','636vpJjnh','materials','setScale','onProgress','loadFile','convertThreeObjectToLYObject'];_0x4584=function(){return _0x112aa7;};return _0x4584();}function _0x589f(_0x3d7edd,_0x3f0e9b){_0x3d7edd=_0x3d7edd-0x163;const _0x4584d3=_0x4584();let _0x589f1a=_0x4584d3[_0x3d7edd];return _0x589f1a;}class AssetManager{constructor(_0x38ef9f,_0x4015d2){const _0xacc3c1=_0x589f;this['geometryAssets']=new Map(),this['textureAssets']=new Map(),this[_0xacc3c1(0x1a6)]=new Map(),this[_0xacc3c1(0x19b)]=new webgpu.LoadingManager(),this['gltfLoader']=new Addons_js.GLTFLoader(this[_0xacc3c1(0x19b)]),this[_0xacc3c1(0x19e)]=_0x38ef9f,this['dracoPath']=_0x4015d2;}get[_0x4b0d77(0x193)](){const _0xb59dd7=_0x4b0d77;return this[_0xb59dd7(0x19b)];}get['KTX2Loader'](){const _0x1ed798=_0x4b0d77;return AssetManager[_0x1ed798(0x19f)];}async[_0x4b0d77(0x1a0)](){return;}['setupDracoLoader'](){const _0x101669=_0x4b0d77;if(!AssetManager[_0x101669(0x18f)]){AssetManager[_0x101669(0x18f)]=new Addons_js.DRACOLoader();if(AssetManager[_0x101669(0x18f)]['manager']){const _0x5ecd96=AssetManager[_0x101669(0x18f)]['manager'];_0x5ecd96[_0x101669(0x1aa)]=undefined,_0x5ecd96[_0x101669(0x197)]=undefined,_0x5ecd96[_0x101669(0x173)]=undefined,_0x5ecd96[_0x101669(0x167)]=undefined;}AssetManager[_0x101669(0x18f)]['setDecoderPath'](this['dracoPath']),AssetManager[_0x101669(0x18f)][_0x101669(0x177)]();}}[_0x4b0d77(0x175)](_0x431f14,_0x3a7e77){const _0x17b63d=_0x4b0d77,_0x4f0779=_0x3a7e77['position'][_0x17b63d(0x163)](),_0x13bc4b=_0x3a7e77[_0x17b63d(0x185)][_0x17b63d(0x163)](),_0x569bc4=_0x3a7e77[_0x17b63d(0x17f)][_0x17b63d(0x163)]();let _0x91b4ca=null;const _0xcd5ef=_0x3a7e77[_0x17b63d(0x1a5)];_0x3a7e77[_0x17b63d(0x1a5)]=[];if(_0x3a7e77[_0x17b63d(0x17d)]==='Group'||_0x3a7e77[_0x17b63d(0x17d)]===_0x17b63d(0x184))_0x91b4ca=new SceneComponent(this['app'],_0x3a7e77[_0x17b63d(0x165)]);else {if(_0x3a7e77[_0x17b63d(0x19c)]){const _0x4578ea=_0x3a7e77;_0x91b4ca=new InstanceMeshComponent(this[_0x17b63d(0x19e)],_0x4578ea,_0x4578ea[_0x17b63d(0x165)]),_0x91b4ca[_0x17b63d(0x191)]=_0x4578ea[_0x17b63d(0x191)],_0x3a7e77[_0x17b63d(0x199)]['set'](0x0);}else {if(_0x3a7e77[_0x17b63d(0x168)]){const _0x3c3246=_0x3a7e77;_0x91b4ca=new MeshComponent(this[_0x17b63d(0x19e)],_0x3c3246[_0x17b63d(0x196)],_0x3c3246[_0x17b63d(0x19d)],_0x3c3246[_0x17b63d(0x165)]),_0x91b4ca[_0x17b63d(0x191)]=_0x3c3246['name'],_0x3a7e77[_0x17b63d(0x199)][_0x17b63d(0x178)](0x0);}else _0x91b4ca=new SceneComponent(this[_0x17b63d(0x19e)],_0x3a7e77[_0x17b63d(0x165)]);}}if(_0x91b4ca===null)return _0x3a7e77[_0x17b63d(0x1a5)]=_0xcd5ef,null;_0x431f14[_0x17b63d(0x1a3)](_0x91b4ca),_0x91b4ca[_0x17b63d(0x16a)](_0x4f0779),_0x91b4ca[_0x17b63d(0x1ab)](_0x13bc4b),_0x91b4ca[_0x17b63d(0x172)](_0x569bc4);for(const _0x3fddf6 of _0xcd5ef){this[_0x17b63d(0x175)](_0x91b4ca,_0x3fddf6);}return _0x91b4ca;}[_0x4b0d77(0x182)](_0x55ac78){const _0x4b5253=_0x4b0d77,_0x5a284f=(_0x3f6ba4,_0x63cd46)=>{const _0x51a503=_0x589f;var _0x527bef;const _0x116421=(_0x527bef=_0x3f6ba4['get'](_0x63cd46))!==null&&_0x527bef!==void 0?_0x527bef:0x0;_0x3f6ba4[_0x51a503(0x178)](_0x63cd46,_0x116421+0x1);},_0x206de6={'geometries':new Map(),'materials':new Map(),'textures':new Map()};_0x55ac78[_0x4b5253(0x190)](_0x10da5f=>{const _0x1d7b41=_0x4b5253,_0x5c0a17=_0x10da5f;_0x5c0a17[_0x1d7b41(0x196)]instanceof webgpu.BufferGeometry&&_0x5a284f(_0x206de6[_0x1d7b41(0x17a)],_0x5c0a17[_0x1d7b41(0x196)]);if(_0x5c0a17[_0x1d7b41(0x19d)]){const _0x2424d0=Array[_0x1d7b41(0x1a1)](_0x5c0a17[_0x1d7b41(0x19d)])?_0x5c0a17[_0x1d7b41(0x19d)]:[_0x5c0a17[_0x1d7b41(0x19d)]];_0x2424d0[_0x1d7b41(0x187)](_0x47eacf=>{const _0x43ca4c=_0x1d7b41;_0x47eacf&&(_0x5a284f(_0x206de6[_0x43ca4c(0x171)],_0x47eacf),Object[_0x43ca4c(0x18c)](_0x47eacf)[_0x43ca4c(0x187)](_0x4c6257=>{const _0x23d759=_0x43ca4c;_0x4c6257 instanceof webgpu.Texture&&_0x5a284f(_0x206de6[_0x23d759(0x186)],_0x4c6257);}));});}}),_0x206de6[_0x4b5253(0x17a)][_0x4b5253(0x187)]((_0x5ea57f,_0x4af077)=>this[_0x4b5253(0x1a9)](_0x4af077,_0x5ea57f)),_0x206de6[_0x4b5253(0x171)][_0x4b5253(0x187)]((_0x31553a,_0xf4256f)=>this[_0x4b5253(0x1a9)](_0xf4256f,_0x31553a)),_0x206de6[_0x4b5253(0x186)][_0x4b5253(0x187)]((_0x26f5e9,_0x3caa42)=>this[_0x4b5253(0x1a9)](_0x3caa42,_0x26f5e9));}[_0x4b0d77(0x180)](_0x581408){const _0x9b0648=_0x4b0d77;_0x581408[_0x9b0648(0x196)]&&!_0x581408[_0x9b0648(0x196)][_0x9b0648(0x198)][_0x9b0648(0x192)]&&this[_0x9b0648(0x1a9)](_0x581408[_0x9b0648(0x196)]);if(_0x581408[_0x9b0648(0x19d)]){const _0x2cb8ed=Array[_0x9b0648(0x1a1)](_0x581408[_0x9b0648(0x19d)])?_0x581408[_0x9b0648(0x19d)]:[_0x581408[_0x9b0648(0x19d)]];_0x2cb8ed['forEach'](_0x3c3814=>{const _0x1d0ff0=_0x9b0648;if(!_0x3c3814)return;!_0x3c3814['userData']['assetPointer']&&this[_0x1d0ff0(0x1a9)](_0x3c3814),Object[_0x1d0ff0(0x18c)](_0x3c3814)[_0x1d0ff0(0x187)](_0x5cf45b=>{const _0xef4bc7=_0x1d0ff0;_0x5cf45b instanceof webgpu.Texture&&!_0x5cf45b[_0xef4bc7(0x198)]['assetPointer']&&this[_0xef4bc7(0x1a9)](_0x5cf45b);});});}}async['loadGltfFromPathAsync'](_0x2ab480){const _0x550898=_0x4b0d77;this[_0x550898(0x16b)]();const _0x63049b=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager['_dracoLoader']&&_0x63049b[_0x550898(0x194)](AssetManager[_0x550898(0x18f)]);AssetManager['_ktx2Loader']&&_0x63049b['setKTX2Loader'](AssetManager[_0x550898(0x19f)]);try{const _0x14f124=await _0x63049b[_0x550898(0x1a8)](_0x2ab480);return _0x14f124;}catch(_0x24c0eb){console[_0x550898(0x16e)](_0x550898(0x188),_0x2ab480,_0x24c0eb);throw _0x24c0eb;}}[_0x4b0d77(0x1a4)](_0xc489c0,_0x2b342d){const _0x50fcc5=_0x4b0d77;this[_0x50fcc5(0x16b)]();const _0x54b47f=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager[_0x50fcc5(0x18f)]&&_0x54b47f[_0x50fcc5(0x194)](AssetManager['_dracoLoader']),_0x54b47f['load'](_0xc489c0,_0x2b342d);}['loadGltfFromBuffer'](_0x38611a,_0x2b74ea,_0x2c4759){const _0x4e1d60=_0x4b0d77;this[_0x4e1d60(0x16b)]();const _0xc7c506=new Addons_js.GLTFLoader(new webgpu.LoadingManager());AssetManager[_0x4e1d60(0x18f)]&&_0xc7c506['setDRACOLoader'](AssetManager[_0x4e1d60(0x18f)]),_0xc7c506[_0x4e1d60(0x164)](_0x38611a,_0x2b74ea,_0x2c4759);}[_0x4b0d77(0x174)](_0x51ae09='',_0x2cd038){const _0x149fc8=new webgpu.FileLoader();_0x149fc8['load'](_0x51ae09,_0x2cd038);}[_0x4b0d77(0x1a9)](_0xa9d4c8,_0x38bfba=0x0){const _0x35bca1=_0x4b0d77;if(_0xa9d4c8 instanceof webgpu.BufferGeometry)return this[_0x35bca1(0x16f)](_0xa9d4c8,_0x38bfba);if(_0xa9d4c8 instanceof webgpu.Material)return this[_0x35bca1(0x17b)](_0xa9d4c8,_0x38bfba);if(_0xa9d4c8 instanceof webgpu.Texture)return this[_0x35bca1(0x17c)](_0xa9d4c8,_0x38bfba);return undefined;}[_0x4b0d77(0x17b)](_0xd2fddf,_0x599a65=0x0){const _0x245e6d=_0x4b0d77;let _0x45ab7c=_0xd2fddf[_0x245e6d(0x198)]['assetPointer'];if(!_0x45ab7c){const _0x534df3=new Map();Object[_0x245e6d(0x1a2)](_0xd2fddf)[_0x245e6d(0x187)](([_0x8af3c5,_0x1d4cf3])=>{const _0x55be7f=_0x245e6d;if(_0x1d4cf3 instanceof webgpu.Texture){const _0x10948a=this[_0x55be7f(0x17c)](_0x1d4cf3,0x1);_0x534df3[_0x55be7f(0x178)](_0x8af3c5,_0x10948a);}}),_0x45ab7c=new MaterialAssetPointer(_0xd2fddf,_0x534df3,_0x599a65),this[_0x245e6d(0x1a6)][_0x245e6d(0x178)](_0xd2fddf[_0x245e6d(0x165)],_0x45ab7c);}else _0x45ab7c['addRef'](_0x599a65);return _0x45ab7c;}['addTextureAsset'](_0x435672,_0x189fcf=0x0){const _0x20ea26=_0x4b0d77;let _0x3245b3=_0x435672[_0x20ea26(0x198)][_0x20ea26(0x192)];return !_0x3245b3?(_0x3245b3=new TextureAssetPointer(_0x435672,_0x189fcf),this[_0x20ea26(0x19a)]['set'](_0x435672[_0x20ea26(0x165)],_0x3245b3)):_0x3245b3[_0x20ea26(0x195)](_0x189fcf),_0x3245b3;}['addGeometryAsset'](_0x13d4a5,_0x1ce476=0x0){const _0x33eb86=_0x4b0d77;let _0x4b8791=_0x13d4a5[_0x33eb86(0x198)][_0x33eb86(0x192)];return !_0x4b8791?(_0x4b8791=new GeometryAssetPointer(_0x13d4a5,_0x1ce476),this['geometryAssets'][_0x33eb86(0x178)](_0x13d4a5[_0x33eb86(0x165)],_0x4b8791)):_0x4b8791[_0x33eb86(0x195)](_0x1ce476),_0x4b8791;}['releaseAsset'](_0x55e19f){const _0x5e52e1=_0x4b0d77,_0x3108bd=_0x55e19f[_0x5e52e1(0x198)]['assetPointer'];_0x3108bd?_0x3108bd['release']():_0x55e19f[_0x5e52e1(0x16c)]();}[_0x4b0d77(0x16c)](){const _0x3684f7=_0x4b0d77;this[_0x3684f7(0x18b)](),AssetManager['_dracoLoader']&&(AssetManager[_0x3684f7(0x18f)][_0x3684f7(0x16c)](),AssetManager[_0x3684f7(0x18f)]=null),AssetManager['_ktx2Loader']&&(AssetManager[_0x3684f7(0x19f)][_0x3684f7(0x16c)](),AssetManager[_0x3684f7(0x19f)]=null);}[_0x4b0d77(0x18b)](){const _0x46159a=_0x4b0d77;this[_0x46159a(0x169)]['forEach'](_0x370335=>_0x370335[_0x46159a(0x18e)]()),this[_0x46159a(0x169)][_0x46159a(0x166)](),this[_0x46159a(0x1a6)][_0x46159a(0x187)](_0x1a4981=>_0x1a4981[_0x46159a(0x18e)]()),this[_0x46159a(0x1a6)][_0x46159a(0x166)](),this['textureAssets'][_0x46159a(0x187)](_0x843d3f=>_0x843d3f[_0x46159a(0x18e)]()),this[_0x46159a(0x19a)][_0x46159a(0x166)]();}}AssetManager[_0x4b0d77(0x18f)]=null,AssetManager[_0x4b0d77(0x19f)]=null;
|
|
57
57
|
|
|
58
|
-
(function(
|
|
58
|
+
(function(_0x59b22e,_0x276495){var _0x43e33e=_0x269c,_0x546131=_0x59b22e();while(!![]){try{var _0x2f7af1=-parseInt(_0x43e33e(0x1aa))/0x1+-parseInt(_0x43e33e(0x1c1))/0x2*(-parseInt(_0x43e33e(0x1ac))/0x3)+-parseInt(_0x43e33e(0x1c5))/0x4*(parseInt(_0x43e33e(0x1ab))/0x5)+-parseInt(_0x43e33e(0x1b6))/0x6*(-parseInt(_0x43e33e(0x1af))/0x7)+parseInt(_0x43e33e(0x1ca))/0x8*(parseInt(_0x43e33e(0x1bd))/0x9)+parseInt(_0x43e33e(0x1b5))/0xa+parseInt(_0x43e33e(0x1ae))/0xb*(-parseInt(_0x43e33e(0x1c4))/0xc);if(_0x2f7af1===_0x276495)break;else _0x546131['push'](_0x546131['shift']());}catch(_0x1bade7){_0x546131['push'](_0x546131['shift']());}}}(_0xa13d,0xecfa1));exports.AssetCategory = void 0;function _0xa13d(){var _0x305e9e=['6069414hETNjw','Texture','ActorManager','Level','texture','Undefined','undefined','18TZymTz','Error','unloaded','component','4lZXIdh','Actor','Geometry','3804Qvovks','6024892IbYhrv','Code','Loaded','material','error','7041992tSiuNV','Unloaded','Loading','780221CrKbWH','5hpgxqE','2802060CZoWyq','actorManager','92081mJxngM','7DAhOCM','Material','geometry','HTML','html','actor','12706010FOUEZV'];_0xa13d=function(){return _0x305e9e;};return _0xa13d();}(function(_0x207697){var _0x17155a=_0x269c;_0x207697[_0x17155a(0x1c3)]=_0x17155a(0x1b1),_0x207697[_0x17155a(0x1b0)]=_0x17155a(0x1c8),_0x207697[_0x17155a(0x1b7)]=_0x17155a(0x1ba),_0x207697[_0x17155a(0x1c2)]=_0x17155a(0x1b4),_0x207697[_0x17155a(0x1b8)]=_0x17155a(0x1ad),_0x207697[_0x17155a(0x1b9)]='level',_0x207697[_0x17155a(0x1b2)]=_0x17155a(0x1b3),_0x207697[_0x17155a(0x1c6)]='code',_0x207697[_0x17155a(0x1bb)]=_0x17155a(0x1bc);}(exports.AssetCategory||(exports.AssetCategory={})));exports.AssetLoadState = void 0;(function(_0x5ec56e){var _0x50702d=_0x269c;_0x5ec56e[_0x50702d(0x1cb)]=_0x50702d(0x1bf),_0x5ec56e[_0x50702d(0x1cc)]='loading',_0x5ec56e[_0x50702d(0x1c7)]='loaded',_0x5ec56e[_0x50702d(0x1be)]=_0x50702d(0x1c9);}(exports.AssetLoadState||(exports.AssetLoadState={})));function _0x269c(_0x242979,_0x5367f3){_0x242979=_0x242979-0x1aa;var _0xa13d5b=_0xa13d();var _0x269c4a=_0xa13d5b[_0x242979];return _0x269c4a;}exports.ReferenceType = void 0;(function(_0x128757){var _0x2e4514=_0x269c;_0x128757[_0x2e4514(0x1c2)]='actor',_0x128757['Component']=_0x2e4514(0x1c0),_0x128757[_0x2e4514(0x1b0)]=_0x2e4514(0x1c8),_0x128757[_0x2e4514(0x1b9)]='level',_0x128757['AssetPointer']='assetPointer',_0x128757['External']='external';}(exports.ReferenceType||(exports.ReferenceType={})));exports.AssetType = void 0;(function(_0x145a1e){var _0x28139e=_0x269c;_0x145a1e[_0x145a1e[_0x28139e(0x1b1)]=0x1]=_0x28139e(0x1b1),_0x145a1e[_0x145a1e['material']=0x2]=_0x28139e(0x1c8),_0x145a1e[_0x145a1e[_0x28139e(0x1ba)]=0x3]='texture',_0x145a1e[_0x145a1e[_0x28139e(0x1bc)]=-1]=_0x28139e(0x1bc);}(exports.AssetType||(exports.AssetType={})));
|
|
59
59
|
|
|
60
|
-
(function(
|
|
60
|
+
function _0x37a0(){var _0x46570d=['2018790EFcJwy','849510xBemdJ','Block','606288YVUxSs','Box','1319298OqyQzr','WorldDynamic','Camera','Ignore','12OhupBp','Pawn','Trigger','105489MuoCde','1076440FWcKqq','385329obZOCQ','1136ZUVSNW','WorldStatic','Visibility'];_0x37a0=function(){return _0x46570d;};return _0x37a0();}(function(_0x1c90eb,_0x50f9be){var _0x3d1e02=_0x15e8,_0x1fb362=_0x1c90eb();while(!![]){try{var _0x38a915=-parseInt(_0x3d1e02(0x110))/0x1+parseInt(_0x3d1e02(0x112))/0x2+-parseInt(_0x3d1e02(0x10e))/0x3+-parseInt(_0x3d1e02(0x108))/0x4+-parseInt(_0x3d1e02(0x10d))/0x5*(parseInt(_0x3d1e02(0x116))/0x6)+parseInt(_0x3d1e02(0x109))/0x7+parseInt(_0x3d1e02(0x10a))/0x8*(parseInt(_0x3d1e02(0x119))/0x9);if(_0x38a915===_0x50f9be)break;else _0x1fb362['push'](_0x1fb362['shift']());}catch(_0x1c4729){_0x1fb362['push'](_0x1fb362['shift']());}}}(_0x37a0,0x64d42));exports.CollisionResponse = void 0;(function(_0x4faeb1){var _0x5e2e24=_0x15e8;_0x4faeb1[_0x5e2e24(0x115)]=_0x5e2e24(0x115),_0x4faeb1['Overlap']='Overlap',_0x4faeb1[_0x5e2e24(0x10f)]=_0x5e2e24(0x10f);}(exports.CollisionResponse||(exports.CollisionResponse={})));exports.CollisionChannel = void 0;(function(_0x506855){var _0x15442d=_0x15e8;_0x506855[_0x15442d(0x10b)]=_0x15442d(0x10b),_0x506855[_0x15442d(0x113)]=_0x15442d(0x113),_0x506855['Pawn']=_0x15442d(0x117),_0x506855[_0x15442d(0x10c)]=_0x15442d(0x10c),_0x506855[_0x15442d(0x114)]=_0x15442d(0x114),_0x506855[_0x15442d(0x118)]=_0x15442d(0x118);}(exports.CollisionChannel||(exports.CollisionChannel={})));exports.CollisionShapeType = void 0;function _0x15e8(_0x5beaa4,_0xf2ac98){_0x5beaa4=_0x5beaa4-0x108;var _0x37a075=_0x37a0();var _0x15e847=_0x37a075[_0x5beaa4];return _0x15e847;}(function(_0x43254b){var _0x4a8ee6=_0x15e8;_0x43254b['Sphere']='Sphere',_0x43254b[_0x4a8ee6(0x111)]=_0x4a8ee6(0x111);}(exports.CollisionShapeType||(exports.CollisionShapeType={})));
|
|
61
61
|
|
|
62
|
-
const _0xe70b45=_0x4d13;(function(_0x2c70d1,_0x373ac9){const _0x2573b4=_0x4d13,_0x42b621=_0x2c70d1();while(!![]){try{const _0x46de4c=-parseInt(_0x2573b4(0x99))/0x1+-parseInt(_0x2573b4(0xaf))/0x2*(parseInt(_0x2573b4(0xab))/0x3)+parseInt(_0x2573b4(0xaa))/0x4*(-parseInt(_0x2573b4(0xc0))/0x5)+-parseInt(_0x2573b4(0xa2))/0x6*(parseInt(_0x2573b4(0x8a))/0x7)+-parseInt(_0x2573b4(0x9b))/0x8*(-parseInt(_0x2573b4(0xb2))/0x9)+-parseInt(_0x2573b4(0x9d))/0xa+parseInt(_0x2573b4(0xa1))/0xb;if(_0x46de4c===_0x373ac9)break;else _0x42b621['push'](_0x42b621['shift']());}catch(_0x288e3d){_0x42b621['push'](_0x42b621['shift']());}}}(_0x3808,0xe799c));function _0x4d13(_0x1f8e8d,_0x1b433d){_0x1f8e8d=_0x1f8e8d-0x84;const _0x3808b6=_0x3808();let _0x4d13c3=_0x3808b6[_0x1f8e8d];return _0x4d13c3;}function _0x3808(){const _0x1ec000=['getCollisionResponse','max','has','debugDrawEnabled','get','getPairKey','multiplyScalar','10HQlMKR','raycastAll','raycast','tick','generateOverlapEvents','getWorldAABB','sort','computeAabbHit','lineTraceMulti','Ignore','4242049pnCqax','sign','set','length','broadcast','point','lineTraceSingle','function','distance','uuid','min','add','onHitDelegate','filter','colliders','887441NUpRzr','unregisterCollider','3329544oJJErT','from','2542150QUjvxz','Visibility','onEndOverlapDelegate','collisionEnabled','56442529upIZZq','18WqRTHq','getCenter','debugEnabled','intersectRayAabb','previousOverlapPairs','copy','onBeginOverlapDelegate','sub','1634252hYRzWS','843HJndnd','Block','push','normal','8812yFKCww','_debugDrawEnabled','clone','18RBpZBi','clear','generateHitEvents','previousBlockPairs','Overlap','delete','intersectsBox'];_0x3808=function(){return _0x1ec000;};return _0x3808();}class PhysicsWorld{constructor(){const _0x82c10a=_0x4d13;this[_0x82c10a(0x98)]=new Set(),this[_0x82c10a(0xa6)]=new Map(),this[_0x82c10a(0xb5)]=new Map(),this[_0x82c10a(0xb0)]=![];}get[_0xe70b45(0xbc)](){return this['_debugDrawEnabled'];}set[_0xe70b45(0xbc)](_0x22c468){const _0x1a8474=_0xe70b45;if(this[_0x1a8474(0xb0)]===_0x22c468)return;this['_debugDrawEnabled']=_0x22c468;for(const _0x3bb7c8 of this[_0x1a8474(0x98)]){_0x3bb7c8[_0x1a8474(0xa4)]=_0x22c468;}}['registerCollider'](_0x1eace0){const _0x7df221=_0xe70b45;this[_0x7df221(0x98)][_0x7df221(0x95)](_0x1eace0),this[_0x7df221(0xb0)]&&(_0x1eace0[_0x7df221(0xa4)]=!![]);}[_0xe70b45(0x9a)](_0x5133ef){const _0x6e8112=_0xe70b45;this['colliders']['delete'](_0x5133ef);for(const [_0xc00643,_0x21ea2c]of this[_0x6e8112(0xa6)]){(_0x21ea2c[0x0]===_0x5133ef||_0x21ea2c[0x1]===_0x5133ef)&&this['previousOverlapPairs']['delete'](_0xc00643);}for(const [_0x1f7847,_0x3cb40c]of this[_0x6e8112(0xb5)]){(_0x3cb40c[0x0]===_0x5133ef||_0x3cb40c[0x1]===_0x5133ef)&&this[_0x6e8112(0xb5)][_0x6e8112(0xb7)](_0x1f7847);}}['clear'](){const _0x106166=_0xe70b45;this[_0x106166(0x98)]['clear'](),this[_0x106166(0xa6)][_0x106166(0xb3)](),this[_0x106166(0xb5)][_0x106166(0xb3)]();}[_0xe70b45(0x90)](_0x44548c,_0x5648ac,_0x52a097=exports.CollisionChannel[_0xe70b45(0x9e)],_0x5929b4){const _0x3aec7d=_0xe70b45,_0x2f4727=_0x5648ac['clone']()['sub'](_0x44548c),_0x29e485=_0x2f4727[_0x3aec7d(0x8d)]();if(_0x29e485<=0.000001)return null;const _0x96bcc3=_0x2f4727[_0x3aec7d(0xbf)](0x1/_0x29e485);let _0x306cb4=null;for(const _0x3d8c23 of this[_0x3aec7d(0x98)]){if(_0x3d8c23===_0x5929b4)continue;if(!_0x3d8c23['collisionEnabled'])continue;const _0x5c2b01=_0x3d8c23['getCollisionResponse'](_0x52a097);if(_0x5c2b01!==exports.CollisionResponse[_0x3aec7d(0xac)])continue;const _0x26cecd=_0x3d8c23['getWorldAABB'](new webgpu.Box3()),_0x5b9005=this[_0x3aec7d(0xa5)](_0x44548c,_0x96bcc3,_0x29e485,_0x26cecd);if(!_0x5b9005)continue;const _0x69c01f=_0x3d8c23,_0xd795d9=typeof _0x69c01f[_0x3aec7d(0xc2)]==='function'?_0x69c01f[_0x3aec7d(0xc2)](_0x44548c,_0x96bcc3,_0x29e485):_0x5b9005;if(!_0xd795d9)continue;(!_0x306cb4||_0xd795d9['distance']<_0x306cb4[_0x3aec7d(0x92)])&&(_0x306cb4={'collider':_0x3d8c23,'point':_0xd795d9[_0x3aec7d(0x8f)],'normal':_0xd795d9['normal'],'distance':_0xd795d9['distance'],'blocking':!![]});}return _0x306cb4;}[_0xe70b45(0x88)](_0x41a60e,_0x283c12,_0x58b110=exports.CollisionChannel[_0xe70b45(0x9e)],_0x4cf67c){const _0x36e6c2=_0xe70b45,_0x197441=_0x283c12[_0x36e6c2(0xb1)]()[_0x36e6c2(0xa9)](_0x41a60e),_0x1128f0=_0x197441[_0x36e6c2(0x8d)]();if(_0x1128f0<=0.000001)return [];const _0x4652c0=_0x197441[_0x36e6c2(0xbf)](0x1/_0x1128f0),_0x5eb6ff=[];for(const _0x19463f of this['colliders']){if(_0x19463f===_0x4cf67c)continue;if(!_0x19463f['collisionEnabled'])continue;const _0x58ee6b=_0x19463f[_0x36e6c2(0xb9)](_0x58b110);if(_0x58ee6b===exports.CollisionResponse['Ignore'])continue;const _0x28c5e2=_0x19463f[_0x36e6c2(0x85)](new webgpu.Box3()),_0x9a3276=this[_0x36e6c2(0xa5)](_0x41a60e,_0x4652c0,_0x1128f0,_0x28c5e2);if(!_0x9a3276)continue;const _0x560e7b=_0x19463f;if(typeof _0x560e7b[_0x36e6c2(0xc1)]==='function'){const _0x3e57ee=_0x560e7b[_0x36e6c2(0xc1)](_0x41a60e,_0x4652c0,_0x1128f0);for(const _0x215315 of _0x3e57ee){_0x5eb6ff[_0x36e6c2(0xad)]({'collider':_0x19463f,'point':_0x215315[_0x36e6c2(0x8f)],'normal':_0x215315['normal'],'distance':_0x215315[_0x36e6c2(0x92)],'blocking':_0x58ee6b===exports.CollisionResponse[_0x36e6c2(0xac)]});}}else {const _0x77170=typeof _0x560e7b[_0x36e6c2(0xc2)]===_0x36e6c2(0x91)?_0x560e7b['raycast'](_0x41a60e,_0x4652c0,_0x1128f0):_0x9a3276;if(!_0x77170)continue;_0x5eb6ff[_0x36e6c2(0xad)]({'collider':_0x19463f,'point':_0x77170[_0x36e6c2(0x8f)],'normal':_0x77170[_0x36e6c2(0xae)],'distance':_0x77170['distance'],'blocking':_0x58ee6b===exports.CollisionResponse[_0x36e6c2(0xac)]});}}return _0x5eb6ff[_0x36e6c2(0x86)]((_0x38dcb5,_0xfaaf02)=>_0x38dcb5[_0x36e6c2(0x92)]-_0xfaaf02[_0x36e6c2(0x92)]);}[_0xe70b45(0xc3)](_0xc3c33b){const _0x443d90=_0xe70b45,_0x3b77cc=Array[_0x443d90(0x9c)](this[_0x443d90(0x98)])[_0x443d90(0x97)](_0x1cd3ae=>_0x1cd3ae[_0x443d90(0xa0)]),_0x4d7ae7=new Map();for(const _0x102434 of _0x3b77cc){_0x4d7ae7[_0x443d90(0x8c)](_0x102434,_0x102434[_0x443d90(0x85)](new webgpu.Box3()));}const _0x1a93b3=new Map(),_0x29d4f8=new Map();for(let _0x8e4c2e=0x0;_0x8e4c2e<_0x3b77cc[_0x443d90(0x8d)];_0x8e4c2e++){const _0x290fef=_0x3b77cc[_0x8e4c2e],_0x2594bd=_0x4d7ae7['get'](_0x290fef);if(!_0x2594bd)continue;for(let _0xb442af=_0x8e4c2e+0x1;_0xb442af<_0x3b77cc['length'];_0xb442af++){const _0x5bda98=_0x3b77cc[_0xb442af],_0x3b5f8e=_0x4d7ae7['get'](_0x5bda98);if(!_0x3b5f8e)continue;if(!_0x2594bd[_0x443d90(0xb8)](_0x3b5f8e))continue;const _0x3973d8=_0x290fef['getMutualResponse'](_0x5bda98);if(_0x3973d8===exports.CollisionResponse[_0x443d90(0x89)])continue;const _0x215068=this[_0x443d90(0xbe)](_0x290fef,_0x5bda98);_0x3973d8===exports.CollisionResponse[_0x443d90(0xb6)]?_0x1a93b3['set'](_0x215068,[_0x290fef,_0x5bda98]):_0x29d4f8[_0x443d90(0x8c)](_0x215068,[_0x290fef,_0x5bda98]);}}for(const [_0x11eff4,_0x4d29c6]of _0x1a93b3){if(this[_0x443d90(0xa6)]['has'](_0x11eff4))continue;const [_0x142e3d,_0x48c73b]=_0x4d29c6;_0x142e3d[_0x443d90(0x84)]&&_0x142e3d[_0x443d90(0xa8)]['broadcast'](_0x48c73b),_0x48c73b[_0x443d90(0x84)]&&_0x48c73b[_0x443d90(0xa8)][_0x443d90(0x8e)](_0x142e3d);}for(const [_0x1d0ee4,_0x4e1247]of this[_0x443d90(0xa6)]){if(_0x1a93b3[_0x443d90(0xbb)](_0x1d0ee4))continue;const [_0xd84361,_0x224de1]=_0x4e1247;_0xd84361['generateOverlapEvents']&&_0xd84361[_0x443d90(0x9f)]['broadcast'](_0x224de1),_0x224de1[_0x443d90(0x84)]&&_0x224de1[_0x443d90(0x9f)]['broadcast'](_0xd84361);}for(const [_0xf2bdfd,_0x4dcd4a]of _0x29d4f8){if(this[_0x443d90(0xb5)][_0x443d90(0xbb)](_0xf2bdfd))continue;const [_0xdb921f,_0x116e43]=_0x4dcd4a,_0x2a0a3d=_0x4d7ae7['get'](_0xdb921f),_0xdc1381=_0x4d7ae7[_0x443d90(0xbd)](_0x116e43);if(!_0x2a0a3d||!_0xdc1381)continue;const _0x400c41=this[_0x443d90(0x87)](_0xdb921f,_0x116e43,_0x2a0a3d,_0xdc1381);_0xdb921f['generateHitEvents']&&_0xdb921f[_0x443d90(0x96)][_0x443d90(0x8e)](_0x400c41);if(_0x116e43[_0x443d90(0xb4)]){const _0x109974={'self':_0x116e43,'other':_0xdb921f,'point':_0x400c41['point']['clone'](),'normal':_0x400c41[_0x443d90(0xae)]['clone']()[_0x443d90(0xbf)](-1),'penetrationDepth':_0x400c41['penetrationDepth']};_0x116e43[_0x443d90(0x96)]['broadcast'](_0x109974);}}this[_0x443d90(0xa6)]=_0x1a93b3,this[_0x443d90(0xb5)]=_0x29d4f8;}[_0xe70b45(0x87)](_0x4bfbc1,_0x387711,_0x39e270,_0xd55532){const _0xc92273=_0xe70b45,_0x470fda=Math[_0xc92273(0x94)](_0x39e270[_0xc92273(0xba)]['x'],_0xd55532[_0xc92273(0xba)]['x'])-Math['max'](_0x39e270['min']['x'],_0xd55532[_0xc92273(0x94)]['x']),_0x3e93d7=Math[_0xc92273(0x94)](_0x39e270['max']['y'],_0xd55532['max']['y'])-Math[_0xc92273(0xba)](_0x39e270[_0xc92273(0x94)]['y'],_0xd55532['min']['y']),_0x3ead09=Math['min'](_0x39e270[_0xc92273(0xba)]['z'],_0xd55532['max']['z'])-Math['max'](_0x39e270[_0xc92273(0x94)]['z'],_0xd55532['min']['z']);let _0x53712e=_0x470fda,_0x43e0be='x';_0x3e93d7<_0x53712e&&(_0x53712e=_0x3e93d7,_0x43e0be='y');_0x3ead09<_0x53712e&&(_0x53712e=_0x3ead09,_0x43e0be='z');const _0x445514=_0x39e270[_0xc92273(0xa3)](new webgpu.Vector3()),_0x2eb852=_0xd55532['getCenter'](new webgpu.Vector3()),_0x2d45d5=_0x2eb852[_0xc92273(0xb1)]()[_0xc92273(0xa9)](_0x445514),_0x6400e7=new webgpu.Vector3(0x0,0x0,0x0);if(_0x43e0be==='x')_0x6400e7[_0xc92273(0x8c)](Math[_0xc92273(0x8b)](_0x2d45d5['x'])||0x1,0x0,0x0);else _0x43e0be==='y'?_0x6400e7[_0xc92273(0x8c)](0x0,Math[_0xc92273(0x8b)](_0x2d45d5['y'])||0x1,0x0):_0x6400e7['set'](0x0,0x0,Math[_0xc92273(0x8b)](_0x2d45d5['z'])||0x1);const _0x21cd2c=new webgpu.Vector3((Math['max'](_0x39e270['min']['x'],_0xd55532[_0xc92273(0x94)]['x'])+Math[_0xc92273(0x94)](_0x39e270[_0xc92273(0xba)]['x'],_0xd55532[_0xc92273(0xba)]['x']))*0.5,(Math[_0xc92273(0xba)](_0x39e270[_0xc92273(0x94)]['y'],_0xd55532[_0xc92273(0x94)]['y'])+Math[_0xc92273(0x94)](_0x39e270['max']['y'],_0xd55532[_0xc92273(0xba)]['y']))*0.5,(Math[_0xc92273(0xba)](_0x39e270[_0xc92273(0x94)]['z'],_0xd55532[_0xc92273(0x94)]['z'])+Math[_0xc92273(0x94)](_0x39e270[_0xc92273(0xba)]['z'],_0xd55532['max']['z']))*0.5);return {'self':_0x4bfbc1,'other':_0x387711,'point':_0x21cd2c,'normal':_0x6400e7,'penetrationDepth':Math['max'](0x0,_0x53712e)};}[_0xe70b45(0xbe)](_0x112274,_0x4282e0){const _0x4cf656=_0xe70b45;return _0x112274['uuid']<_0x4282e0['uuid']?_0x112274[_0x4cf656(0x93)]+'|'+_0x4282e0[_0x4cf656(0x93)]:_0x4282e0[_0x4cf656(0x93)]+'|'+_0x112274[_0x4cf656(0x93)];}[_0xe70b45(0xa5)](_0x1ff2b2,_0x353793,_0x1a4467,_0x31052b){const _0x3f955b=_0xe70b45;let _0x38e306=0x0,_0x21aa48=_0x1a4467;const _0x518f66=new webgpu.Vector3(0x0,0x0,0x0),_0x4eaecf=1e-8,_0x29c48f=_0x2a148c=>{const _0x43d486=_0x4d13,_0x17daac=_0x1ff2b2[_0x2a148c],_0x1e5d1c=_0x353793[_0x2a148c],_0x137b4c=_0x31052b['min'][_0x2a148c],_0x372ae7=_0x31052b[_0x43d486(0xba)][_0x2a148c];if(Math['abs'](_0x1e5d1c)<_0x4eaecf){if(_0x17daac<_0x137b4c||_0x17daac>_0x372ae7)return ![];return !![];}const _0x35709b=0x1/_0x1e5d1c;let _0x2dbffe,_0x3af7e;const _0x133bfc=new webgpu.Vector3(0x0,0x0,0x0);_0x1e5d1c>=0x0?(_0x2dbffe=(_0x137b4c-_0x17daac)*_0x35709b,_0x3af7e=(_0x372ae7-_0x17daac)*_0x35709b,_0x133bfc[_0x2a148c]=-1):(_0x2dbffe=(_0x372ae7-_0x17daac)*_0x35709b,_0x3af7e=(_0x137b4c-_0x17daac)*_0x35709b,_0x133bfc[_0x2a148c]=0x1);_0x2dbffe>_0x38e306&&(_0x38e306=_0x2dbffe,_0x518f66[_0x43d486(0xa7)](_0x133bfc));_0x3af7e<_0x21aa48&&(_0x21aa48=_0x3af7e);if(_0x38e306>_0x21aa48)return ![];return !![];};if(!_0x29c48f('x')||!_0x29c48f('y')||!_0x29c48f('z'))return null;if(_0x21aa48<0x0)return null;const _0x5069af=Math[_0x3f955b(0xba)](0x0,_0x38e306);if(_0x5069af>_0x1a4467)return null;return {'distance':_0x5069af,'normal':_0x518f66,'point':_0x1ff2b2[_0x3f955b(0xb1)]()[_0x3f955b(0x95)](_0x353793[_0x3f955b(0xb1)]()[_0x3f955b(0xbf)](_0x5069af))};}}
|
|
62
|
+
const _0x5090d8=_0x1911;(function(_0x5d64bd,_0x23a386){const _0x32b834=_0x1911,_0x3f8d64=_0x5d64bd();while(!![]){try{const _0x57ddca=parseInt(_0x32b834(0x9c))/0x1+parseInt(_0x32b834(0x95))/0x2*(-parseInt(_0x32b834(0xc7))/0x3)+-parseInt(_0x32b834(0xa5))/0x4*(parseInt(_0x32b834(0xb0))/0x5)+-parseInt(_0x32b834(0xc1))/0x6+-parseInt(_0x32b834(0x96))/0x7*(parseInt(_0x32b834(0xa4))/0x8)+-parseInt(_0x32b834(0xbd))/0x9+-parseInt(_0x32b834(0xb6))/0xa*(-parseInt(_0x32b834(0xaa))/0xb);if(_0x57ddca===_0x23a386)break;else _0x3f8d64['push'](_0x3f8d64['shift']());}catch(_0x28432c){_0x3f8d64['push'](_0x3f8d64['shift']());}}}(_0x2108,0xf10e2));function _0x1911(_0x187585,_0x501be3){_0x187585=_0x187585-0x94;const _0x2108fb=_0x2108();let _0x19113e=_0x2108fb[_0x187585];return _0x19113e;}function _0x2108(){const _0x466911=['tick','has','1312154FPwmOx','737751vqwyvw','clear','Block','previousOverlapPairs','generateOverlapEvents','push','253301JUDvnn','min','registerCollider','sub','generateHitEvents','penetrationDepth','onEndOverlapDelegate','point','72rogSVV','99936xQOXSf','distance','previousBlockPairs','Overlap','lineTraceMulti','30294506FMdArq','set','broadcast','uuid','lineTraceSingle','unregisterCollider','115CRhJlX','getPairKey','function','getCollisionResponse','Visibility','raycast','20rIMzfg','copy','getCenter','_debugDrawEnabled','Ignore','getWorldAABB','colliders','9727713bAclnt','filter','raycastAll','collisionEnabled','5147106mivxPo','sign','normal','delete','get','abs','6YZjDEU','max','sort','multiplyScalar','clone','getMutualResponse','length','debugEnabled','intersectRayAabb','add'];_0x2108=function(){return _0x466911;};return _0x2108();}class PhysicsWorld{constructor(){const _0xcd6db3=_0x1911;this[_0xcd6db3(0xbc)]=new Set(),this[_0xcd6db3(0x99)]=new Map(),this[_0xcd6db3(0xa7)]=new Map(),this[_0xcd6db3(0xb9)]=![];}get['debugDrawEnabled'](){const _0x89aa4b=_0x1911;return this[_0x89aa4b(0xb9)];}set['debugDrawEnabled'](_0x5dbf5b){const _0x366f7a=_0x1911;if(this[_0x366f7a(0xb9)]===_0x5dbf5b)return;this[_0x366f7a(0xb9)]=_0x5dbf5b;for(const _0x2ba353 of this[_0x366f7a(0xbc)]){_0x2ba353[_0x366f7a(0xce)]=_0x5dbf5b;}}[_0x5090d8(0x9e)](_0x185152){const _0x395d94=_0x5090d8;this['colliders'][_0x395d94(0xd0)](_0x185152),this[_0x395d94(0xb9)]&&(_0x185152[_0x395d94(0xce)]=!![]);}[_0x5090d8(0xaf)](_0x4214ad){const _0x27e50a=_0x5090d8;this['colliders'][_0x27e50a(0xc4)](_0x4214ad);for(const [_0x1f16de,_0x3bb910]of this[_0x27e50a(0x99)]){(_0x3bb910[0x0]===_0x4214ad||_0x3bb910[0x1]===_0x4214ad)&&this[_0x27e50a(0x99)][_0x27e50a(0xc4)](_0x1f16de);}for(const [_0x5936c4,_0x236463]of this[_0x27e50a(0xa7)]){(_0x236463[0x0]===_0x4214ad||_0x236463[0x1]===_0x4214ad)&&this[_0x27e50a(0xa7)]['delete'](_0x5936c4);}}[_0x5090d8(0x97)](){const _0x49a6e6=_0x5090d8;this['colliders'][_0x49a6e6(0x97)](),this[_0x49a6e6(0x99)][_0x49a6e6(0x97)](),this['previousBlockPairs']['clear']();}[_0x5090d8(0xae)](_0x4d7bb8,_0x15af95,_0x39d299=exports.CollisionChannel[_0x5090d8(0xb4)],_0x34fc1e){const _0x3c0712=_0x5090d8,_0x5c9564=_0x15af95['clone']()[_0x3c0712(0x9f)](_0x4d7bb8),_0x3ffa30=_0x5c9564[_0x3c0712(0xcd)]();if(_0x3ffa30<=0.000001)return null;const _0x122f58=_0x5c9564[_0x3c0712(0xca)](0x1/_0x3ffa30);let _0x4c0a46=null;for(const _0x3cbf24 of this[_0x3c0712(0xbc)]){if(_0x3cbf24===_0x34fc1e)continue;if(!_0x3cbf24[_0x3c0712(0xc0)])continue;const _0x5e4de4=_0x3cbf24['getCollisionResponse'](_0x39d299);if(_0x5e4de4!==exports.CollisionResponse[_0x3c0712(0x98)])continue;const _0x2f935f=_0x3cbf24[_0x3c0712(0xbb)](new webgpu.Box3()),_0x1ab1c2=this[_0x3c0712(0xcf)](_0x4d7bb8,_0x122f58,_0x3ffa30,_0x2f935f);if(!_0x1ab1c2)continue;const _0x5b56fb=_0x3cbf24,_0x163488=typeof _0x5b56fb[_0x3c0712(0xb5)]==='function'?_0x5b56fb[_0x3c0712(0xb5)](_0x4d7bb8,_0x122f58,_0x3ffa30):_0x1ab1c2;if(!_0x163488)continue;(!_0x4c0a46||_0x163488[_0x3c0712(0xa6)]<_0x4c0a46[_0x3c0712(0xa6)])&&(_0x4c0a46={'collider':_0x3cbf24,'point':_0x163488[_0x3c0712(0xa3)],'normal':_0x163488[_0x3c0712(0xc3)],'distance':_0x163488[_0x3c0712(0xa6)],'blocking':!![]});}return _0x4c0a46;}[_0x5090d8(0xa9)](_0x152c46,_0x4beb15,_0x47f909=exports.CollisionChannel[_0x5090d8(0xb4)],_0x886686){const _0x5d9366=_0x5090d8,_0x353d17=_0x4beb15[_0x5d9366(0xcb)]()[_0x5d9366(0x9f)](_0x152c46),_0x15dcb0=_0x353d17[_0x5d9366(0xcd)]();if(_0x15dcb0<=0.000001)return [];const _0x5b405b=_0x353d17[_0x5d9366(0xca)](0x1/_0x15dcb0),_0x3677c3=[];for(const _0xd2ad1 of this[_0x5d9366(0xbc)]){if(_0xd2ad1===_0x886686)continue;if(!_0xd2ad1[_0x5d9366(0xc0)])continue;const _0x331b3b=_0xd2ad1[_0x5d9366(0xb3)](_0x47f909);if(_0x331b3b===exports.CollisionResponse[_0x5d9366(0xba)])continue;const _0x451e5b=_0xd2ad1['getWorldAABB'](new webgpu.Box3()),_0x170e1d=this['intersectRayAabb'](_0x152c46,_0x5b405b,_0x15dcb0,_0x451e5b);if(!_0x170e1d)continue;const _0x59fee5=_0xd2ad1;if(typeof _0x59fee5[_0x5d9366(0xbf)]===_0x5d9366(0xb2)){const _0x42993f=_0x59fee5['raycastAll'](_0x152c46,_0x5b405b,_0x15dcb0);for(const _0x4a41d9 of _0x42993f){_0x3677c3[_0x5d9366(0x9b)]({'collider':_0xd2ad1,'point':_0x4a41d9['point'],'normal':_0x4a41d9[_0x5d9366(0xc3)],'distance':_0x4a41d9[_0x5d9366(0xa6)],'blocking':_0x331b3b===exports.CollisionResponse[_0x5d9366(0x98)]});}}else {const _0x4cebe8=typeof _0x59fee5['raycast']===_0x5d9366(0xb2)?_0x59fee5[_0x5d9366(0xb5)](_0x152c46,_0x5b405b,_0x15dcb0):_0x170e1d;if(!_0x4cebe8)continue;_0x3677c3[_0x5d9366(0x9b)]({'collider':_0xd2ad1,'point':_0x4cebe8[_0x5d9366(0xa3)],'normal':_0x4cebe8[_0x5d9366(0xc3)],'distance':_0x4cebe8[_0x5d9366(0xa6)],'blocking':_0x331b3b===exports.CollisionResponse[_0x5d9366(0x98)]});}}return _0x3677c3[_0x5d9366(0xc9)]((_0x378633,_0x1550a8)=>_0x378633[_0x5d9366(0xa6)]-_0x1550a8[_0x5d9366(0xa6)]);}[_0x5090d8(0xd1)](_0x307563){const _0x5ac3a9=_0x5090d8,_0x44c092=Array['from'](this[_0x5ac3a9(0xbc)])[_0x5ac3a9(0xbe)](_0xe817f5=>_0xe817f5[_0x5ac3a9(0xc0)]),_0x411c96=new Map();for(const _0x6acfd5 of _0x44c092){_0x411c96[_0x5ac3a9(0xab)](_0x6acfd5,_0x6acfd5[_0x5ac3a9(0xbb)](new webgpu.Box3()));}const _0x17c45b=new Map(),_0x13ed41=new Map();for(let _0x5c1ce4=0x0;_0x5c1ce4<_0x44c092[_0x5ac3a9(0xcd)];_0x5c1ce4++){const _0x32f43b=_0x44c092[_0x5c1ce4],_0x50315f=_0x411c96[_0x5ac3a9(0xc5)](_0x32f43b);if(!_0x50315f)continue;for(let _0x301202=_0x5c1ce4+0x1;_0x301202<_0x44c092[_0x5ac3a9(0xcd)];_0x301202++){const _0x57ff64=_0x44c092[_0x301202],_0x21254c=_0x411c96[_0x5ac3a9(0xc5)](_0x57ff64);if(!_0x21254c)continue;if(!_0x50315f['intersectsBox'](_0x21254c))continue;const _0x2f1928=_0x32f43b[_0x5ac3a9(0xcc)](_0x57ff64);if(_0x2f1928===exports.CollisionResponse['Ignore'])continue;const _0x4c4244=this['getPairKey'](_0x32f43b,_0x57ff64);_0x2f1928===exports.CollisionResponse[_0x5ac3a9(0xa8)]?_0x17c45b[_0x5ac3a9(0xab)](_0x4c4244,[_0x32f43b,_0x57ff64]):_0x13ed41['set'](_0x4c4244,[_0x32f43b,_0x57ff64]);}}for(const [_0x52da3b,_0x4e6645]of _0x17c45b){if(this['previousOverlapPairs']['has'](_0x52da3b))continue;const [_0x130f89,_0x3a3a82]=_0x4e6645;_0x130f89[_0x5ac3a9(0x9a)]&&_0x130f89['onBeginOverlapDelegate'][_0x5ac3a9(0xac)](_0x3a3a82),_0x3a3a82[_0x5ac3a9(0x9a)]&&_0x3a3a82['onBeginOverlapDelegate']['broadcast'](_0x130f89);}for(const [_0x3d1e61,_0x1319b8]of this['previousOverlapPairs']){if(_0x17c45b[_0x5ac3a9(0x94)](_0x3d1e61))continue;const [_0x3e722f,_0x53003a]=_0x1319b8;_0x3e722f[_0x5ac3a9(0x9a)]&&_0x3e722f[_0x5ac3a9(0xa2)][_0x5ac3a9(0xac)](_0x53003a),_0x53003a[_0x5ac3a9(0x9a)]&&_0x53003a[_0x5ac3a9(0xa2)][_0x5ac3a9(0xac)](_0x3e722f);}for(const [_0x4addad,_0x536cf6]of _0x13ed41){if(this['previousBlockPairs']['has'](_0x4addad))continue;const [_0x39eef5,_0x3eb916]=_0x536cf6,_0x1294fc=_0x411c96['get'](_0x39eef5),_0x5f1072=_0x411c96[_0x5ac3a9(0xc5)](_0x3eb916);if(!_0x1294fc||!_0x5f1072)continue;const _0x4e5c06=this['computeAabbHit'](_0x39eef5,_0x3eb916,_0x1294fc,_0x5f1072);_0x39eef5['generateHitEvents']&&_0x39eef5['onHitDelegate'][_0x5ac3a9(0xac)](_0x4e5c06);if(_0x3eb916[_0x5ac3a9(0xa0)]){const _0x3d9e96={'self':_0x3eb916,'other':_0x39eef5,'point':_0x4e5c06['point'][_0x5ac3a9(0xcb)](),'normal':_0x4e5c06['normal'][_0x5ac3a9(0xcb)]()[_0x5ac3a9(0xca)](-1),'penetrationDepth':_0x4e5c06[_0x5ac3a9(0xa1)]};_0x3eb916['onHitDelegate'][_0x5ac3a9(0xac)](_0x3d9e96);}}this[_0x5ac3a9(0x99)]=_0x17c45b,this[_0x5ac3a9(0xa7)]=_0x13ed41;}['computeAabbHit'](_0x250f55,_0x17dcbb,_0x3dd953,_0x563b42){const _0x24c985=_0x5090d8,_0x59a505=Math[_0x24c985(0x9d)](_0x3dd953[_0x24c985(0xc8)]['x'],_0x563b42[_0x24c985(0xc8)]['x'])-Math[_0x24c985(0xc8)](_0x3dd953[_0x24c985(0x9d)]['x'],_0x563b42[_0x24c985(0x9d)]['x']),_0x105f30=Math[_0x24c985(0x9d)](_0x3dd953[_0x24c985(0xc8)]['y'],_0x563b42[_0x24c985(0xc8)]['y'])-Math[_0x24c985(0xc8)](_0x3dd953['min']['y'],_0x563b42[_0x24c985(0x9d)]['y']),_0x187c2b=Math[_0x24c985(0x9d)](_0x3dd953[_0x24c985(0xc8)]['z'],_0x563b42[_0x24c985(0xc8)]['z'])-Math[_0x24c985(0xc8)](_0x3dd953[_0x24c985(0x9d)]['z'],_0x563b42['min']['z']);let _0x178f51=_0x59a505,_0x94b05b='x';_0x105f30<_0x178f51&&(_0x178f51=_0x105f30,_0x94b05b='y');_0x187c2b<_0x178f51&&(_0x178f51=_0x187c2b,_0x94b05b='z');const _0x3cba97=_0x3dd953[_0x24c985(0xb8)](new webgpu.Vector3()),_0x855af9=_0x563b42[_0x24c985(0xb8)](new webgpu.Vector3()),_0x3b4986=_0x855af9['clone']()[_0x24c985(0x9f)](_0x3cba97),_0x22857e=new webgpu.Vector3(0x0,0x0,0x0);if(_0x94b05b==='x')_0x22857e['set'](Math[_0x24c985(0xc2)](_0x3b4986['x'])||0x1,0x0,0x0);else _0x94b05b==='y'?_0x22857e[_0x24c985(0xab)](0x0,Math[_0x24c985(0xc2)](_0x3b4986['y'])||0x1,0x0):_0x22857e['set'](0x0,0x0,Math[_0x24c985(0xc2)](_0x3b4986['z'])||0x1);const _0x12e625=new webgpu.Vector3((Math[_0x24c985(0xc8)](_0x3dd953[_0x24c985(0x9d)]['x'],_0x563b42[_0x24c985(0x9d)]['x'])+Math['min'](_0x3dd953['max']['x'],_0x563b42[_0x24c985(0xc8)]['x']))*0.5,(Math[_0x24c985(0xc8)](_0x3dd953['min']['y'],_0x563b42[_0x24c985(0x9d)]['y'])+Math[_0x24c985(0x9d)](_0x3dd953['max']['y'],_0x563b42[_0x24c985(0xc8)]['y']))*0.5,(Math['max'](_0x3dd953[_0x24c985(0x9d)]['z'],_0x563b42[_0x24c985(0x9d)]['z'])+Math[_0x24c985(0x9d)](_0x3dd953[_0x24c985(0xc8)]['z'],_0x563b42[_0x24c985(0xc8)]['z']))*0.5);return {'self':_0x250f55,'other':_0x17dcbb,'point':_0x12e625,'normal':_0x22857e,'penetrationDepth':Math[_0x24c985(0xc8)](0x0,_0x178f51)};}[_0x5090d8(0xb1)](_0x2c655f,_0x1187e9){const _0x364cb0=_0x5090d8;return _0x2c655f[_0x364cb0(0xad)]<_0x1187e9[_0x364cb0(0xad)]?_0x2c655f[_0x364cb0(0xad)]+'|'+_0x1187e9['uuid']:_0x1187e9['uuid']+'|'+_0x2c655f[_0x364cb0(0xad)];}[_0x5090d8(0xcf)](_0x13cb7f,_0x2fb8cf,_0x2143af,_0x22ed0a){const _0x51498b=_0x5090d8;let _0x40a794=0x0,_0x2f4496=_0x2143af;const _0xf8d791=new webgpu.Vector3(0x0,0x0,0x0),_0x21aa23=1e-8,_0x44e38b=_0x3080a3=>{const _0x1b09ee=_0x1911,_0x414b73=_0x13cb7f[_0x3080a3],_0x30ce45=_0x2fb8cf[_0x3080a3],_0x15cb61=_0x22ed0a[_0x1b09ee(0x9d)][_0x3080a3],_0x27b756=_0x22ed0a[_0x1b09ee(0xc8)][_0x3080a3];if(Math[_0x1b09ee(0xc6)](_0x30ce45)<_0x21aa23){if(_0x414b73<_0x15cb61||_0x414b73>_0x27b756)return ![];return !![];}const _0x409771=0x1/_0x30ce45;let _0x386e84,_0x1a5d49;const _0x5d02c1=new webgpu.Vector3(0x0,0x0,0x0);_0x30ce45>=0x0?(_0x386e84=(_0x15cb61-_0x414b73)*_0x409771,_0x1a5d49=(_0x27b756-_0x414b73)*_0x409771,_0x5d02c1[_0x3080a3]=-1):(_0x386e84=(_0x27b756-_0x414b73)*_0x409771,_0x1a5d49=(_0x15cb61-_0x414b73)*_0x409771,_0x5d02c1[_0x3080a3]=0x1);_0x386e84>_0x40a794&&(_0x40a794=_0x386e84,_0xf8d791[_0x1b09ee(0xb7)](_0x5d02c1));_0x1a5d49<_0x2f4496&&(_0x2f4496=_0x1a5d49);if(_0x40a794>_0x2f4496)return ![];return !![];};if(!_0x44e38b('x')||!_0x44e38b('y')||!_0x44e38b('z'))return null;if(_0x2f4496<0x0)return null;const _0x5027c6=Math['max'](0x0,_0x40a794);if(_0x5027c6>_0x2143af)return null;return {'distance':_0x5027c6,'normal':_0xf8d791,'point':_0x13cb7f[_0x51498b(0xcb)]()[_0x51498b(0xd0)](_0x2fb8cf['clone']()[_0x51498b(0xca)](_0x5027c6))};}}
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _0x5246dc=_0x4593;(function(_0x344db2,_0x356ce4){var _0x47ecec=_0x4593,_0xa61e2b=_0x344db2();while(!![]){try{var _0xc6c23b=parseInt(_0x47ecec(0x159))/0x1*(-parseInt(_0x47ecec(0x145))/0x2)+parseInt(_0x47ecec(0x14f))/0x3+parseInt(_0x47ecec(0x161))/0x4*(-parseInt(_0x47ecec(0x14e))/0x5)+parseInt(_0x47ecec(0x14a))/0x6*(-parseInt(_0x47ecec(0x15b))/0x7)+-parseInt(_0x47ecec(0x162))/0x8+-parseInt(_0x47ecec(0x14d))/0x9+parseInt(_0x47ecec(0x166))/0xa;if(_0xc6c23b===_0x356ce4)break;else _0xa61e2b['push'](_0xa61e2b['shift']());}catch(_0xe31c4f){_0xa61e2b['push'](_0xa61e2b['shift']());}}}(_0x8164,0x97f60));function _0x4593(_0x1ec459,_0x8e53f9){_0x1ec459=_0x1ec459-0x138;var _0x816445=_0x8164();var _0x4593b7=_0x816445[_0x1ec459];return _0x4593b7;}function _0x8164(){var _0x35f9c4=['tick','addActor','threeObject','scene','delete','add','removeTickableActor','app','27009YlQMGY','target.threeObject\x20is\x20null','949333JQApHQ','_clippingGroup','addActorClipping','getChildActorById','forEach','removeActors','76nqtPVw','3960904jwRnPB','actor.threeObject\x20is\x20null','getActorsByIds','length','35586010KGRtnT','actors','removeActor','_physics','_rootActor','clippingPlanes','children','destroy','addChildActor','physics','scene\x20is\x20null','rootActor\x20is\x20null','tickableActors','controller','levelActorClass','90iMNHZm','markRenderStateDirty','set','rootActor','clear','42bUrkvY','viewport','rootComponent','3765762jYQIYl','7510qgVWCM','511914IZhArC','init'];_0x8164=function(){return _0x35f9c4;};return _0x8164();}class World{get['scene'](){var _0xdb12e8=_0x4593,_0x35a184;let _0x46c642=(_0x35a184=this[_0xdb12e8(0x13a)])===null||_0x35a184===void 0?void 0:_0x35a184['scene'];if(!_0x46c642)throw new Error(_0xdb12e8(0x140));return _0x46c642;}get['viewport'](){var _0x184b69=_0x4593;return this[_0x184b69(0x158)][_0x184b69(0x14b)];}get[_0x5246dc(0x143)](){var _0xc195a3=_0x5246dc;return this[_0xc195a3(0x158)][_0xc195a3(0x143)];}get['rootActor'](){var _0x10e7bb=_0x5246dc;if(!this[_0x10e7bb(0x13a)])throw new Error(_0x10e7bb(0x141));return this[_0x10e7bb(0x13a)];}get[_0x5246dc(0x13f)](){var _0x160cfd=_0x5246dc;return this[_0x160cfd(0x139)];}constructor(_0x353220,_0x1a4089){var _0x447f7d=_0x5246dc;this[_0x447f7d(0x13a)]=null,this[_0x447f7d(0x167)]=new Set(),this[_0x447f7d(0x142)]=new Set(),this['_clippingGroup']=null,this[_0x447f7d(0x158)]=_0x353220,this['worldParam']=_0x1a4089,this[_0x447f7d(0x139)]=new PhysicsWorld();}[_0x5246dc(0x150)](){var _0x5b0c9b=_0x5246dc;this[_0x5b0c9b(0x13a)]=new this['worldParam'][(_0x5b0c9b(0x144))](this[_0x5b0c9b(0x158)]);}['addTickableActor'](_0x2085bc){var _0x4ae87b=_0x5246dc;this[_0x4ae87b(0x142)][_0x4ae87b(0x156)](_0x2085bc);}[_0x5246dc(0x157)](_0x397535){var _0x25b824=_0x5246dc;this[_0x25b824(0x142)][_0x25b824(0x155)](_0x397535);}['tick'](_0x13fd05){var _0x5c8223=_0x5246dc;this[_0x5c8223(0x142)][_0x5c8223(0x15f)](_0x1b2c2f=>{var _0x1005f1=_0x5c8223;_0x1b2c2f[_0x1005f1(0x151)](_0x13fd05);}),this[_0x5c8223(0x139)][_0x5c8223(0x151)](_0x13fd05);}[_0x5246dc(0x13d)](){var _0x25dbb3=_0x5246dc,_0x432e45;this[_0x25dbb3(0x142)]['clear'](),this['_physics'][_0x25dbb3(0x149)](),this[_0x25dbb3(0x167)][_0x25dbb3(0x15f)](_0xf5d353=>{var _0x2bd561=_0x25dbb3;_0xf5d353[_0x2bd561(0x13d)]();}),this['actors'][_0x25dbb3(0x149)](),(_0x432e45=this[_0x25dbb3(0x13a)])===null||_0x432e45===void 0?void 0:_0x432e45[_0x25dbb3(0x13d)](),this[_0x25dbb3(0x13a)]=null;}[_0x5246dc(0x152)](_0x535a3c){var _0x3f3638=_0x5246dc,_0x5667f1;if(!_0x535a3c[_0x3f3638(0x14c)][_0x3f3638(0x153)])throw new Error(_0x3f3638(0x163));_0x535a3c['removeFromParent'](),(_0x5667f1=this['_rootActor'])===null||_0x5667f1===void 0?void 0:_0x5667f1['addChildActor'](_0x535a3c,exports.AttachmentRules['KeepRelative']),this[_0x3f3638(0x167)]['add'](_0x535a3c),_0x535a3c['onAddedToWorld'](this),this['viewport'][_0x3f3638(0x146)]();}[_0x5246dc(0x138)](_0x5681c2){var _0x1a3e3a=_0x5246dc;_0x5681c2['destroy'](),this[_0x1a3e3a(0x167)][_0x1a3e3a(0x155)](_0x5681c2),this[_0x1a3e3a(0x14b)][_0x1a3e3a(0x146)]();}[_0x5246dc(0x160)](_0x1b56dc){var _0x260b8c=_0x5246dc;for(const _0x472010 of _0x1b56dc){_0x472010[_0x260b8c(0x13d)](),this[_0x260b8c(0x167)][_0x260b8c(0x155)](_0x472010);}this[_0x260b8c(0x14b)][_0x260b8c(0x146)]();}['getActorById'](_0x26af75){var _0x1ce752=_0x5246dc;return this[_0x1ce752(0x148)][_0x1ce752(0x15e)](_0x26af75,!![]);}[_0x5246dc(0x164)](_0x289f82){var _0x82ee2f=_0x5246dc;return this[_0x82ee2f(0x148)]['getChildActorsByIds'](_0x289f82,!![]);}[_0x5246dc(0x15d)](_0x5953bd,_0x1ffb74){var _0x3facb3=_0x5246dc;if(!_0x5953bd[_0x3facb3(0x14c)][_0x3facb3(0x153)])throw new Error(_0x3facb3(0x15a));!this['_clippingGroup']&&(this[_0x3facb3(0x15c)]=new webgpu.ClippingGroup(),this[_0x3facb3(0x15c)]['position'][_0x3facb3(0x147)](0x0,0x0,0x0)),this[_0x3facb3(0x15c)][_0x3facb3(0x13b)]=_0x1ffb74,this[_0x3facb3(0x154)]['add'](this['_clippingGroup']),this['_clippingGroup'][_0x3facb3(0x156)](_0x5953bd[_0x3facb3(0x14c)][_0x3facb3(0x153)]);}['removeActorClipping'](_0xe8eb26,_0x4d7933=null){var _0x4ab887=_0x5246dc,_0x5da3eb;if(!this['_clippingGroup'])return;if(!_0xe8eb26[_0x4ab887(0x14c)][_0x4ab887(0x153)])throw new Error('target.threeObject\x20is\x20null');_0x4d7933?_0x4d7933[_0x4ab887(0x13e)](_0xe8eb26,exports.AttachmentRules['KeepRelative']):this[_0x4ab887(0x152)](_0xe8eb26),this['_clippingGroup'][_0x4ab887(0x13c)][_0x4ab887(0x165)]===0x0&&((_0x5da3eb=this[_0x4ab887(0x15c)]['parent'])===null||_0x5da3eb===void 0?void 0:_0x5da3eb['remove'](this['_clippingGroup']),this[_0x4ab887(0x15c)]=null);}}
|
|
65
65
|
|
|
66
|
-
function
|
|
66
|
+
var _0x318c68=_0x29fc;function _0x29fc(_0x48e053,_0x1f5943){_0x48e053=_0x48e053-0x151;var _0x525b5b=_0x525b();var _0x29fc68=_0x525b5b[_0x48e053];return _0x29fc68;}(function(_0x3cf210,_0x539ade){var _0x262f7e=_0x29fc,_0x1ef3a8=_0x3cf210();while(!![]){try{var _0x320ff8=parseInt(_0x262f7e(0x15b))/0x1+-parseInt(_0x262f7e(0x152))/0x2*(-parseInt(_0x262f7e(0x15a))/0x3)+-parseInt(_0x262f7e(0x151))/0x4*(-parseInt(_0x262f7e(0x15c))/0x5)+-parseInt(_0x262f7e(0x159))/0x6+parseInt(_0x262f7e(0x154))/0x7+parseInt(_0x262f7e(0x156))/0x8+-parseInt(_0x262f7e(0x153))/0x9*(parseInt(_0x262f7e(0x158))/0xa);if(_0x320ff8===_0x539ade)break;else _0x1ef3a8['push'](_0x1ef3a8['shift']());}catch(_0x212b34){_0x1ef3a8['push'](_0x1ef3a8['shift']());}}}(_0x525b,0xcb4a7));exports.RendererType = void 0;(function(_0xcd4708){var _0x2b5484=_0x29fc;_0xcd4708[_0xcd4708[_0x2b5484(0x157)]=0x0]=_0x2b5484(0x157),_0xcd4708[_0xcd4708['WebGL']=0x1]=_0x2b5484(0x155);}(exports.RendererType||(exports.RendererType={})));function _0x525b(){var _0x5c65f7=['2721632auVkxJ','WebGPU','170SVjcpO','328308igKyMd','9wYpsIn','1454774qOZSZH','9540rbxufw','8RDUEro','186406pVmJxX','710136PUXbAK','1052534VCpNEO','WebGL'];_0x525b=function(){return _0x5c65f7;};return _0x525b();}const DefaultViewportParam={'elementId':null,'renderer':{'type':exports.RendererType[_0x318c68(0x157)]},'isLabelRendererNeeded':![],'isCSS3DRendererNeeded':![],'isUILayerNeeded':![]};
|
|
67
67
|
|
|
68
|
-
(function(
|
|
68
|
+
function _0x99ec(_0x1c0e3f,_0x472d7c){_0x1c0e3f=_0x1c0e3f-0x133;const _0x5af37d=_0x5af3();let _0x99ecf4=_0x5af37d[_0x1c0e3f];return _0x99ecf4;}(function(_0x5d7797,_0x79588){const _0x545087=_0x99ec,_0x2d7268=_0x5d7797();while(!![]){try{const _0x1e3792=parseInt(_0x545087(0x134))/0x1+-parseInt(_0x545087(0x141))/0x2*(-parseInt(_0x545087(0x136))/0x3)+-parseInt(_0x545087(0x137))/0x4*(parseInt(_0x545087(0x135))/0x5)+parseInt(_0x545087(0x140))/0x6+parseInt(_0x545087(0x13f))/0x7*(-parseInt(_0x545087(0x138))/0x8)+-parseInt(_0x545087(0x13d))/0x9*(-parseInt(_0x545087(0x142))/0xa)+-parseInt(_0x545087(0x13e))/0xb;if(_0x1e3792===_0x79588)break;else _0x2d7268['push'](_0x2d7268['shift']());}catch(_0x3fedd7){_0x2d7268['push'](_0x2d7268['shift']());}}}(_0x5af3,0xa3b3a));function _0x5af3(){const _0x541de7=['5478869zxaCfk','5152pHxUdM','6443118tJcJbH','58426xoLiYG','5670yGBZND','GroundTruthAmbientOcclusion','LensFlare','ScreenSpaceReflection','926634quzSHr','5nOCkDn','30KMAdot','2689292sAFTAn','12632LnIrVX','DepthOfField','Bloom','Antialiasing','Outline','11277zWFccG'];_0x5af3=function(){return _0x541de7;};return _0x5af3();}const DefaultPostProcessParam={'steps':[]};exports.PostProcessStepType = void 0;(function(_0x56c466){const _0x1b93c5=_0x99ec;_0x56c466[_0x56c466[_0x1b93c5(0x13a)]=0x0]=_0x1b93c5(0x13a),_0x56c466[_0x56c466[_0x1b93c5(0x139)]=0x1]=_0x1b93c5(0x139),_0x56c466[_0x56c466[_0x1b93c5(0x133)]=0x2]=_0x1b93c5(0x133),_0x56c466[_0x56c466[_0x1b93c5(0x143)]=0x3]=_0x1b93c5(0x143),_0x56c466[_0x56c466[_0x1b93c5(0x13c)]=0x4]=_0x1b93c5(0x13c),_0x56c466[_0x56c466['Antialiasing']=0x5]=_0x1b93c5(0x13b),_0x56c466[_0x56c466[_0x1b93c5(0x144)]=0x6]=_0x1b93c5(0x144);}(exports.PostProcessStepType||(exports.PostProcessStepType={})));
|
|
69
69
|
|
|
70
|
-
(function(
|
|
70
|
+
(function(_0x1c9cd7,_0x3607d3){const _0x57dd7f=_0x97d4,_0xdb2e73=_0x1c9cd7();while(!![]){try{const _0x5f0dd4=parseInt(_0x57dd7f(0x142))/0x1+parseInt(_0x57dd7f(0x13b))/0x2+-parseInt(_0x57dd7f(0x13d))/0x3*(-parseInt(_0x57dd7f(0x13f))/0x4)+-parseInt(_0x57dd7f(0x13c))/0x5+-parseInt(_0x57dd7f(0x13a))/0x6+-parseInt(_0x57dd7f(0x140))/0x7*(-parseInt(_0x57dd7f(0x141))/0x8)+-parseInt(_0x57dd7f(0x13e))/0x9;if(_0x5f0dd4===_0x3607d3)break;else _0xdb2e73['push'](_0xdb2e73['shift']());}catch(_0x3d2226){_0xdb2e73['push'](_0xdb2e73['shift']());}}}(_0xb5d1,0xe91f1));function _0x97d4(_0x508049,_0x526c46){_0x508049=_0x508049-0x13a;const _0xb5d140=_0xb5d1();let _0x97d496=_0xb5d140[_0x508049];return _0x97d496;}const DefaultBloomParam={'type':exports.PostProcessStepType['Bloom'],'threshold':0x0,'strength':0x1,'radius':0x0};function _0xb5d1(){const _0x5bfd64=['4979562BIfoUS','2187630dnAEfg','4349455NFzuVH','111REJJbg','18011025yBOitg','59288wfnhEl','1324463kxoFQt','64mnuLoU','1500007ujWQwL'];_0xb5d1=function(){return _0x5bfd64;};return _0xb5d1();}
|
|
71
71
|
|
|
72
|
-
(function(
|
|
72
|
+
(function(_0x352e3d,_0x36e08a){const _0x3efa3b=_0x1f8b,_0x5db83f=_0x352e3d();while(!![]){try{const _0xe19df=parseInt(_0x3efa3b(0x1de))/0x1+parseInt(_0x3efa3b(0x1da))/0x2+-parseInt(_0x3efa3b(0x1e1))/0x3*(-parseInt(_0x3efa3b(0x1dc))/0x4)+parseInt(_0x3efa3b(0x1e0))/0x5*(-parseInt(_0x3efa3b(0x1df))/0x6)+-parseInt(_0x3efa3b(0x1db))/0x7+-parseInt(_0x3efa3b(0x1dd))/0x8+parseInt(_0x3efa3b(0x1e2))/0x9;if(_0xe19df===_0x36e08a)break;else _0x5db83f['push'](_0x5db83f['shift']());}catch(_0x477d13){_0x5db83f['push'](_0x5db83f['shift']());}}}(_0x274b,0x45cc2));function _0x1f8b(_0x19c002,_0x351046){_0x19c002=_0x19c002-0x1da;const _0x274b52=_0x274b();let _0x1f8b4c=_0x274b52[_0x19c002];return _0x1f8b4c;}const DefaultDOFParam={'type':exports.PostProcessStepType['DepthOfField'],'focus':0x1f4,'aperture':0x5,'maxblur':0.01};function _0x274b(){const _0x35c895=['18eLPVRA','8247321nEUQlM','232036TFTbqe','2256240WQIFMP','178632SGADpY','4183840DvEKaT','152541CcFWtv','965058wEHEsq','10aBpsXZ'];_0x274b=function(){return _0x35c895;};return _0x274b();}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
(function(_0x1190bb,_0x154e6f){const _0x4ba5f8=_0x4d03,_0x5b883c=_0x1190bb();while(!![]){try{const _0x1a73f0=parseInt(_0x4ba5f8(0x187))/0x1+parseInt(_0x4ba5f8(0x18c))/0x2+-parseInt(_0x4ba5f8(0x188))/0x3*(parseInt(_0x4ba5f8(0x18d))/0x4)+parseInt(_0x4ba5f8(0x18f))/0x5+parseInt(_0x4ba5f8(0x189))/0x6+-parseInt(_0x4ba5f8(0x18e))/0x7+-parseInt(_0x4ba5f8(0x18b))/0x8*(-parseInt(_0x4ba5f8(0x18a))/0x9);if(_0x1a73f0===_0x154e6f)break;else _0x5b883c['push'](_0x5b883c['shift']());}catch(_0x45c4d0){_0x5b883c['push'](_0x5b883c['shift']());}}}(_0x2f5b,0xe71a2));function _0x2f5b(){const _0x131d9b=['286038wbGtoL','3xldbCy','788004VFDByo','3741273yjVOEx','8BCxiSk','887298oFlLry','4283476dhdXkv','4590915qePmOV','6982950AedcNs'];_0x2f5b=function(){return _0x131d9b;};return _0x2f5b();}function _0x4d03(_0x194e3e,_0x26cc05){_0x194e3e=_0x194e3e-0x187;const _0x2f5ba3=_0x2f5b();let _0x4d03a1=_0x2f5ba3[_0x194e3e];return _0x4d03a1;}const DefaultGTAOParam={'type':exports.PostProcessStepType['GroundTruthAmbientOcclusion'],'distanceExponent':0x1,'distanceFallOff':0x1,'radius':0.25,'scale':0x1,'thickness':0x1,'samples':0x10,'useTemporalFiltering':![]};
|
|
75
75
|
|
|
76
|
-
(function(
|
|
76
|
+
function _0x309b(){const _0x572ecf=['77JkmTtF','Outline','2348230SgXZri','765dkRKEV','7660192MKoIxz','19334nXobCp','7kiGUDL','4129926AltZeg','4876PVAIrP','4120587QPgECz','10276992HRJwBn'];_0x309b=function(){return _0x572ecf;};return _0x309b();}function _0x5b83(_0x4bef73,_0x126884){_0x4bef73=_0x4bef73-0xbc;const _0x309b53=_0x309b();let _0x5b83db=_0x309b53[_0x4bef73];return _0x5b83db;}const _0x59aad0=_0x5b83;(function(_0x1a00f6,_0x422775){const _0x130810=_0x5b83,_0xf40a80=_0x1a00f6();while(!![]){try{const _0x34b73f=-parseInt(_0x130810(0xc2))/0x1*(parseInt(_0x130810(0xbc))/0x2)+-parseInt(_0x130810(0xc0))/0x3+parseInt(_0x130810(0xbf))/0x4*(-parseInt(_0x130810(0xc5))/0x5)+-parseInt(_0x130810(0xbe))/0x6*(-parseInt(_0x130810(0xbd))/0x7)+parseInt(_0x130810(0xc6))/0x8+parseInt(_0x130810(0xc1))/0x9+parseInt(_0x130810(0xc4))/0xa;if(_0x34b73f===_0x422775)break;else _0xf40a80['push'](_0xf40a80['shift']());}catch(_0x520368){_0xf40a80['push'](_0xf40a80['shift']());}}}(_0x309b,0xaf551));const DefaultOutlineParams={'type':exports.PostProcessStepType[_0x59aad0(0xc3)],'edgeStrength':0x3,'edgeGlow':0x1,'edgeThickness':0x1,'pulsePeriod':0x0,'visibleEdgeColor':0xffffff,'hiddenEdgeColor':0xffffff};
|
|
77
77
|
|
|
78
|
-
const
|
|
78
|
+
function _0x44e7(_0x6e354,_0x2b8d76){_0x6e354=_0x6e354-0x1a6;const _0x1d7efe=_0x1d7e();let _0x44e77d=_0x1d7efe[_0x6e354];return _0x44e77d;}const _0x2f0906=_0x44e7;(function(_0xdf3691,_0x481de3){const _0xb6ba2c=_0x44e7,_0x4d0889=_0xdf3691();while(!![]){try{const _0x270be2=-parseInt(_0xb6ba2c(0x1b0))/0x1+parseInt(_0xb6ba2c(0x1ae))/0x2+parseInt(_0xb6ba2c(0x1ab))/0x3*(-parseInt(_0xb6ba2c(0x1a7))/0x4)+-parseInt(_0xb6ba2c(0x1ac))/0x5+parseInt(_0xb6ba2c(0x1a6))/0x6+parseInt(_0xb6ba2c(0x1af))/0x7*(-parseInt(_0xb6ba2c(0x1ad))/0x8)+parseInt(_0xb6ba2c(0x1aa))/0x9*(parseInt(_0xb6ba2c(0x1a9))/0xa);if(_0x270be2===_0x481de3)break;else _0x4d0889['push'](_0x4d0889['shift']());}catch(_0x11db93){_0x4d0889['push'](_0x4d0889['shift']());}}}(_0x1d7e,0x27b04));function _0x1d7e(){const _0x5ebab8=['245800HpeYbL','1169BNcKZJ','114555bRYQmT','352260BgDdvt','928kntvRj','LensFlare','210yyHRhD','205704bpIKqO','2871vPrkIf','297855tBZbsW','4928ZNvBZp'];_0x1d7e=function(){return _0x5ebab8;};return _0x1d7e();}const DefaultLensFlareParam={'type':exports.PostProcessStepType[_0x2f0906(0x1a8)],'threshold':0.5,'ghostSamples':0x4,'ghostSpacing':0.25,'ghostAttenuationFactor':0x19,'ghostTint':[0x1,0x1,0x1],'downSampleRatio':0x4};
|
|
79
79
|
|
|
80
|
-
const _0x1fd86c=_0x952e;(function(_0x2e6ce8,_0x12a161){const _0x140c87=_0x952e,_0xf1e9e2=_0x2e6ce8();while(!![]){try{const _0x1069c1=-parseInt(_0x140c87(0x148))/0x1+-parseInt(_0x140c87(0x12d))/0x2*(parseInt(_0x140c87(0x195))/0x3)+-parseInt(_0x140c87(0x157))/0x4+-parseInt(_0x140c87(0x17b))/0x5*(-parseInt(_0x140c87(0x138))/0x6)+-parseInt(_0x140c87(0x13e))/0x7+-parseInt(_0x140c87(0x16b))/0x8+parseInt(_0x140c87(0x15b))/0x9*(parseInt(_0x140c87(0x191))/0xa);if(_0x1069c1===_0x12a161)break;else _0xf1e9e2['push'](_0xf1e9e2['shift']());}catch(_0x8601a){_0xf1e9e2['push'](_0xf1e9e2['shift']());}}}(_0x3570,0x63098));function _0x3570(){const _0x49ef69=['velocity','100070FqOIng','getLUT3DTexture','hiddenEdgeColor','setup','3sKMrLe','maxblur','Bloom','bloomStrength','updateCamera','setLUT3DTexture','smaa','method','thickness','normal','gtaoThickness','bloomEnabled','aperture','buildPipeline','edgeGlowNode','1025438cyoWQl','focalLengthNode','markDirty','set','steps','downSampleRatio','selectedObjects','select','outlineVisibleEdgeColor','useTemporalFiltering','indexOf','693636cqKEio','traa','greaterThan','traaPass','radius','destroy','3111773UHUEkB','add','gtaoRadius','outputNode','outlinePass','outlineEdgeStrength','fxaa','updateSteps','threshold','splice','174182wLKRAV','gtaoPass','fxaaEnabled','setOutlineObjects','ghostAttenuationFactor','bloomThreshold','edgeStrength','lut3dTexture','lensflarePass','depth','div','effectUniforms','DepthOfField','gtaoDistanceExponent','postProcessing','1636856gQzUMo','samples','getViewZNode','visibleEdgeColor','1890JTSRlZ','GroundTruthAmbientOcclusion','Antialiasing','getStepParam','edgeThickness','render','postProcessParam','LensFlare','has','ghostTint','map','ghostSamples','distanceExponent','distanceFallOff','includes','edgeThicknessNode','4940672qPpsCV','bloomPass','scene','outlinePulsePeriod','dofFocus','updateAllUniforms','output','onDirtyCallback','smaaEnabled','Outline','renderer','addOutlineObject','strength','pulsePeriod','outlineObjects','getTextureNode','20sNsEFv','focusDistanceNode','dofPass','camera','outlineEdgeThickness','onBuildFinalNode','ghostSpacing','processing','dofMaxBlur','outlineHiddenEdgeColor','gtaoSamples','edgeGlow','bokehScaleNode','mul','scale','type','removeOutlineObject','value','push','focus','resolutionScale'];_0x3570=function(){return _0x49ef69;};return _0x3570();}function _0x952e(_0x3f73e4,_0x6fa453){_0x3f73e4=_0x3f73e4-0x121;const _0x3570ac=_0x3570();let _0x952e7d=_0x3570ac[_0x3f73e4];return _0x952e7d;}class PostProcessManager{constructor(_0x325b55,_0x24a2ef,_0x14dc8e,_0x5282e3,_0x3b3a56){const _0x90190=_0x952e;this[_0x90190(0x156)]=null,this[_0x90190(0x179)]=[],this[_0x90190(0x153)]=null,this[_0x90190(0x142)]=null,this[_0x90190(0x16c)]=null,this[_0x90190(0x17d)]=null,this[_0x90190(0x149)]=null,this[_0x90190(0x13b)]=null,this[_0x90190(0x150)]=null,this[_0x90190(0x14f)]=null,this['onDirtyCallback']=null,this[_0x90190(0x175)]=_0x325b55,this['scene']=_0x24a2ef,this[_0x90190(0x17e)]=_0x14dc8e,this[_0x90190(0x161)]=Object['assign']({},_0x5282e3),this[_0x90190(0x172)]=_0x3b3a56!==null&&_0x3b3a56!==void 0?_0x3b3a56:null;}get[_0x1fd86c(0x182)](){const _0x4c4e4e=_0x1fd86c;return this[_0x4c4e4e(0x156)];}[_0x1fd86c(0x122)](_0x56d1fb){const _0x3478f6=_0x1fd86c;this[_0x3478f6(0x17e)]=_0x56d1fb,(!this['postProcessing']||!this[_0x3478f6(0x153)])&&(this['buildPipeline'](),this['updateAllUniforms'](),this['markDirty']());}[_0x1fd86c(0x194)](){const _0x5bd1a0=_0x1fd86c;(!this[_0x5bd1a0(0x156)]||!this[_0x5bd1a0(0x153)])&&this['buildPipeline'](),this[_0x5bd1a0(0x170)](),this['markDirty']();}[_0x1fd86c(0x12b)](){const _0x4865f6=_0x1fd86c;var _0x355111,_0x4a210c,_0x437850,_0x5afc79,_0x474c0a;this['postProcessing']&&this[_0x4865f6(0x156)]['dispose']();this[_0x4865f6(0x156)]=new webgpu.PostProcessing(this[_0x4865f6(0x175)]),this[_0x4865f6(0x142)]=null,this[_0x4865f6(0x16c)]=null,this[_0x4865f6(0x17d)]=null,this['gtaoPass']=null,this[_0x4865f6(0x13b)]=null,this[_0x4865f6(0x150)]=null,this[_0x4865f6(0x153)]=this['createEffectUniforms']();const _0x7efa12=new Set(this[_0x4865f6(0x161)]['steps']['map'](_0x5d6950=>_0x5d6950[_0x4865f6(0x18a)])),_0x64c42a=this[_0x4865f6(0x15e)](exports.PostProcessStepType[_0x4865f6(0x15d)]),_0x56b22b=_0x7efa12[_0x4865f6(0x163)](exports.PostProcessStepType[_0x4865f6(0x15c)]),_0x4606b8=(_0x64c42a===null||_0x64c42a===void 0?void 0:_0x64c42a[_0x4865f6(0x125)])===_0x4865f6(0x139),_0xd20332=tsl.pass(this[_0x4865f6(0x16d)],this['camera']);if(_0x56b22b||_0x4606b8){const _0x21b871={'output':tsl.output};if(_0x56b22b)_0x21b871[_0x4865f6(0x127)]=tsl.normalView;if(_0x4606b8)_0x21b871[_0x4865f6(0x190)]=tsl.velocity;_0xd20332['setMRT'](tsl.mrt(_0x21b871));}const _0x1e7d5d=_0xd20332[_0x4865f6(0x17a)](_0x4865f6(0x171)),_0x217863=_0xd20332[_0x4865f6(0x17a)](_0x4865f6(0x151)),_0xa0a968=_0xd20332[_0x4865f6(0x159)](),_0x3b6adb=_0x56b22b?_0xd20332[_0x4865f6(0x17a)](_0x4865f6(0x127)):null,_0x566d96=_0x4606b8?_0xd20332[_0x4865f6(0x17a)](_0x4865f6(0x190)):null,_0x473bb7=this[_0x4865f6(0x153)];let _0x96987c=_0x1e7d5d;const _0x5052d0=_0x7efa12['has'](exports.PostProcessStepType[_0x4865f6(0x197)]),_0x12d852=_0x7efa12[_0x4865f6(0x163)](exports.PostProcessStepType[_0x4865f6(0x162)]);if(_0x5052d0||_0x12d852){const _0x431624=(_0x355111=this['getStepParam'](exports.PostProcessStepType['Bloom']))!==null&&_0x355111!==void 0?_0x355111:DefaultBloomParam;this[_0x4865f6(0x16c)]=BloomNode_js.bloom(_0x1e7d5d),this[_0x4865f6(0x16c)][_0x4865f6(0x146)][_0x4865f6(0x18c)]=_0x431624[_0x4865f6(0x146)],this['bloomPass']['strength'][_0x4865f6(0x18c)]=_0x431624[_0x4865f6(0x177)],this[_0x4865f6(0x16c)][_0x4865f6(0x13c)][_0x4865f6(0x18c)]=_0x431624['radius'];if(_0x5052d0){const _0x4330a5=this['bloomPass'][_0x4865f6(0x188)](_0x473bb7[_0x4865f6(0x121)]);_0x96987c=tsl.vec4(_0x1e7d5d['r'][_0x4865f6(0x13f)](_0x4330a5['r']),_0x1e7d5d['g'][_0x4865f6(0x13f)](_0x4330a5['g']),_0x1e7d5d['b']['add'](_0x4330a5['b']),_0x1e7d5d['a']);}if(_0x12d852){const _0x1a5b60=(_0x4a210c=this[_0x4865f6(0x15e)](exports.PostProcessStepType[_0x4865f6(0x162)]))!==null&&_0x4a210c!==void 0?_0x4a210c:DefaultLensFlareParam;this[_0x4865f6(0x150)]=LensflareNode_js.lensflare(this[_0x4865f6(0x16c)]['getTextureNode'](),{'ghostTint':tsl.vec3(_0x1a5b60['ghostTint'][0x0],_0x1a5b60[_0x4865f6(0x164)][0x1],_0x1a5b60['ghostTint'][0x2]),'threshold':tsl.float(_0x1a5b60[_0x4865f6(0x146)]),'ghostSamples':tsl.float(_0x1a5b60[_0x4865f6(0x166)]),'ghostSpacing':tsl.float(_0x1a5b60[_0x4865f6(0x181)]),'ghostAttenuationFactor':tsl.float(_0x1a5b60[_0x4865f6(0x14c)]),'downSampleRatio':_0x1a5b60[_0x4865f6(0x132)]});const _0x4437b1=this[_0x4865f6(0x150)][_0x4865f6(0x17a)]();_0x96987c=tsl.vec4(_0x96987c['r'][_0x4865f6(0x13f)](_0x4437b1['r']),_0x96987c['g'][_0x4865f6(0x13f)](_0x4437b1['g']),_0x96987c['b'][_0x4865f6(0x13f)](_0x4437b1['b']),_0x96987c['a']);}}if(_0x7efa12[_0x4865f6(0x163)](exports.PostProcessStepType[_0x4865f6(0x154)])){const _0x144948=(_0x437850=this[_0x4865f6(0x15e)](exports.PostProcessStepType[_0x4865f6(0x154)]))!==null&&_0x437850!==void 0?_0x437850:DefaultDOFParam;this['dofPass']=DepthOfFieldNode_js.dof(_0x96987c,_0xa0a968,tsl.uniform(_0x144948[_0x4865f6(0x18e)]),tsl.uniform(_0x144948[_0x4865f6(0x12a)]),tsl.uniform(_0x144948[_0x4865f6(0x196)])),_0x96987c=tsl.vec4(this[_0x4865f6(0x17d)]['r'],this['dofPass']['g'],this['dofPass']['b'],_0x1e7d5d['a']);}if(_0x56b22b&&_0x3b6adb){const _0xb927a0=(_0x5afc79=this[_0x4865f6(0x15e)](exports.PostProcessStepType[_0x4865f6(0x15c)]))!==null&&_0x5afc79!==void 0?_0x5afc79:DefaultGTAOParam;this['gtaoPass']=GTAONode_js.ao(_0x217863,_0x3b6adb,this[_0x4865f6(0x17e)]),this[_0x4865f6(0x149)][_0x4865f6(0x18f)]=0.5,this[_0x4865f6(0x149)]['distanceExponent']['value']=_0xb927a0[_0x4865f6(0x167)],this[_0x4865f6(0x149)][_0x4865f6(0x168)]['value']=_0xb927a0[_0x4865f6(0x168)],this['gtaoPass'][_0x4865f6(0x13c)][_0x4865f6(0x18c)]=_0xb927a0[_0x4865f6(0x13c)],this[_0x4865f6(0x149)][_0x4865f6(0x189)][_0x4865f6(0x18c)]=_0xb927a0[_0x4865f6(0x189)],this['gtaoPass']['thickness'][_0x4865f6(0x18c)]=_0xb927a0[_0x4865f6(0x126)],this['gtaoPass'][_0x4865f6(0x158)][_0x4865f6(0x18c)]=_0xb927a0[_0x4865f6(0x158)],this[_0x4865f6(0x149)][_0x4865f6(0x136)]=_0xb927a0['useTemporalFiltering'];const _0x28edf6=this[_0x4865f6(0x149)][_0x4865f6(0x17a)]()['r'];_0x96987c=tsl.vec4(_0x96987c['r']['mul'](_0x28edf6),_0x96987c['g']['mul'](_0x28edf6),_0x96987c['b'][_0x4865f6(0x188)](_0x28edf6),_0x96987c['a']);}if(_0x7efa12[_0x4865f6(0x163)](exports.PostProcessStepType[_0x4865f6(0x174)])){const _0x4ce811=(_0x474c0a=this[_0x4865f6(0x15e)](exports.PostProcessStepType[_0x4865f6(0x174)]))!==null&&_0x474c0a!==void 0?_0x474c0a:DefaultOutlineParams;this[_0x4865f6(0x142)]=OutlineNode_js.outline(this['scene'],this[_0x4865f6(0x17e)],{'selectedObjects':this[_0x4865f6(0x179)],'edgeGlow':tsl.uniform(_0x4ce811[_0x4865f6(0x186)]),'edgeThickness':tsl.uniform(_0x4ce811['edgeThickness'])});const {visibleEdge:_0x37c92c,hiddenEdge:_0xac165d}=this[_0x4865f6(0x142)],_0x3dcb93=_0x473bb7['outlinePulsePeriod'][_0x4865f6(0x13a)](0x0)[_0x4865f6(0x134)](_0x473bb7[_0x4865f6(0x16e)],tsl.uniform(0x1)),_0x279497=tsl.time[_0x4865f6(0x152)](_0x3dcb93)[_0x4865f6(0x188)](0x2),_0x5b9ecb=tsl.oscSine(_0x279497)[_0x4865f6(0x188)](0.5)[_0x4865f6(0x13f)](0.5),_0x19493e=_0x37c92c[_0x4865f6(0x188)](_0x473bb7['outlineVisibleEdgeColor'])[_0x4865f6(0x13f)](_0xac165d[_0x4865f6(0x188)](_0x473bb7[_0x4865f6(0x184)]))[_0x4865f6(0x188)](_0x473bb7['outlineEdgeStrength']),_0x118cde=_0x473bb7[_0x4865f6(0x16e)]['greaterThan'](0x0),_0x306ac6=_0x118cde[_0x4865f6(0x134)](_0x5b9ecb,tsl.float(0x1));_0x96987c=tsl.vec4(_0x96987c['r']['add'](_0x19493e['r']['mul'](_0x306ac6)),_0x96987c['g'][_0x4865f6(0x13f)](_0x19493e['g']['mul'](_0x306ac6)),_0x96987c['b'][_0x4865f6(0x13f)](_0x19493e['b'][_0x4865f6(0x188)](_0x306ac6)),_0x96987c['a']);}if(_0x64c42a){if(_0x64c42a['method']===_0x4865f6(0x144))_0x96987c=FXAANode_js.fxaa(_0x96987c);else {if(_0x64c42a[_0x4865f6(0x125)]===_0x4865f6(0x124))_0x96987c=SMAANode_js.smaa(_0x96987c);else _0x64c42a['method']===_0x4865f6(0x139)&&_0x566d96&&(this['traaPass']=TRAANode_js.traa(_0x96987c,_0x217863,_0x566d96,this[_0x4865f6(0x17e)]),_0x96987c=this[_0x4865f6(0x13b)][_0x4865f6(0x17a)]());}}_0x96987c=this[_0x4865f6(0x180)](_0x96987c),_0x96987c=tsl.vec4(_0x96987c['r'],_0x96987c['g'],_0x96987c['b'],_0x1e7d5d['a']),this['postProcessing'][_0x4865f6(0x141)]=_0x96987c,this[_0x4865f6(0x156)]['needsUpdate']=!![];}[_0x1fd86c(0x180)](_0x45520e){return _0x45520e;}['createEffectUniforms'](){const _0x27a098=_0x1fd86c;var _0x2b213f,_0x26a825,_0x42a911,_0x54740a;const _0x24aa93=(_0x2b213f=this['getStepParam'](exports.PostProcessStepType[_0x27a098(0x197)]))!==null&&_0x2b213f!==void 0?_0x2b213f:DefaultBloomParam,_0x2ee141=(_0x26a825=this[_0x27a098(0x15e)](exports.PostProcessStepType[_0x27a098(0x154)]))!==null&&_0x26a825!==void 0?_0x26a825:DefaultDOFParam,_0x3ef6fc=(_0x42a911=this[_0x27a098(0x15e)](exports.PostProcessStepType[_0x27a098(0x15c)]))!==null&&_0x42a911!==void 0?_0x42a911:DefaultGTAOParam,_0x54a0ca=(_0x54740a=this[_0x27a098(0x15e)](exports.PostProcessStepType['Outline']))!==null&&_0x54740a!==void 0?_0x54740a:DefaultOutlineParams;return {'bloomEnabled':tsl.uniform(0x0),'bloomStrength':tsl.uniform(_0x24aa93[_0x27a098(0x177)]),'bloomThreshold':tsl.uniform(_0x24aa93[_0x27a098(0x146)]),'bloomRadius':tsl.uniform(_0x24aa93[_0x27a098(0x13c)]),'dofEnabled':tsl.uniform(0x0),'dofFocus':tsl.uniform(_0x2ee141['focus']),'dofAperture':tsl.uniform(_0x2ee141['aperture']),'dofMaxBlur':tsl.uniform(_0x2ee141['maxblur']),'gtaoEnabled':tsl.uniform(0x0),'gtaoScale':tsl.uniform(_0x3ef6fc[_0x27a098(0x189)]),'gtaoDistanceExponent':tsl.uniform(_0x3ef6fc[_0x27a098(0x167)]),'gtaoDistanceFallOff':tsl.uniform(_0x3ef6fc[_0x27a098(0x168)]),'gtaoRadius':tsl.uniform(_0x3ef6fc['radius']),'gtaoThickness':tsl.uniform(_0x3ef6fc[_0x27a098(0x126)]),'gtaoSamples':tsl.uniform(_0x3ef6fc[_0x27a098(0x158)]),'outlineEnabled':tsl.uniform(0x0),'outlineEdgeStrength':tsl.uniform(_0x54a0ca[_0x27a098(0x14e)]),'outlineEdgeGlow':tsl.uniform(_0x54a0ca[_0x27a098(0x186)]),'outlineEdgeThickness':tsl.uniform(_0x54a0ca[_0x27a098(0x15f)]),'outlinePulsePeriod':tsl.uniform(_0x54a0ca[_0x27a098(0x178)]),'outlineVisibleEdgeColor':tsl.uniform(new webgpu.Color(_0x54a0ca['visibleEdgeColor'])),'outlineHiddenEdgeColor':tsl.uniform(new webgpu.Color(_0x54a0ca[_0x27a098(0x193)])),'fxaaEnabled':tsl.uniform(0x0),'smaaEnabled':tsl.uniform(0x0),'lensflareEnabled':tsl.uniform(0x0)};}[_0x1fd86c(0x15e)](_0x54dd5a){const _0xb9fe37=_0x1fd86c;var _0x57dd81;return (_0x57dd81=this[_0xb9fe37(0x161)][_0xb9fe37(0x131)]['find'](_0x4b87d0=>_0x4b87d0['type']===_0x54dd5a))!==null&&_0x57dd81!==void 0?_0x57dd81:null;}[_0x1fd86c(0x170)](){const _0x145a57=_0x1fd86c;if(!this[_0x145a57(0x153)])return;const _0xdd31d6=this[_0x145a57(0x153)],_0x5d6b45=new Set(this[_0x145a57(0x161)]['steps'][_0x145a57(0x165)](_0x54fa66=>_0x54fa66[_0x145a57(0x18a)]));_0xdd31d6[_0x145a57(0x129)][_0x145a57(0x18c)]=_0x5d6b45[_0x145a57(0x163)](exports.PostProcessStepType[_0x145a57(0x197)])?0x1:0x0,_0xdd31d6['dofEnabled'][_0x145a57(0x18c)]=_0x5d6b45[_0x145a57(0x163)](exports.PostProcessStepType['DepthOfField'])?0x1:0x0,_0xdd31d6['gtaoEnabled'][_0x145a57(0x18c)]=_0x5d6b45[_0x145a57(0x163)](exports.PostProcessStepType['GroundTruthAmbientOcclusion'])?0x1:0x0,_0xdd31d6['outlineEnabled']['value']=_0x5d6b45[_0x145a57(0x163)](exports.PostProcessStepType[_0x145a57(0x174)])?0x1:0x0,_0xdd31d6['lensflareEnabled'][_0x145a57(0x18c)]=_0x5d6b45['has'](exports.PostProcessStepType[_0x145a57(0x162)])?0x1:0x0;const _0x37d949=this[_0x145a57(0x15e)](exports.PostProcessStepType['Antialiasing']);_0x37d949?(_0xdd31d6[_0x145a57(0x14a)]['value']=_0x37d949[_0x145a57(0x125)]===_0x145a57(0x144)?0x1:0x0,_0xdd31d6['smaaEnabled'][_0x145a57(0x18c)]=_0x37d949[_0x145a57(0x125)]===_0x145a57(0x124)?0x1:0x0):(_0xdd31d6[_0x145a57(0x14a)][_0x145a57(0x18c)]=0x0,_0xdd31d6[_0x145a57(0x173)][_0x145a57(0x18c)]=0x0);const _0x188170=this[_0x145a57(0x15e)](exports.PostProcessStepType[_0x145a57(0x197)]);_0x188170&&(_0xdd31d6[_0x145a57(0x121)][_0x145a57(0x18c)]=_0x188170[_0x145a57(0x177)],_0xdd31d6[_0x145a57(0x14d)][_0x145a57(0x18c)]=_0x188170[_0x145a57(0x146)],_0xdd31d6['bloomRadius']['value']=_0x188170[_0x145a57(0x13c)],this[_0x145a57(0x16c)]&&(this[_0x145a57(0x16c)]['threshold']['value']=_0x188170['threshold'],this[_0x145a57(0x16c)][_0x145a57(0x177)][_0x145a57(0x18c)]=_0x188170[_0x145a57(0x177)],this[_0x145a57(0x16c)][_0x145a57(0x13c)]['value']=_0x188170[_0x145a57(0x13c)]));const _0x57154c=this['getStepParam'](exports.PostProcessStepType[_0x145a57(0x162)]);if(_0x57154c&&this[_0x145a57(0x150)]);const _0x2e6a75=this['getStepParam'](exports.PostProcessStepType['DepthOfField']);_0x2e6a75&&(_0xdd31d6[_0x145a57(0x16f)][_0x145a57(0x18c)]=_0x2e6a75[_0x145a57(0x18e)],_0xdd31d6['dofAperture']['value']=_0x2e6a75[_0x145a57(0x12a)],_0xdd31d6[_0x145a57(0x183)]['value']=_0x2e6a75[_0x145a57(0x196)],this['dofPass']&&(this[_0x145a57(0x17d)][_0x145a57(0x17c)][_0x145a57(0x18c)]=_0x2e6a75['focus'],this[_0x145a57(0x17d)][_0x145a57(0x12e)][_0x145a57(0x18c)]=_0x2e6a75[_0x145a57(0x12a)],this[_0x145a57(0x17d)][_0x145a57(0x187)][_0x145a57(0x18c)]=_0x2e6a75[_0x145a57(0x196)]));const _0x3e0e1e=this[_0x145a57(0x15e)](exports.PostProcessStepType[_0x145a57(0x15c)]);_0x3e0e1e&&(_0xdd31d6['gtaoScale']['value']=_0x3e0e1e[_0x145a57(0x189)],_0xdd31d6[_0x145a57(0x155)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x167)],_0xdd31d6['gtaoDistanceFallOff']['value']=_0x3e0e1e[_0x145a57(0x168)],_0xdd31d6[_0x145a57(0x140)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x13c)],_0xdd31d6[_0x145a57(0x128)]['value']=_0x3e0e1e[_0x145a57(0x126)],_0xdd31d6[_0x145a57(0x185)]['value']=_0x3e0e1e[_0x145a57(0x158)],this[_0x145a57(0x149)]&&(this[_0x145a57(0x149)][_0x145a57(0x167)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x167)],this[_0x145a57(0x149)][_0x145a57(0x168)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x168)],this[_0x145a57(0x149)][_0x145a57(0x13c)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x13c)],this[_0x145a57(0x149)][_0x145a57(0x189)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x189)],this[_0x145a57(0x149)]['thickness'][_0x145a57(0x18c)]=_0x3e0e1e['thickness'],this[_0x145a57(0x149)][_0x145a57(0x158)][_0x145a57(0x18c)]=_0x3e0e1e[_0x145a57(0x158)],this['gtaoPass'][_0x145a57(0x136)]=_0x3e0e1e['useTemporalFiltering']));const _0x5f566a=this['getStepParam'](exports.PostProcessStepType[_0x145a57(0x174)]);_0x5f566a&&(_0xdd31d6[_0x145a57(0x143)]['value']=_0x5f566a[_0x145a57(0x14e)],_0xdd31d6['outlineEdgeGlow'][_0x145a57(0x18c)]=_0x5f566a[_0x145a57(0x186)],_0xdd31d6[_0x145a57(0x17f)][_0x145a57(0x18c)]=_0x5f566a[_0x145a57(0x15f)],_0xdd31d6[_0x145a57(0x16e)][_0x145a57(0x18c)]=_0x5f566a[_0x145a57(0x178)],_0xdd31d6[_0x145a57(0x135)][_0x145a57(0x18c)][_0x145a57(0x130)](_0x5f566a[_0x145a57(0x15a)]),_0xdd31d6['outlineHiddenEdgeColor'][_0x145a57(0x18c)][_0x145a57(0x130)](_0x5f566a[_0x145a57(0x193)]),this[_0x145a57(0x142)]&&(this[_0x145a57(0x142)][_0x145a57(0x12c)][_0x145a57(0x18c)]=_0x5f566a['edgeGlow'],this[_0x145a57(0x142)][_0x145a57(0x16a)][_0x145a57(0x18c)]=_0x5f566a['edgeThickness'],this[_0x145a57(0x142)][_0x145a57(0x133)]=this[_0x145a57(0x179)]));}[_0x1fd86c(0x145)](_0x50cbb7){const _0x3ffe1e=_0x1fd86c;this[_0x3ffe1e(0x161)]['steps']=_0x50cbb7,this[_0x3ffe1e(0x12b)](),this[_0x3ffe1e(0x170)](),this['markDirty']();}[_0x1fd86c(0x176)](_0x34591f){const _0x136580=_0x1fd86c;!this[_0x136580(0x179)][_0x136580(0x169)](_0x34591f)&&(this[_0x136580(0x179)][_0x136580(0x18d)](_0x34591f),this['outlinePass']&&(this[_0x136580(0x142)]['selectedObjects']=this[_0x136580(0x179)])),this['markDirty']();}[_0x1fd86c(0x14b)](_0x55d146){const _0x52c796=_0x1fd86c;this[_0x52c796(0x179)]['length']=0x0,this[_0x52c796(0x179)][_0x52c796(0x18d)](..._0x55d146),this[_0x52c796(0x142)]&&(this[_0x52c796(0x142)][_0x52c796(0x133)]=this['outlineObjects']),this[_0x52c796(0x12f)]();}[_0x1fd86c(0x18b)](_0x429ff1){const _0x2bcee5=_0x1fd86c,_0x7ab25=this['outlineObjects'][_0x2bcee5(0x137)](_0x429ff1);_0x7ab25>-1&&(this[_0x2bcee5(0x179)][_0x2bcee5(0x147)](_0x7ab25,0x1),this['outlinePass']&&(this[_0x2bcee5(0x142)]['selectedObjects']=this['outlineObjects'])),this['markDirty']();}[_0x1fd86c(0x123)](_0x10a242){const _0x1e7f2b=_0x1fd86c;this[_0x1e7f2b(0x14f)]=_0x10a242,this[_0x1e7f2b(0x12b)](),this[_0x1e7f2b(0x170)](),this['markDirty']();}[_0x1fd86c(0x192)](){return this['lut3dTexture'];}[_0x1fd86c(0x160)](){const _0x5a2e93=_0x1fd86c;if(this[_0x5a2e93(0x156)])return this[_0x5a2e93(0x156)]['render'](),!![];return ![];}[_0x1fd86c(0x13d)](){const _0x1e8d9a=_0x1fd86c;this[_0x1e8d9a(0x179)]=[],this[_0x1e8d9a(0x153)]=null,this[_0x1e8d9a(0x142)]=null,this[_0x1e8d9a(0x16c)]=null,this[_0x1e8d9a(0x17d)]=null,this[_0x1e8d9a(0x149)]=null,this[_0x1e8d9a(0x13b)]=null,this[_0x1e8d9a(0x150)]=null,this[_0x1e8d9a(0x14f)]=null,this[_0x1e8d9a(0x156)]&&(this[_0x1e8d9a(0x156)]['dispose'](),this[_0x1e8d9a(0x156)]=null);}[_0x1fd86c(0x12f)](){this['onDirtyCallback']&&this['onDirtyCallback']();}}
|
|
80
|
+
const _0x338428=_0x1675;(function(_0x1fe2b2,_0x17b4b0){const _0x1fad7f=_0x1675,_0x14135c=_0x1fe2b2();while(!![]){try{const _0x5c2ee7=parseInt(_0x1fad7f(0x1cf))/0x1+-parseInt(_0x1fad7f(0x1bc))/0x2+parseInt(_0x1fad7f(0x208))/0x3+-parseInt(_0x1fad7f(0x220))/0x4+parseInt(_0x1fad7f(0x1ca))/0x5*(parseInt(_0x1fad7f(0x219))/0x6)+-parseInt(_0x1fad7f(0x1b7))/0x7+parseInt(_0x1fad7f(0x1fc))/0x8;if(_0x5c2ee7===_0x17b4b0)break;else _0x14135c['push'](_0x14135c['shift']());}catch(_0x1f33ae){_0x14135c['push'](_0x14135c['shift']());}}}(_0xc8b7,0xa8ce4));function _0xc8b7(){const _0x38039f=['strength','velocity','splice','getViewZNode','fxaaEnabled','DepthOfField','outlinePulsePeriod','onDirtyCallback','destroy','smaa','find','gtaoPass','mul','div','outlineEnabled','Antialiasing','output','focalLengthNode','bloomThreshold','lut3dTexture','outlineEdgeThickness','select','edgeStrength','outlineEdgeGlow','renderer','outlineVisibleEdgeColor','gtaoThickness','camera','depth','lensflarePass','useTemporalFiltering','threshold','Bloom','bloomPass','19287272DFsGqB','samples','add','edgeGlow','outlineEdgeStrength','getLUT3DTexture','set','traa','assign','scene','bloomRadius','processing','1743555dKUpon','dofFocus','setup','visibleEdgeColor','value','updateCamera','map','postProcessParam','pulsePeriod','distanceExponent','createEffectUniforms','method','Outline','setOutlineObjects','radius','outlinePass','gtaoDistanceExponent','6yJAbzA','resolutionScale','gtaoEnabled','render','updateAllUniforms','has','normal','4790420IwbGLi','hiddenEdgeColor','scale','postProcessing','selectedObjects','ghostAttenuationFactor','downSampleRatio','lensflareEnabled','buildPipeline','includes','dispose','getStepParam','steps','bloomEnabled','aperture','outlineHiddenEdgeColor','2357985jEOCJJ','focus','removeOutlineObject','setMRT','bloomStrength','2039018QVepXI','distanceFallOff','outputNode','LensFlare','getTextureNode','ghostTint','bokehScaleNode','maxblur','thickness','edgeThicknessNode','traaPass','focusDistanceNode','dofPass','fxaa','1166985CvGyqD','needsUpdate','edgeThickness','effectUniforms','markDirty','19906XCgaeN','outlineObjects','indexOf','type','GroundTruthAmbientOcclusion','onBuildFinalNode','setLUT3DTexture','length','smaaEnabled','push','gtaoScale'];_0xc8b7=function(){return _0x38039f;};return _0xc8b7();}function _0x1675(_0x567c4e,_0x1bd8c4){_0x567c4e=_0x567c4e-0x1ab;const _0xc8b769=_0xc8b7();let _0x167556=_0xc8b769[_0x567c4e];return _0x167556;}class PostProcessManager{constructor(_0x355492,_0x38b69b,_0x924ee9,_0x132886,_0x18d778){const _0x3324be=_0x1675;this[_0x3324be(0x223)]=null,this['outlineObjects']=[],this['effectUniforms']=null,this[_0x3324be(0x217)]=null,this[_0x3324be(0x1fb)]=null,this[_0x3324be(0x1c8)]=null,this[_0x3324be(0x1e5)]=null,this[_0x3324be(0x1c6)]=null,this['lensflarePass']=null,this[_0x3324be(0x1ed)]=null,this['onDirtyCallback']=null,this[_0x3324be(0x1f2)]=_0x355492,this[_0x3324be(0x205)]=_0x38b69b,this[_0x3324be(0x1f5)]=_0x924ee9,this[_0x3324be(0x20f)]=Object[_0x3324be(0x204)]({},_0x132886),this[_0x3324be(0x1e1)]=_0x18d778!==null&&_0x18d778!==void 0?_0x18d778:null;}get[_0x338428(0x207)](){const _0x4a97c8=_0x338428;return this[_0x4a97c8(0x223)];}[_0x338428(0x20d)](_0x4bd170){const _0x356999=_0x338428;this[_0x356999(0x1f5)]=_0x4bd170,(!this[_0x356999(0x223)]||!this[_0x356999(0x1cd)])&&(this[_0x356999(0x1af)](),this[_0x356999(0x21d)](),this[_0x356999(0x1ce)]());}[_0x338428(0x20a)](){const _0x4cec52=_0x338428;(!this[_0x4cec52(0x223)]||!this['effectUniforms'])&&this[_0x4cec52(0x1af)](),this[_0x4cec52(0x21d)](),this[_0x4cec52(0x1ce)]();}[_0x338428(0x1af)](){const _0x3ae769=_0x338428;var _0x40a43c,_0x4fba9b,_0x1f6b71,_0x39905a,_0x39fb90;this[_0x3ae769(0x223)]&&this['postProcessing']['dispose']();this['postProcessing']=new webgpu.PostProcessing(this[_0x3ae769(0x1f2)]),this[_0x3ae769(0x217)]=null,this[_0x3ae769(0x1fb)]=null,this[_0x3ae769(0x1c8)]=null,this[_0x3ae769(0x1e5)]=null,this[_0x3ae769(0x1c6)]=null,this[_0x3ae769(0x1f7)]=null,this['effectUniforms']=this[_0x3ae769(0x212)]();const _0x34e85b=new Set(this['postProcessParam'][_0x3ae769(0x1b3)][_0x3ae769(0x20e)](_0x5832ed=>_0x5832ed['type'])),_0x138374=this[_0x3ae769(0x1b2)](exports.PostProcessStepType[_0x3ae769(0x1e9)]),_0x1b0459=_0x34e85b[_0x3ae769(0x21e)](exports.PostProcessStepType[_0x3ae769(0x1d3)]),_0x5ada93=(_0x138374===null||_0x138374===void 0?void 0:_0x138374['method'])==='traa',_0x2b8e85=tsl.pass(this[_0x3ae769(0x205)],this[_0x3ae769(0x1f5)]);if(_0x1b0459||_0x5ada93){const _0x58a11e={'output':tsl.output};if(_0x1b0459)_0x58a11e[_0x3ae769(0x21f)]=tsl.normalView;if(_0x5ada93)_0x58a11e[_0x3ae769(0x1db)]=tsl.velocity;_0x2b8e85[_0x3ae769(0x1ba)](tsl.mrt(_0x58a11e));}const _0x203ea0=_0x2b8e85[_0x3ae769(0x1c0)](_0x3ae769(0x1ea)),_0x376177=_0x2b8e85['getTextureNode'](_0x3ae769(0x1f6)),_0x2e919b=_0x2b8e85[_0x3ae769(0x1dd)](),_0x5d528e=_0x1b0459?_0x2b8e85[_0x3ae769(0x1c0)](_0x3ae769(0x21f)):null,_0x346b10=_0x5ada93?_0x2b8e85[_0x3ae769(0x1c0)](_0x3ae769(0x1db)):null,_0x217de7=this[_0x3ae769(0x1cd)];let _0x5b7eca=_0x203ea0;const _0x17122e=_0x34e85b[_0x3ae769(0x21e)](exports.PostProcessStepType['Bloom']),_0x3e1323=_0x34e85b[_0x3ae769(0x21e)](exports.PostProcessStepType['LensFlare']);if(_0x17122e||_0x3e1323){const _0x26775d=(_0x40a43c=this[_0x3ae769(0x1b2)](exports.PostProcessStepType[_0x3ae769(0x1fa)]))!==null&&_0x40a43c!==void 0?_0x40a43c:DefaultBloomParam;this[_0x3ae769(0x1fb)]=BloomNode_js.bloom(_0x203ea0),this[_0x3ae769(0x1fb)][_0x3ae769(0x1f9)][_0x3ae769(0x20c)]=_0x26775d[_0x3ae769(0x1f9)],this[_0x3ae769(0x1fb)][_0x3ae769(0x1da)][_0x3ae769(0x20c)]=_0x26775d['strength'],this[_0x3ae769(0x1fb)][_0x3ae769(0x216)][_0x3ae769(0x20c)]=_0x26775d['radius'];if(_0x17122e){const _0x440bd7=this['bloomPass'][_0x3ae769(0x1e6)](_0x217de7[_0x3ae769(0x1bb)]);_0x5b7eca=tsl.vec4(_0x203ea0['r']['add'](_0x440bd7['r']),_0x203ea0['g']['add'](_0x440bd7['g']),_0x203ea0['b'][_0x3ae769(0x1fe)](_0x440bd7['b']),_0x203ea0['a']);}if(_0x3e1323){const _0x465cb0=(_0x4fba9b=this[_0x3ae769(0x1b2)](exports.PostProcessStepType[_0x3ae769(0x1bf)]))!==null&&_0x4fba9b!==void 0?_0x4fba9b:DefaultLensFlareParam;this[_0x3ae769(0x1f7)]=LensflareNode_js.lensflare(this[_0x3ae769(0x1fb)][_0x3ae769(0x1c0)](),{'ghostTint':tsl.vec3(_0x465cb0['ghostTint'][0x0],_0x465cb0['ghostTint'][0x1],_0x465cb0[_0x3ae769(0x1c1)][0x2]),'threshold':tsl.float(_0x465cb0['threshold']),'ghostSamples':tsl.float(_0x465cb0['ghostSamples']),'ghostSpacing':tsl.float(_0x465cb0['ghostSpacing']),'ghostAttenuationFactor':tsl.float(_0x465cb0[_0x3ae769(0x1ac)]),'downSampleRatio':_0x465cb0[_0x3ae769(0x1ad)]});const _0x16409e=this[_0x3ae769(0x1f7)][_0x3ae769(0x1c0)]();_0x5b7eca=tsl.vec4(_0x5b7eca['r'][_0x3ae769(0x1fe)](_0x16409e['r']),_0x5b7eca['g']['add'](_0x16409e['g']),_0x5b7eca['b'][_0x3ae769(0x1fe)](_0x16409e['b']),_0x5b7eca['a']);}}if(_0x34e85b[_0x3ae769(0x21e)](exports.PostProcessStepType[_0x3ae769(0x1df)])){const _0x40b2b1=(_0x1f6b71=this['getStepParam'](exports.PostProcessStepType[_0x3ae769(0x1df)]))!==null&&_0x1f6b71!==void 0?_0x1f6b71:DefaultDOFParam;this['dofPass']=DepthOfFieldNode_js.dof(_0x5b7eca,_0x2e919b,tsl.uniform(_0x40b2b1['focus']),tsl.uniform(_0x40b2b1['aperture']),tsl.uniform(_0x40b2b1['maxblur'])),_0x5b7eca=tsl.vec4(this[_0x3ae769(0x1c8)]['r'],this[_0x3ae769(0x1c8)]['g'],this['dofPass']['b'],_0x203ea0['a']);}if(_0x1b0459&&_0x5d528e){const _0x46cbc5=(_0x39905a=this[_0x3ae769(0x1b2)](exports.PostProcessStepType[_0x3ae769(0x1d3)]))!==null&&_0x39905a!==void 0?_0x39905a:DefaultGTAOParam;this[_0x3ae769(0x1e5)]=GTAONode_js.ao(_0x376177,_0x5d528e,this[_0x3ae769(0x1f5)]),this[_0x3ae769(0x1e5)][_0x3ae769(0x21a)]=0.5,this[_0x3ae769(0x1e5)][_0x3ae769(0x211)][_0x3ae769(0x20c)]=_0x46cbc5[_0x3ae769(0x211)],this[_0x3ae769(0x1e5)]['distanceFallOff'][_0x3ae769(0x20c)]=_0x46cbc5['distanceFallOff'],this[_0x3ae769(0x1e5)][_0x3ae769(0x216)][_0x3ae769(0x20c)]=_0x46cbc5[_0x3ae769(0x216)],this[_0x3ae769(0x1e5)][_0x3ae769(0x222)][_0x3ae769(0x20c)]=_0x46cbc5[_0x3ae769(0x222)],this['gtaoPass']['thickness'][_0x3ae769(0x20c)]=_0x46cbc5[_0x3ae769(0x1c4)],this[_0x3ae769(0x1e5)]['samples'][_0x3ae769(0x20c)]=_0x46cbc5[_0x3ae769(0x1fd)],this[_0x3ae769(0x1e5)][_0x3ae769(0x1f8)]=_0x46cbc5['useTemporalFiltering'];const _0x483e75=this[_0x3ae769(0x1e5)][_0x3ae769(0x1c0)]()['r'];_0x5b7eca=tsl.vec4(_0x5b7eca['r'][_0x3ae769(0x1e6)](_0x483e75),_0x5b7eca['g'][_0x3ae769(0x1e6)](_0x483e75),_0x5b7eca['b'][_0x3ae769(0x1e6)](_0x483e75),_0x5b7eca['a']);}if(_0x34e85b[_0x3ae769(0x21e)](exports.PostProcessStepType[_0x3ae769(0x214)])){const _0x4c0500=(_0x39fb90=this[_0x3ae769(0x1b2)](exports.PostProcessStepType['Outline']))!==null&&_0x39fb90!==void 0?_0x39fb90:DefaultOutlineParams;this[_0x3ae769(0x217)]=OutlineNode_js.outline(this['scene'],this['camera'],{'selectedObjects':this[_0x3ae769(0x1d0)],'edgeGlow':tsl.uniform(_0x4c0500[_0x3ae769(0x1ff)]),'edgeThickness':tsl.uniform(_0x4c0500[_0x3ae769(0x1cc)])});const {visibleEdge:_0x19123d,hiddenEdge:_0x539e4f}=this['outlinePass'],_0x4716a8=_0x217de7[_0x3ae769(0x1e0)]['greaterThan'](0x0)[_0x3ae769(0x1ef)](_0x217de7[_0x3ae769(0x1e0)],tsl.uniform(0x1)),_0xdb61c1=tsl.time[_0x3ae769(0x1e7)](_0x4716a8)[_0x3ae769(0x1e6)](0x2),_0x1b9d03=tsl.oscSine(_0xdb61c1)[_0x3ae769(0x1e6)](0.5)['add'](0.5),_0x21d5d1=_0x19123d[_0x3ae769(0x1e6)](_0x217de7[_0x3ae769(0x1f3)])['add'](_0x539e4f[_0x3ae769(0x1e6)](_0x217de7[_0x3ae769(0x1b6)]))[_0x3ae769(0x1e6)](_0x217de7[_0x3ae769(0x200)]),_0x1c2d0a=_0x217de7[_0x3ae769(0x1e0)]['greaterThan'](0x0),_0xe69448=_0x1c2d0a['select'](_0x1b9d03,tsl.float(0x1));_0x5b7eca=tsl.vec4(_0x5b7eca['r'][_0x3ae769(0x1fe)](_0x21d5d1['r']['mul'](_0xe69448)),_0x5b7eca['g']['add'](_0x21d5d1['g'][_0x3ae769(0x1e6)](_0xe69448)),_0x5b7eca['b']['add'](_0x21d5d1['b'][_0x3ae769(0x1e6)](_0xe69448)),_0x5b7eca['a']);}if(_0x138374){if(_0x138374[_0x3ae769(0x213)]===_0x3ae769(0x1c9))_0x5b7eca=FXAANode_js.fxaa(_0x5b7eca);else {if(_0x138374[_0x3ae769(0x213)]===_0x3ae769(0x1e3))_0x5b7eca=SMAANode_js.smaa(_0x5b7eca);else _0x138374['method']===_0x3ae769(0x203)&&_0x346b10&&(this[_0x3ae769(0x1c6)]=TRAANode_js.traa(_0x5b7eca,_0x376177,_0x346b10,this[_0x3ae769(0x1f5)]),_0x5b7eca=this[_0x3ae769(0x1c6)][_0x3ae769(0x1c0)]());}}_0x5b7eca=this['onBuildFinalNode'](_0x5b7eca),_0x5b7eca=tsl.vec4(_0x5b7eca['r'],_0x5b7eca['g'],_0x5b7eca['b'],_0x203ea0['a']),this['postProcessing'][_0x3ae769(0x1be)]=_0x5b7eca,this[_0x3ae769(0x223)][_0x3ae769(0x1cb)]=!![];}[_0x338428(0x1d4)](_0x10879f){return _0x10879f;}[_0x338428(0x212)](){const _0x1061d2=_0x338428;var _0x3c6637,_0x36e1b6,_0x4529ac,_0x4cc082;const _0x136271=(_0x3c6637=this['getStepParam'](exports.PostProcessStepType[_0x1061d2(0x1fa)]))!==null&&_0x3c6637!==void 0?_0x3c6637:DefaultBloomParam,_0xd115ed=(_0x36e1b6=this['getStepParam'](exports.PostProcessStepType[_0x1061d2(0x1df)]))!==null&&_0x36e1b6!==void 0?_0x36e1b6:DefaultDOFParam,_0x5c14dd=(_0x4529ac=this['getStepParam'](exports.PostProcessStepType[_0x1061d2(0x1d3)]))!==null&&_0x4529ac!==void 0?_0x4529ac:DefaultGTAOParam,_0x10c049=(_0x4cc082=this['getStepParam'](exports.PostProcessStepType[_0x1061d2(0x214)]))!==null&&_0x4cc082!==void 0?_0x4cc082:DefaultOutlineParams;return {'bloomEnabled':tsl.uniform(0x0),'bloomStrength':tsl.uniform(_0x136271[_0x1061d2(0x1da)]),'bloomThreshold':tsl.uniform(_0x136271['threshold']),'bloomRadius':tsl.uniform(_0x136271['radius']),'dofEnabled':tsl.uniform(0x0),'dofFocus':tsl.uniform(_0xd115ed['focus']),'dofAperture':tsl.uniform(_0xd115ed[_0x1061d2(0x1b5)]),'dofMaxBlur':tsl.uniform(_0xd115ed[_0x1061d2(0x1c3)]),'gtaoEnabled':tsl.uniform(0x0),'gtaoScale':tsl.uniform(_0x5c14dd[_0x1061d2(0x222)]),'gtaoDistanceExponent':tsl.uniform(_0x5c14dd[_0x1061d2(0x211)]),'gtaoDistanceFallOff':tsl.uniform(_0x5c14dd['distanceFallOff']),'gtaoRadius':tsl.uniform(_0x5c14dd['radius']),'gtaoThickness':tsl.uniform(_0x5c14dd[_0x1061d2(0x1c4)]),'gtaoSamples':tsl.uniform(_0x5c14dd[_0x1061d2(0x1fd)]),'outlineEnabled':tsl.uniform(0x0),'outlineEdgeStrength':tsl.uniform(_0x10c049[_0x1061d2(0x1f0)]),'outlineEdgeGlow':tsl.uniform(_0x10c049[_0x1061d2(0x1ff)]),'outlineEdgeThickness':tsl.uniform(_0x10c049[_0x1061d2(0x1cc)]),'outlinePulsePeriod':tsl.uniform(_0x10c049[_0x1061d2(0x210)]),'outlineVisibleEdgeColor':tsl.uniform(new webgpu.Color(_0x10c049[_0x1061d2(0x20b)])),'outlineHiddenEdgeColor':tsl.uniform(new webgpu.Color(_0x10c049[_0x1061d2(0x221)])),'fxaaEnabled':tsl.uniform(0x0),'smaaEnabled':tsl.uniform(0x0),'lensflareEnabled':tsl.uniform(0x0)};}[_0x338428(0x1b2)](_0x2afd88){const _0xd0a48e=_0x338428;var _0xb1091e;return (_0xb1091e=this[_0xd0a48e(0x20f)][_0xd0a48e(0x1b3)][_0xd0a48e(0x1e4)](_0x425a1d=>_0x425a1d['type']===_0x2afd88))!==null&&_0xb1091e!==void 0?_0xb1091e:null;}['updateAllUniforms'](){const _0x4c6700=_0x338428;if(!this['effectUniforms'])return;const _0x555cde=this['effectUniforms'],_0x39cc09=new Set(this['postProcessParam'][_0x4c6700(0x1b3)]['map'](_0x1d6a39=>_0x1d6a39[_0x4c6700(0x1d2)]));_0x555cde[_0x4c6700(0x1b4)][_0x4c6700(0x20c)]=_0x39cc09[_0x4c6700(0x21e)](exports.PostProcessStepType['Bloom'])?0x1:0x0,_0x555cde['dofEnabled']['value']=_0x39cc09[_0x4c6700(0x21e)](exports.PostProcessStepType[_0x4c6700(0x1df)])?0x1:0x0,_0x555cde[_0x4c6700(0x21b)][_0x4c6700(0x20c)]=_0x39cc09[_0x4c6700(0x21e)](exports.PostProcessStepType[_0x4c6700(0x1d3)])?0x1:0x0,_0x555cde[_0x4c6700(0x1e8)][_0x4c6700(0x20c)]=_0x39cc09['has'](exports.PostProcessStepType[_0x4c6700(0x214)])?0x1:0x0,_0x555cde[_0x4c6700(0x1ae)][_0x4c6700(0x20c)]=_0x39cc09[_0x4c6700(0x21e)](exports.PostProcessStepType[_0x4c6700(0x1bf)])?0x1:0x0;const _0x3fd286=this[_0x4c6700(0x1b2)](exports.PostProcessStepType[_0x4c6700(0x1e9)]);_0x3fd286?(_0x555cde[_0x4c6700(0x1de)][_0x4c6700(0x20c)]=_0x3fd286[_0x4c6700(0x213)]===_0x4c6700(0x1c9)?0x1:0x0,_0x555cde[_0x4c6700(0x1d7)]['value']=_0x3fd286[_0x4c6700(0x213)]==='smaa'?0x1:0x0):(_0x555cde[_0x4c6700(0x1de)]['value']=0x0,_0x555cde[_0x4c6700(0x1d7)][_0x4c6700(0x20c)]=0x0);const _0x46ce41=this[_0x4c6700(0x1b2)](exports.PostProcessStepType[_0x4c6700(0x1fa)]);_0x46ce41&&(_0x555cde[_0x4c6700(0x1bb)][_0x4c6700(0x20c)]=_0x46ce41[_0x4c6700(0x1da)],_0x555cde[_0x4c6700(0x1ec)][_0x4c6700(0x20c)]=_0x46ce41[_0x4c6700(0x1f9)],_0x555cde[_0x4c6700(0x206)][_0x4c6700(0x20c)]=_0x46ce41['radius'],this[_0x4c6700(0x1fb)]&&(this['bloomPass']['threshold'][_0x4c6700(0x20c)]=_0x46ce41[_0x4c6700(0x1f9)],this[_0x4c6700(0x1fb)][_0x4c6700(0x1da)][_0x4c6700(0x20c)]=_0x46ce41[_0x4c6700(0x1da)],this['bloomPass'][_0x4c6700(0x216)]['value']=_0x46ce41['radius']));const _0x111507=this['getStepParam'](exports.PostProcessStepType['LensFlare']);if(_0x111507&&this['lensflarePass']);const _0x208491=this[_0x4c6700(0x1b2)](exports.PostProcessStepType[_0x4c6700(0x1df)]);_0x208491&&(_0x555cde[_0x4c6700(0x209)]['value']=_0x208491[_0x4c6700(0x1b8)],_0x555cde['dofAperture'][_0x4c6700(0x20c)]=_0x208491[_0x4c6700(0x1b5)],_0x555cde['dofMaxBlur'][_0x4c6700(0x20c)]=_0x208491[_0x4c6700(0x1c3)],this[_0x4c6700(0x1c8)]&&(this['dofPass'][_0x4c6700(0x1c7)]['value']=_0x208491[_0x4c6700(0x1b8)],this[_0x4c6700(0x1c8)][_0x4c6700(0x1eb)]['value']=_0x208491[_0x4c6700(0x1b5)],this['dofPass'][_0x4c6700(0x1c2)][_0x4c6700(0x20c)]=_0x208491[_0x4c6700(0x1c3)]));const _0x4041e4=this[_0x4c6700(0x1b2)](exports.PostProcessStepType[_0x4c6700(0x1d3)]);_0x4041e4&&(_0x555cde[_0x4c6700(0x1d9)][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x222)],_0x555cde[_0x4c6700(0x218)]['value']=_0x4041e4[_0x4c6700(0x211)],_0x555cde['gtaoDistanceFallOff'][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x1bd)],_0x555cde['gtaoRadius'][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x216)],_0x555cde[_0x4c6700(0x1f4)]['value']=_0x4041e4['thickness'],_0x555cde['gtaoSamples'][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x1fd)],this[_0x4c6700(0x1e5)]&&(this['gtaoPass']['distanceExponent']['value']=_0x4041e4[_0x4c6700(0x211)],this[_0x4c6700(0x1e5)][_0x4c6700(0x1bd)][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x1bd)],this['gtaoPass'][_0x4c6700(0x216)][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x216)],this['gtaoPass'][_0x4c6700(0x222)][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x222)],this['gtaoPass'][_0x4c6700(0x1c4)][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x1c4)],this[_0x4c6700(0x1e5)]['samples'][_0x4c6700(0x20c)]=_0x4041e4[_0x4c6700(0x1fd)],this['gtaoPass']['useTemporalFiltering']=_0x4041e4[_0x4c6700(0x1f8)]));const _0xc0cca5=this[_0x4c6700(0x1b2)](exports.PostProcessStepType[_0x4c6700(0x214)]);_0xc0cca5&&(_0x555cde['outlineEdgeStrength'][_0x4c6700(0x20c)]=_0xc0cca5[_0x4c6700(0x1f0)],_0x555cde[_0x4c6700(0x1f1)]['value']=_0xc0cca5[_0x4c6700(0x1ff)],_0x555cde[_0x4c6700(0x1ee)][_0x4c6700(0x20c)]=_0xc0cca5[_0x4c6700(0x1cc)],_0x555cde['outlinePulsePeriod']['value']=_0xc0cca5['pulsePeriod'],_0x555cde[_0x4c6700(0x1f3)][_0x4c6700(0x20c)]['set'](_0xc0cca5['visibleEdgeColor']),_0x555cde[_0x4c6700(0x1b6)][_0x4c6700(0x20c)][_0x4c6700(0x202)](_0xc0cca5[_0x4c6700(0x221)]),this[_0x4c6700(0x217)]&&(this[_0x4c6700(0x217)]['edgeGlowNode'][_0x4c6700(0x20c)]=_0xc0cca5[_0x4c6700(0x1ff)],this[_0x4c6700(0x217)][_0x4c6700(0x1c5)][_0x4c6700(0x20c)]=_0xc0cca5[_0x4c6700(0x1cc)],this[_0x4c6700(0x217)]['selectedObjects']=this[_0x4c6700(0x1d0)]));}['updateSteps'](_0x534e13){const _0x7962ad=_0x338428;this[_0x7962ad(0x20f)][_0x7962ad(0x1b3)]=_0x534e13,this[_0x7962ad(0x1af)](),this[_0x7962ad(0x21d)](),this[_0x7962ad(0x1ce)]();}['addOutlineObject'](_0x51e4d6){const _0x2d56ad=_0x338428;!this[_0x2d56ad(0x1d0)][_0x2d56ad(0x1b0)](_0x51e4d6)&&(this[_0x2d56ad(0x1d0)][_0x2d56ad(0x1d8)](_0x51e4d6),this[_0x2d56ad(0x217)]&&(this[_0x2d56ad(0x217)][_0x2d56ad(0x1ab)]=this['outlineObjects'])),this[_0x2d56ad(0x1ce)]();}[_0x338428(0x215)](_0xb7c048){const _0x6c0984=_0x338428;this['outlineObjects'][_0x6c0984(0x1d6)]=0x0,this['outlineObjects']['push'](..._0xb7c048),this['outlinePass']&&(this[_0x6c0984(0x217)][_0x6c0984(0x1ab)]=this[_0x6c0984(0x1d0)]),this['markDirty']();}[_0x338428(0x1b9)](_0x4bb5cd){const _0x5b50ad=_0x338428,_0x337beb=this[_0x5b50ad(0x1d0)][_0x5b50ad(0x1d1)](_0x4bb5cd);_0x337beb>-1&&(this[_0x5b50ad(0x1d0)][_0x5b50ad(0x1dc)](_0x337beb,0x1),this['outlinePass']&&(this['outlinePass']['selectedObjects']=this['outlineObjects'])),this['markDirty']();}[_0x338428(0x1d5)](_0x12fc00){const _0x3624c1=_0x338428;this[_0x3624c1(0x1ed)]=_0x12fc00,this[_0x3624c1(0x1af)](),this[_0x3624c1(0x21d)](),this[_0x3624c1(0x1ce)]();}[_0x338428(0x201)](){const _0x44a0db=_0x338428;return this[_0x44a0db(0x1ed)];}[_0x338428(0x21c)](){const _0x401911=_0x338428;if(this[_0x401911(0x223)])return this[_0x401911(0x223)][_0x401911(0x21c)](),!![];return ![];}[_0x338428(0x1e2)](){const _0x5745f5=_0x338428;this[_0x5745f5(0x1d0)]=[],this[_0x5745f5(0x1cd)]=null,this[_0x5745f5(0x217)]=null,this[_0x5745f5(0x1fb)]=null,this['dofPass']=null,this[_0x5745f5(0x1e5)]=null,this['traaPass']=null,this[_0x5745f5(0x1f7)]=null,this['lut3dTexture']=null,this['postProcessing']&&(this['postProcessing'][_0x5745f5(0x1b1)](),this[_0x5745f5(0x223)]=null);}[_0x338428(0x1ce)](){const _0x5155ce=_0x338428;this[_0x5155ce(0x1e1)]&&this[_0x5155ce(0x1e1)]();}}
|
|
81
81
|
|
|
82
|
-
const _0x512e67=_0x5cb7;(function(_0x314151,_0x5af777){const _0x5be302=_0x5cb7,_0x58485a=_0x314151();while(!![]){try{const _0x9cd77d=parseInt(_0x5be302(0x1a7))/0x1*(-parseInt(_0x5be302(0x1b8))/0x2)+-parseInt(_0x5be302(0x1eb))/0x3*(parseInt(_0x5be302(0x1d2))/0x4)+-parseInt(_0x5be302(0x1e1))/0x5+parseInt(_0x5be302(0x1b4))/0x6+parseInt(_0x5be302(0x1c9))/0x7*(parseInt(_0x5be302(0x1d6))/0x8)+-parseInt(_0x5be302(0x1e9))/0x9+parseInt(_0x5be302(0x1cd))/0xa;if(_0x9cd77d===_0x5af777)break;else _0x58485a['push'](_0x58485a['shift']());}catch(_0x215917){_0x58485a['push'](_0x58485a['shift']());}}}(_0x3ec9,0x38569));function _0x5cb7(_0x259ca1,_0x3932ca){_0x259ca1=_0x259ca1-0x1a3;const _0x3ec938=_0x3ec9();let _0x5cb785=_0x3ec938[_0x259ca1];return _0x5cb785;}function _0x3ec9(){const _0x1e3d94=['renderer','outputPass','resize','destroy','has','scene','radius','DepthOfField','smaaPass','getSize','set','23kYXVoj','edgeGlow','onDirtyCallback','updateOutlineParameters','steps','push','edgeStrength','buildPipeline','updateGTAOParameters','type','dispose','updateSteps','Bloom','2136906YvWlnT','find','value','indexOf','38498sCpOjx','includes','Outline','GroundTruthAmbientOcclusion','addPass','processing','outlineObjects','setLUT3DTexture','visibleEdgeColor','setSize','threshold','updateAllParameters','addOutlineObject','aperture','bloomPass','maxblur','setup','35Tqxttk','updateCamera','method','gtaoPass','5388740LkKIAJ','markDirty','getStepParam','outlinePass','pulsePeriod','4HeTPtY','renderPass','lut3dTexture','resolution','527480DJxPvc','blendIntensity','setOutlineObjects','selectedObjects','postProcessParam','edgeThickness','smaa','fxaa','uniforms','length','hiddenEdgeColor','1349810lTsHSU','camera','strength','fxaaPass','render','scale','composer','lutPass','37062xhJtzi','focus','831396TvZVVU','removeOutlineObject','dofPass','Antialiasing'];_0x3ec9=function(){return _0x1e3d94;};return _0x3ec9();}class WebGLPostProcessManager{constructor(_0x50ba5d,_0x4d0905,_0x32d6d8,_0x42f567,_0x39db13){const _0x49d498=_0x5cb7;this[_0x49d498(0x1e7)]=null,this[_0x49d498(0x1be)]=[],this[_0x49d498(0x1d3)]=null,this[_0x49d498(0x1d0)]=null,this['bloomPass']=null,this[_0x49d498(0x1ed)]=null,this[_0x49d498(0x1cc)]=null,this[_0x49d498(0x1a4)]=null,this[_0x49d498(0x1e4)]=null,this[_0x49d498(0x1e8)]=null,this[_0x49d498(0x1f0)]=null,this[_0x49d498(0x1d4)]=null,this['onDirtyCallback']=null,this[_0x49d498(0x1ef)]=_0x50ba5d,this[_0x49d498(0x1f4)]=_0x4d0905,this['camera']=_0x32d6d8,this[_0x49d498(0x1da)]=Object['assign']({},_0x42f567),this[_0x49d498(0x1a9)]=_0x39db13!==null&&_0x39db13!==void 0?_0x39db13:null;}get[_0x512e67(0x1bd)](){return this['composer'];}[_0x512e67(0x1ca)](_0x390ccc){const _0x12e4f4=_0x512e67;this[_0x12e4f4(0x1e2)]=_0x390ccc;if(!this[_0x12e4f4(0x1e7)])this[_0x12e4f4(0x1ae)](),this['markDirty']();else {if(this[_0x12e4f4(0x1d3)])this[_0x12e4f4(0x1d3)][_0x12e4f4(0x1e2)]=this['camera'];if(this[_0x12e4f4(0x1d0)])this[_0x12e4f4(0x1d0)]['renderCamera']=this[_0x12e4f4(0x1e2)];this['dofPass']&&(this[_0x12e4f4(0x1ed)][_0x12e4f4(0x1e2)]=this['camera']),this[_0x12e4f4(0x1cc)]&&(this[_0x12e4f4(0x1cc)]['camera']=this[_0x12e4f4(0x1e2)]);}}[_0x512e67(0x1c8)](){const _0x307e41=_0x512e67;!this[_0x307e41(0x1e7)]?this['buildPipeline']():this[_0x307e41(0x1c3)](),this[_0x307e41(0x1ce)]();}[_0x512e67(0x1ae)](){const _0x1f37cb=_0x512e67;var _0x112f98,_0x24a98e,_0x157365,_0x31cff5;this[_0x1f37cb(0x1e7)]&&this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1b1)]();this['composer']=new EffectComposer_js.EffectComposer(this['renderer']),this[_0x1f37cb(0x1d3)]=new RenderPass_js.RenderPass(this[_0x1f37cb(0x1f4)],this[_0x1f37cb(0x1e2)]),this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1bc)](this[_0x1f37cb(0x1d3)]),this['outlinePass']=null,this['bloomPass']=null,this['dofPass']=null,this[_0x1f37cb(0x1cc)]=null,this[_0x1f37cb(0x1a4)]=null,this['fxaaPass']=null,this[_0x1f37cb(0x1e8)]=null,this[_0x1f37cb(0x1f0)]=null;const _0x479dd7=new Set(this[_0x1f37cb(0x1da)][_0x1f37cb(0x1ab)]['map'](_0x38e3a3=>_0x38e3a3[_0x1f37cb(0x1b0)]));if(_0x479dd7['has'](exports.PostProcessStepType[_0x1f37cb(0x1bb)])){const _0x46abf5=(_0x112f98=this[_0x1f37cb(0x1cf)](exports.PostProcessStepType[_0x1f37cb(0x1bb)]))!==null&&_0x112f98!==void 0?_0x112f98:DefaultGTAOParam,_0x47eb8f=this['renderer'][_0x1f37cb(0x1a5)](new three.Vector2());this['gtaoPass']=new GTAOPass_js.GTAOPass(this[_0x1f37cb(0x1f4)],this[_0x1f37cb(0x1e2)],_0x47eb8f['x'],_0x47eb8f['y']),this[_0x1f37cb(0x1af)](_0x46abf5),this[_0x1f37cb(0x1e7)]['addPass'](this[_0x1f37cb(0x1cc)]);}if(_0x479dd7[_0x1f37cb(0x1f3)](exports.PostProcessStepType[_0x1f37cb(0x1a3)])){const _0x5a7f70=(_0x24a98e=this[_0x1f37cb(0x1cf)](exports.PostProcessStepType[_0x1f37cb(0x1a3)]))!==null&&_0x24a98e!==void 0?_0x24a98e:DefaultDOFParam;this[_0x1f37cb(0x1ed)]=new BokehPass_js.BokehPass(this[_0x1f37cb(0x1f4)],this[_0x1f37cb(0x1e2)],{'focus':_0x5a7f70[_0x1f37cb(0x1ea)],'aperture':_0x5a7f70['aperture'],'maxblur':_0x5a7f70[_0x1f37cb(0x1c7)]}),this[_0x1f37cb(0x1e7)]['addPass'](this[_0x1f37cb(0x1ed)]);}if(_0x479dd7[_0x1f37cb(0x1f3)](exports.PostProcessStepType[_0x1f37cb(0x1b3)])){const _0x24551f=(_0x157365=this[_0x1f37cb(0x1cf)](exports.PostProcessStepType[_0x1f37cb(0x1b3)]))!==null&&_0x157365!==void 0?_0x157365:DefaultBloomParam,_0xd7d751=this[_0x1f37cb(0x1ef)][_0x1f37cb(0x1a5)](new three.Vector2());this[_0x1f37cb(0x1c6)]=new UnrealBloomPass_js.UnrealBloomPass(_0xd7d751,_0x24551f[_0x1f37cb(0x1e3)],_0x24551f[_0x1f37cb(0x1f5)],_0x24551f[_0x1f37cb(0x1c2)]),this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1bc)](this[_0x1f37cb(0x1c6)]);}if(_0x479dd7['has'](exports.PostProcessStepType[_0x1f37cb(0x1ba)])){const _0xa0f80c=(_0x31cff5=this['getStepParam'](exports.PostProcessStepType[_0x1f37cb(0x1ba)]))!==null&&_0x31cff5!==void 0?_0x31cff5:DefaultOutlineParams,_0x289e42=this[_0x1f37cb(0x1ef)][_0x1f37cb(0x1a5)](new three.Vector2());this[_0x1f37cb(0x1d0)]=new OutlinePass_js.OutlinePass(_0x289e42,this[_0x1f37cb(0x1f4)],this[_0x1f37cb(0x1e2)]),this['outlinePass'][_0x1f37cb(0x1d9)]=this[_0x1f37cb(0x1be)],this[_0x1f37cb(0x1aa)](_0xa0f80c),this[_0x1f37cb(0x1e7)]['addPass'](this[_0x1f37cb(0x1d0)]);}this['lut3dTexture']&&(this[_0x1f37cb(0x1e8)]=new LUTPass_js.LUTPass({'lut':this[_0x1f37cb(0x1d4)]}),this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1bc)](this[_0x1f37cb(0x1e8)]));const _0x11ccee=this['getStepParam'](exports.PostProcessStepType[_0x1f37cb(0x1ee)]);if(_0x11ccee){const _0x43e130=this[_0x1f37cb(0x1ef)][_0x1f37cb(0x1a5)](new three.Vector2());if(_0x11ccee[_0x1f37cb(0x1cb)]===_0x1f37cb(0x1dd))this[_0x1f37cb(0x1e4)]=new ShaderPass_js.ShaderPass(FXAAShader_js.FXAAShader),this[_0x1f37cb(0x1e4)][_0x1f37cb(0x1de)][_0x1f37cb(0x1d5)][_0x1f37cb(0x1b6)][_0x1f37cb(0x1a6)](0x1/_0x43e130['x'],0x1/_0x43e130['y']),this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1bc)](this[_0x1f37cb(0x1e4)]);else _0x11ccee[_0x1f37cb(0x1cb)]===_0x1f37cb(0x1dc)&&(this[_0x1f37cb(0x1a4)]=new SMAAPass_js.SMAAPass(_0x43e130['x'],_0x43e130['y']),this[_0x1f37cb(0x1e7)]['addPass'](this[_0x1f37cb(0x1a4)]));}this[_0x1f37cb(0x1f0)]=new OutputPass_js.OutputPass(),this[_0x1f37cb(0x1e7)][_0x1f37cb(0x1bc)](this['outputPass']);}[_0x512e67(0x1cf)](_0x392f09){const _0x28298f=_0x512e67;var _0x245b09;return (_0x245b09=this[_0x28298f(0x1da)][_0x28298f(0x1ab)][_0x28298f(0x1b5)](_0x1bde6c=>_0x1bde6c[_0x28298f(0x1b0)]===_0x392f09))!==null&&_0x245b09!==void 0?_0x245b09:null;}[_0x512e67(0x1c3)](){const _0x1d5c84=_0x512e67,_0x4287d4=this[_0x1d5c84(0x1cf)](exports.PostProcessStepType[_0x1d5c84(0x1b3)]);_0x4287d4&&this[_0x1d5c84(0x1c6)]&&(this[_0x1d5c84(0x1c6)][_0x1d5c84(0x1e3)]=_0x4287d4[_0x1d5c84(0x1e3)],this[_0x1d5c84(0x1c6)][_0x1d5c84(0x1f5)]=_0x4287d4[_0x1d5c84(0x1f5)],this[_0x1d5c84(0x1c6)][_0x1d5c84(0x1c2)]=_0x4287d4[_0x1d5c84(0x1c2)]);const _0x4b3678=this[_0x1d5c84(0x1cf)](exports.PostProcessStepType[_0x1d5c84(0x1a3)]);if(_0x4b3678&&this[_0x1d5c84(0x1ed)]){const _0xd8ac1e=this[_0x1d5c84(0x1ed)];_0xd8ac1e[_0x1d5c84(0x1de)]&&(_0xd8ac1e['uniforms']['focus'][_0x1d5c84(0x1b6)]=_0x4b3678['focus'],_0xd8ac1e['uniforms']['aperture'][_0x1d5c84(0x1b6)]=_0x4b3678[_0x1d5c84(0x1c5)],_0xd8ac1e[_0x1d5c84(0x1de)][_0x1d5c84(0x1c7)]['value']=_0x4b3678[_0x1d5c84(0x1c7)]);}const _0x42ccf6=this['getStepParam'](exports.PostProcessStepType[_0x1d5c84(0x1bb)]);_0x42ccf6&&this['gtaoPass']&&this['updateGTAOParameters'](_0x42ccf6);const _0x1ed48b=this[_0x1d5c84(0x1cf)](exports.PostProcessStepType['Outline']);_0x1ed48b&&this['outlinePass']&&this[_0x1d5c84(0x1aa)](_0x1ed48b);}[_0x512e67(0x1af)](_0x876071){const _0x5340be=_0x512e67;if(!this[_0x5340be(0x1cc)])return;this[_0x5340be(0x1cc)][_0x5340be(0x1d7)]=_0x876071[_0x5340be(0x1e6)];}[_0x512e67(0x1aa)](_0x4c4c86){const _0x305056=_0x512e67;if(!this[_0x305056(0x1d0)])return;this['outlinePass'][_0x305056(0x1ad)]=_0x4c4c86['edgeStrength'],this[_0x305056(0x1d0)][_0x305056(0x1a8)]=_0x4c4c86['edgeGlow'],this[_0x305056(0x1d0)][_0x305056(0x1db)]=_0x4c4c86[_0x305056(0x1db)],this[_0x305056(0x1d0)][_0x305056(0x1d1)]=_0x4c4c86[_0x305056(0x1d1)],this[_0x305056(0x1d0)]['visibleEdgeColor']=new three.Color(_0x4c4c86[_0x305056(0x1c0)]),this['outlinePass'][_0x305056(0x1e0)]=new three.Color(_0x4c4c86['hiddenEdgeColor']);}[_0x512e67(0x1b2)](_0x7876bd){const _0x11d3b0=_0x512e67;this[_0x11d3b0(0x1da)][_0x11d3b0(0x1ab)]=_0x7876bd,this[_0x11d3b0(0x1ae)](),this['markDirty']();}[_0x512e67(0x1c4)](_0x355873){const _0x267944=_0x512e67;!this[_0x267944(0x1be)][_0x267944(0x1b9)](_0x355873)&&(this[_0x267944(0x1be)][_0x267944(0x1ac)](_0x355873),this[_0x267944(0x1d0)]&&(this['outlinePass'][_0x267944(0x1d9)]=this[_0x267944(0x1be)])),this[_0x267944(0x1ce)]();}[_0x512e67(0x1d8)](_0x16ef98){const _0x504f1a=_0x512e67;this[_0x504f1a(0x1be)][_0x504f1a(0x1df)]=0x0,this[_0x504f1a(0x1be)][_0x504f1a(0x1ac)](..._0x16ef98),this[_0x504f1a(0x1d0)]&&(this[_0x504f1a(0x1d0)][_0x504f1a(0x1d9)]=this['outlineObjects']),this['markDirty']();}[_0x512e67(0x1ec)](_0x20bec4){const _0x30e5e4=_0x512e67,_0x4f39cb=this[_0x30e5e4(0x1be)][_0x30e5e4(0x1b7)](_0x20bec4);_0x4f39cb>-1&&(this[_0x30e5e4(0x1be)]['splice'](_0x4f39cb,0x1),this[_0x30e5e4(0x1d0)]&&(this[_0x30e5e4(0x1d0)]['selectedObjects']=this[_0x30e5e4(0x1be)])),this['markDirty']();}[_0x512e67(0x1bf)](_0x3da893){const _0x112c73=_0x512e67;this[_0x112c73(0x1d4)]=_0x3da893,this[_0x112c73(0x1ae)](),this['markDirty']();}['getLUT3DTexture'](){return this['lut3dTexture'];}[_0x512e67(0x1e5)](){const _0x4b11d2=_0x512e67;if(this[_0x4b11d2(0x1e7)])return this['composer'][_0x4b11d2(0x1e5)](),!![];return ![];}[_0x512e67(0x1f1)](_0x349a51,_0x16adb1){const _0xa0b67d=_0x512e67;this[_0xa0b67d(0x1e7)]&&this[_0xa0b67d(0x1e7)][_0xa0b67d(0x1c1)](_0x349a51,_0x16adb1),this[_0xa0b67d(0x1e4)]&&this[_0xa0b67d(0x1e4)][_0xa0b67d(0x1de)]['resolution'][_0xa0b67d(0x1b6)][_0xa0b67d(0x1a6)](0x1/_0x349a51,0x1/_0x16adb1);}[_0x512e67(0x1f2)](){const _0x3ddebf=_0x512e67;this['outlineObjects']=[],this['outlinePass']=null,this[_0x3ddebf(0x1c6)]=null,this[_0x3ddebf(0x1ed)]=null,this['gtaoPass']=null,this[_0x3ddebf(0x1a4)]=null,this[_0x3ddebf(0x1e4)]=null,this[_0x3ddebf(0x1e8)]=null,this[_0x3ddebf(0x1f0)]=null,this[_0x3ddebf(0x1d4)]=null,this[_0x3ddebf(0x1e7)]&&(this['composer'][_0x3ddebf(0x1b1)](),this[_0x3ddebf(0x1e7)]=null);}[_0x512e67(0x1ce)](){const _0x5a659a=_0x512e67;this[_0x5a659a(0x1a9)]&&this[_0x5a659a(0x1a9)]();}}
|
|
82
|
+
const _0x2a8241=_0x4a11;(function(_0x308ac4,_0x48e1b0){const _0x5e761d=_0x4a11,_0x119e67=_0x308ac4();while(!![]){try{const _0x31005d=-parseInt(_0x5e761d(0x15e))/0x1+parseInt(_0x5e761d(0x138))/0x2*(parseInt(_0x5e761d(0x17a))/0x3)+parseInt(_0x5e761d(0x14b))/0x4+-parseInt(_0x5e761d(0x16e))/0x5+-parseInt(_0x5e761d(0x14e))/0x6+parseInt(_0x5e761d(0x136))/0x7+parseInt(_0x5e761d(0x13b))/0x8*(parseInt(_0x5e761d(0x16c))/0x9);if(_0x31005d===_0x48e1b0)break;else _0x119e67['push'](_0x119e67['shift']());}catch(_0x4f0ce8){_0x119e67['push'](_0x119e67['shift']());}}}(_0x4cf2,0xcd998));function _0x4a11(_0xb06176,_0x5f14d7){_0xb06176=_0xb06176-0x131;const _0x4cf281=_0x4cf2();let _0x4a112d=_0x4cf281[_0xb06176];return _0x4a112d;}function _0x4cf2(){const _0xa37fd7=['addOutlineObject','edgeStrength','gtaoPass','type','outputPass','Outline','map','steps','value','getSize','uniforms','62856gZGZZH','postProcessParam','updateGTAOParameters','8289522naOVwL','strength','edgeGlow','pulsePeriod','processing','markDirty','updateCamera','visibleEdgeColor','camera','push','set','DepthOfField','smaa','bloomPass','render','aperture','449069uhBFNJ','smaaPass','dispose','outlinePass','scene','updateSteps','composer','resolution','blendIntensity','focus','renderPass','updateOutlineParameters','onDirtyCallback','fxaa','16958763QwHPVl','setOutlineObjects','590850cJLbEh','scale','buildPipeline','threshold','dofPass','has','lut3dTexture','outlineObjects','fxaaPass','radius','getStepParam','getLUT3DTexture','137370NMCtPk','updateAllParameters','hiddenEdgeColor','includes','setup','Bloom','lutPass','maxblur','selectedObjects','146517sXzBIo','renderer','38VsHdbj','splice','GroundTruthAmbientOcclusion','8ykCQcW','renderCamera','Antialiasing','method','addPass'];_0x4cf2=function(){return _0xa37fd7;};return _0x4cf2();}class WebGLPostProcessManager{constructor(_0x1affff,_0x535afb,_0x3982c9,_0x9808ec,_0x3838f9){const _0x1741a0=_0x4a11;this[_0x1741a0(0x164)]=null,this[_0x1741a0(0x175)]=[],this[_0x1741a0(0x168)]=null,this[_0x1741a0(0x161)]=null,this[_0x1741a0(0x15b)]=null,this['dofPass']=null,this[_0x1741a0(0x142)]=null,this[_0x1741a0(0x15f)]=null,this[_0x1741a0(0x176)]=null,this[_0x1741a0(0x133)]=null,this[_0x1741a0(0x144)]=null,this[_0x1741a0(0x174)]=null,this[_0x1741a0(0x16a)]=null,this['renderer']=_0x1affff,this[_0x1741a0(0x162)]=_0x535afb,this[_0x1741a0(0x156)]=_0x3982c9,this['postProcessParam']=Object['assign']({},_0x9808ec),this[_0x1741a0(0x16a)]=_0x3838f9!==null&&_0x3838f9!==void 0?_0x3838f9:null;}get[_0x2a8241(0x152)](){const _0x5d04c4=_0x2a8241;return this[_0x5d04c4(0x164)];}[_0x2a8241(0x154)](_0x53b199){const _0x471b01=_0x2a8241;this[_0x471b01(0x156)]=_0x53b199;if(!this['composer'])this[_0x471b01(0x170)](),this[_0x471b01(0x153)]();else {if(this[_0x471b01(0x168)])this[_0x471b01(0x168)][_0x471b01(0x156)]=this[_0x471b01(0x156)];if(this[_0x471b01(0x161)])this[_0x471b01(0x161)][_0x471b01(0x13c)]=this[_0x471b01(0x156)];this[_0x471b01(0x172)]&&(this[_0x471b01(0x172)][_0x471b01(0x156)]=this[_0x471b01(0x156)]),this[_0x471b01(0x142)]&&(this[_0x471b01(0x142)]['camera']=this['camera']);}}[_0x2a8241(0x131)](){const _0x2e7297=_0x2a8241;!this[_0x2e7297(0x164)]?this[_0x2e7297(0x170)]():this[_0x2e7297(0x17b)](),this[_0x2e7297(0x153)]();}[_0x2a8241(0x170)](){const _0x425bc7=_0x2a8241;var _0x1836c6,_0x5fb1dd,_0x5065f9,_0x1fc863;this[_0x425bc7(0x164)]&&this[_0x425bc7(0x164)][_0x425bc7(0x160)]();this[_0x425bc7(0x164)]=new EffectComposer_js.EffectComposer(this['renderer']),this[_0x425bc7(0x168)]=new RenderPass_js.RenderPass(this[_0x425bc7(0x162)],this['camera']),this[_0x425bc7(0x164)]['addPass'](this[_0x425bc7(0x168)]),this[_0x425bc7(0x161)]=null,this[_0x425bc7(0x15b)]=null,this[_0x425bc7(0x172)]=null,this['gtaoPass']=null,this[_0x425bc7(0x15f)]=null,this[_0x425bc7(0x176)]=null,this[_0x425bc7(0x133)]=null,this[_0x425bc7(0x144)]=null;const _0x3efa2b=new Set(this[_0x425bc7(0x14c)][_0x425bc7(0x147)][_0x425bc7(0x146)](_0x1f8586=>_0x1f8586[_0x425bc7(0x143)]));if(_0x3efa2b[_0x425bc7(0x173)](exports.PostProcessStepType[_0x425bc7(0x13a)])){const _0x1b72b2=(_0x1836c6=this[_0x425bc7(0x178)](exports.PostProcessStepType['GroundTruthAmbientOcclusion']))!==null&&_0x1836c6!==void 0?_0x1836c6:DefaultGTAOParam,_0x388ffa=this[_0x425bc7(0x137)]['getSize'](new three.Vector2());this['gtaoPass']=new GTAOPass_js.GTAOPass(this[_0x425bc7(0x162)],this[_0x425bc7(0x156)],_0x388ffa['x'],_0x388ffa['y']),this[_0x425bc7(0x14d)](_0x1b72b2),this['composer'][_0x425bc7(0x13f)](this[_0x425bc7(0x142)]);}if(_0x3efa2b[_0x425bc7(0x173)](exports.PostProcessStepType[_0x425bc7(0x159)])){const _0x11af82=(_0x5fb1dd=this['getStepParam'](exports.PostProcessStepType[_0x425bc7(0x159)]))!==null&&_0x5fb1dd!==void 0?_0x5fb1dd:DefaultDOFParam;this[_0x425bc7(0x172)]=new BokehPass_js.BokehPass(this['scene'],this[_0x425bc7(0x156)],{'focus':_0x11af82[_0x425bc7(0x167)],'aperture':_0x11af82[_0x425bc7(0x15d)],'maxblur':_0x11af82['maxblur']}),this[_0x425bc7(0x164)]['addPass'](this[_0x425bc7(0x172)]);}if(_0x3efa2b[_0x425bc7(0x173)](exports.PostProcessStepType[_0x425bc7(0x132)])){const _0x1ae719=(_0x5065f9=this[_0x425bc7(0x178)](exports.PostProcessStepType[_0x425bc7(0x132)]))!==null&&_0x5065f9!==void 0?_0x5065f9:DefaultBloomParam,_0x4f6a42=this[_0x425bc7(0x137)][_0x425bc7(0x149)](new three.Vector2());this[_0x425bc7(0x15b)]=new UnrealBloomPass_js.UnrealBloomPass(_0x4f6a42,_0x1ae719[_0x425bc7(0x14f)],_0x1ae719[_0x425bc7(0x177)],_0x1ae719[_0x425bc7(0x171)]),this[_0x425bc7(0x164)][_0x425bc7(0x13f)](this[_0x425bc7(0x15b)]);}if(_0x3efa2b[_0x425bc7(0x173)](exports.PostProcessStepType['Outline'])){const _0xba9ea9=(_0x1fc863=this[_0x425bc7(0x178)](exports.PostProcessStepType['Outline']))!==null&&_0x1fc863!==void 0?_0x1fc863:DefaultOutlineParams,_0x1184da=this['renderer'][_0x425bc7(0x149)](new three.Vector2());this['outlinePass']=new OutlinePass_js.OutlinePass(_0x1184da,this['scene'],this[_0x425bc7(0x156)]),this[_0x425bc7(0x161)][_0x425bc7(0x135)]=this['outlineObjects'],this[_0x425bc7(0x169)](_0xba9ea9),this[_0x425bc7(0x164)]['addPass'](this[_0x425bc7(0x161)]);}this[_0x425bc7(0x174)]&&(this['lutPass']=new LUTPass_js.LUTPass({'lut':this[_0x425bc7(0x174)]}),this[_0x425bc7(0x164)][_0x425bc7(0x13f)](this[_0x425bc7(0x133)]));const _0x5e812e=this[_0x425bc7(0x178)](exports.PostProcessStepType[_0x425bc7(0x13d)]);if(_0x5e812e){const _0x65074d=this['renderer']['getSize'](new three.Vector2());if(_0x5e812e[_0x425bc7(0x13e)]===_0x425bc7(0x16b))this[_0x425bc7(0x176)]=new ShaderPass_js.ShaderPass(FXAAShader_js.FXAAShader),this[_0x425bc7(0x176)]['uniforms'][_0x425bc7(0x165)]['value'][_0x425bc7(0x158)](0x1/_0x65074d['x'],0x1/_0x65074d['y']),this[_0x425bc7(0x164)][_0x425bc7(0x13f)](this[_0x425bc7(0x176)]);else _0x5e812e[_0x425bc7(0x13e)]===_0x425bc7(0x15a)&&(this[_0x425bc7(0x15f)]=new SMAAPass_js.SMAAPass(_0x65074d['x'],_0x65074d['y']),this['composer']['addPass'](this[_0x425bc7(0x15f)]));}this[_0x425bc7(0x144)]=new OutputPass_js.OutputPass(),this[_0x425bc7(0x164)][_0x425bc7(0x13f)](this[_0x425bc7(0x144)]);}[_0x2a8241(0x178)](_0x248b64){const _0x428219=_0x2a8241;var _0x218f89;return (_0x218f89=this[_0x428219(0x14c)][_0x428219(0x147)]['find'](_0x27dd3b=>_0x27dd3b[_0x428219(0x143)]===_0x248b64))!==null&&_0x218f89!==void 0?_0x218f89:null;}[_0x2a8241(0x17b)](){const _0x1a18de=_0x2a8241,_0x59eb16=this[_0x1a18de(0x178)](exports.PostProcessStepType[_0x1a18de(0x132)]);_0x59eb16&&this[_0x1a18de(0x15b)]&&(this[_0x1a18de(0x15b)][_0x1a18de(0x14f)]=_0x59eb16['strength'],this[_0x1a18de(0x15b)][_0x1a18de(0x177)]=_0x59eb16[_0x1a18de(0x177)],this[_0x1a18de(0x15b)][_0x1a18de(0x171)]=_0x59eb16['threshold']);const _0x14d91f=this[_0x1a18de(0x178)](exports.PostProcessStepType[_0x1a18de(0x159)]);if(_0x14d91f&&this['dofPass']){const _0x5b69e7=this['dofPass'];_0x5b69e7[_0x1a18de(0x14a)]&&(_0x5b69e7[_0x1a18de(0x14a)][_0x1a18de(0x167)][_0x1a18de(0x148)]=_0x14d91f[_0x1a18de(0x167)],_0x5b69e7[_0x1a18de(0x14a)][_0x1a18de(0x15d)][_0x1a18de(0x148)]=_0x14d91f[_0x1a18de(0x15d)],_0x5b69e7[_0x1a18de(0x14a)][_0x1a18de(0x134)][_0x1a18de(0x148)]=_0x14d91f[_0x1a18de(0x134)]);}const _0x255232=this[_0x1a18de(0x178)](exports.PostProcessStepType[_0x1a18de(0x13a)]);_0x255232&&this[_0x1a18de(0x142)]&&this[_0x1a18de(0x14d)](_0x255232);const _0x2ce3bc=this[_0x1a18de(0x178)](exports.PostProcessStepType[_0x1a18de(0x145)]);_0x2ce3bc&&this['outlinePass']&&this['updateOutlineParameters'](_0x2ce3bc);}[_0x2a8241(0x14d)](_0x1235df){const _0x595ca3=_0x2a8241;if(!this['gtaoPass'])return;this[_0x595ca3(0x142)][_0x595ca3(0x166)]=_0x1235df[_0x595ca3(0x16f)];}[_0x2a8241(0x169)](_0x57005f){const _0xeb10eb=_0x2a8241;if(!this[_0xeb10eb(0x161)])return;this[_0xeb10eb(0x161)][_0xeb10eb(0x141)]=_0x57005f['edgeStrength'],this[_0xeb10eb(0x161)][_0xeb10eb(0x150)]=_0x57005f[_0xeb10eb(0x150)],this[_0xeb10eb(0x161)]['edgeThickness']=_0x57005f['edgeThickness'],this[_0xeb10eb(0x161)][_0xeb10eb(0x151)]=_0x57005f[_0xeb10eb(0x151)],this[_0xeb10eb(0x161)][_0xeb10eb(0x155)]=new three.Color(_0x57005f[_0xeb10eb(0x155)]),this[_0xeb10eb(0x161)][_0xeb10eb(0x17c)]=new three.Color(_0x57005f['hiddenEdgeColor']);}[_0x2a8241(0x163)](_0x32eaa2){const _0x2ac5ba=_0x2a8241;this[_0x2ac5ba(0x14c)][_0x2ac5ba(0x147)]=_0x32eaa2,this[_0x2ac5ba(0x170)](),this[_0x2ac5ba(0x153)]();}[_0x2a8241(0x140)](_0x332309){const _0x521f17=_0x2a8241;!this['outlineObjects'][_0x521f17(0x17d)](_0x332309)&&(this[_0x521f17(0x175)][_0x521f17(0x157)](_0x332309),this[_0x521f17(0x161)]&&(this['outlinePass'][_0x521f17(0x135)]=this[_0x521f17(0x175)])),this[_0x521f17(0x153)]();}[_0x2a8241(0x16d)](_0x7c4800){const _0x1addd1=_0x2a8241;this[_0x1addd1(0x175)]['length']=0x0,this['outlineObjects'][_0x1addd1(0x157)](..._0x7c4800),this[_0x1addd1(0x161)]&&(this['outlinePass'][_0x1addd1(0x135)]=this['outlineObjects']),this[_0x1addd1(0x153)]();}['removeOutlineObject'](_0x159c09){const _0x89a938=_0x2a8241,_0x14d95e=this[_0x89a938(0x175)]['indexOf'](_0x159c09);_0x14d95e>-1&&(this[_0x89a938(0x175)][_0x89a938(0x139)](_0x14d95e,0x1),this[_0x89a938(0x161)]&&(this[_0x89a938(0x161)][_0x89a938(0x135)]=this[_0x89a938(0x175)])),this[_0x89a938(0x153)]();}['setLUT3DTexture'](_0x2f8e1a){const _0x4f220e=_0x2a8241;this[_0x4f220e(0x174)]=_0x2f8e1a,this['buildPipeline'](),this[_0x4f220e(0x153)]();}[_0x2a8241(0x179)](){const _0x2aa626=_0x2a8241;return this[_0x2aa626(0x174)];}[_0x2a8241(0x15c)](){const _0x413516=_0x2a8241;if(this[_0x413516(0x164)])return this[_0x413516(0x164)]['render'](),!![];return ![];}['resize'](_0x48d4bd,_0xc09873){const _0x3714e5=_0x2a8241;this['composer']&&this[_0x3714e5(0x164)]['setSize'](_0x48d4bd,_0xc09873),this[_0x3714e5(0x176)]&&this['fxaaPass']['uniforms'][_0x3714e5(0x165)][_0x3714e5(0x148)][_0x3714e5(0x158)](0x1/_0x48d4bd,0x1/_0xc09873);}['destroy'](){const _0x5b175f=_0x2a8241;this[_0x5b175f(0x175)]=[],this['outlinePass']=null,this[_0x5b175f(0x15b)]=null,this[_0x5b175f(0x172)]=null,this[_0x5b175f(0x142)]=null,this[_0x5b175f(0x15f)]=null,this[_0x5b175f(0x176)]=null,this[_0x5b175f(0x133)]=null,this[_0x5b175f(0x144)]=null,this[_0x5b175f(0x174)]=null,this[_0x5b175f(0x164)]&&(this[_0x5b175f(0x164)]['dispose'](),this['composer']=null);}[_0x2a8241(0x153)](){const _0x46dae1=_0x2a8241;this[_0x46dae1(0x16a)]&&this['onDirtyCallback']();}}
|
|
83
83
|
|
|
84
|
-
function _0x1090(){const _0x5498fb=['7596uaWMHX','setShadowMapEnabled','shadowMap','291ZZlEHg','1097426sOGXCu','scene-uiLayer','setClearAlpha','add','onAfterPostProcessRender','enabled','setToneMapping','135906MHSuLc','postProcessManager','7cHHliK','width','param','markRenderStateDirty','createPostProcessManager','setup','setAnimationLoop','_canvasContainer','createCSS3DRenderer','dispose','transparent','createRenderer','renderAsImage','none','uiDom','addOutlineObject','absolute','setSize','renderer','0px','428736IAwZds','setShadowMapType','scene','toneMapping','css3dRenderer','camera','domElement','elementId','scene-labelRenderer','157329qCLkvC','clientWidth','clientHeight','observe','top','world','drawImage','appendChild','pointerEvents','58568HeQysf','_outerContainer','getContext','toDataURL','labelRenderer','40HbjZyX','App\x20is\x20not\x20initialized','canvas','type','toneMappingExposure','WebGPU','100%','remove','div','removeChild','className','position','isUILayerNeeded','isLabelRendererNeeded','13517dvKJCi','_app','background','removeOutlineObject','style','WebGL','onWindowResize','createLabelRenderer','8JslMby','left','destroy','_renderer','setOutlineObjects','_uiDom','init','disconnect','updateCamera','firstChild','resize','20YahzTP','isRenderStateDirty','postProcess','height','scene-css3dRenderer','Renderer\x20is\x20not\x20initialized','.scene-uiLayer','isCSS3DRendererNeeded','devicePixelRatio','Can\x20not\x20create\x20context','app','render','createElement','resizeObserver','image/jpeg','contentBoxSize','destroyPostProcess'];_0x1090=function(){return _0x5498fb;};return _0x1090();}const _0x29645f=_0x34a5;function _0x34a5(_0xedc559,_0x58089e){_0xedc559=_0xedc559-0x13c;const _0x109019=_0x1090();let _0x34a563=_0x109019[_0xedc559];return _0x34a563;}(function(_0x45230a,_0x5d4fba){const _0x32e5b3=_0x34a5,_0x16738a=_0x45230a();while(!![]){try{const _0xed3e76=-parseInt(_0x32e5b3(0x1a1))/0x1*(parseInt(_0x32e5b3(0x13f))/0x2)+-parseInt(_0x32e5b3(0x15e))/0x3*(-parseInt(_0x32e5b3(0x15b))/0x4)+parseInt(_0x32e5b3(0x14a))/0x5*(-parseInt(_0x32e5b3(0x166))/0x6)+-parseInt(_0x32e5b3(0x168))/0x7*(-parseInt(_0x32e5b3(0x18e))/0x8)+-parseInt(_0x32e5b3(0x185))/0x9*(parseInt(_0x32e5b3(0x193))/0xa)+parseInt(_0x32e5b3(0x15f))/0xb+parseInt(_0x32e5b3(0x17c))/0xc;if(_0xed3e76===_0x5d4fba)break;else _0x16738a['push'](_0x16738a['shift']());}catch(_0x538c73){_0x16738a['push'](_0x16738a['shift']());}}}(_0x1090,0x1b726));class Viewport{get[_0x29645f(0x176)](){const _0x25879a=_0x29645f;return this[_0x25879a(0x144)];}get['canvas'](){const _0x4398c2=_0x29645f;return this[_0x4398c2(0x18f)]||this[_0x4398c2(0x17a)][_0x4398c2(0x182)];}get['outer'](){const _0x1f9b3d=_0x29645f;return this[_0x1f9b3d(0x18f)];}get[_0x29645f(0x17a)](){const _0x562f48=_0x29645f;if(!this[_0x562f48(0x142)])throw Error(_0x562f48(0x14f));return this['_renderer'];}get['app'](){const _0xbd294=_0x29645f;if(!this[_0xbd294(0x1a2)])throw Error(_0xbd294(0x194));return this[_0xbd294(0x1a2)];}constructor(_0x7da828,_0x14c9b9){const _0x1bc952=_0x29645f;this[_0x1bc952(0x144)]=null,this[_0x1bc952(0x142)]=null,this[_0x1bc952(0x192)]=null,this['css3dRenderer']=null,this[_0x1bc952(0x1a2)]=null,this['resizeObserver']=null,this[_0x1bc952(0x18f)]=null,this[_0x1bc952(0x16f)]=null,this[_0x1bc952(0x14b)]=!![],this[_0x1bc952(0x167)]=null,this[_0x1bc952(0x1a2)]=_0x7da828,_0x14c9b9[_0x1bc952(0x183)]&&(this[_0x1bc952(0x18f)]=document['getElementById'](_0x14c9b9['elementId'])),this['createRenderer'](_0x14c9b9[_0x1bc952(0x17a)][_0x1bc952(0x196)],_0x14c9b9[_0x1bc952(0x17a)][_0x1bc952(0x16a)]),_0x14c9b9[_0x1bc952(0x1a0)]&&this[_0x1bc952(0x13e)](),_0x14c9b9[_0x1bc952(0x151)]&&this[_0x1bc952(0x170)](),_0x14c9b9[_0x1bc952(0x19f)]&&this['createUILayer'](),setTimeout(()=>{const _0x40902b=_0x1bc952;var _0x2bdfce;this['setupPostProcess']((_0x2bdfce=_0x14c9b9[_0x40902b(0x14c)])!==null&&_0x2bdfce!==void 0?_0x2bdfce:{'steps':[]});},0x32),this['_outerContainer']&&(this[_0x1bc952(0x157)]=new ResizeObserver(_0x2d5e5d=>{const _0x3e9f02=_0x1bc952;for(let _0x2c1856 of _0x2d5e5d){_0x2c1856[_0x3e9f02(0x159)]&&this[_0x3e9f02(0x13d)]();}}),this['resizeObserver'][_0x1bc952(0x188)](this[_0x1bc952(0x18f)])),this[_0x1bc952(0x154)]['onCameraChangedDelegate'][_0x1bc952(0x162)](()=>{const _0x501357=_0x1bc952;this['postProcessManager']&&(this['postProcessManager'][_0x501357(0x147)](this[_0x501357(0x154)][_0x501357(0x181)]),this['postProcessManager'][_0x501357(0x16d)]());});}[_0x29645f(0x173)](_0x276f0f,_0x4f852f){const _0x12484d=_0x29645f,_0x209904=this[_0x12484d(0x18f)];this[_0x12484d(0x142)]&&(_0x209904&&_0x209904[_0x12484d(0x19c)](this['_renderer'][_0x12484d(0x182)]),this[_0x12484d(0x142)][_0x12484d(0x171)]());let _0x525134=_0x209904?_0x209904[_0x12484d(0x186)]:0x200,_0x4be3c4=_0x209904?_0x209904['clientHeight']:0x200;switch(_0x276f0f){case exports.RendererType[_0x12484d(0x198)]:this[_0x12484d(0x142)]=new webgpu.WebGPURenderer(_0x4f852f);break;case exports.RendererType[_0x12484d(0x13c)]:this[_0x12484d(0x142)]=new three.WebGLRenderer(_0x4f852f);break;}this['_renderer']['setPixelRatio'](window[_0x12484d(0x152)]),this[_0x12484d(0x142)]['setSize'](_0x525134,_0x4be3c4),this[_0x12484d(0x142)][_0x12484d(0x15d)][_0x12484d(0x164)]=!![],this[_0x12484d(0x142)][_0x12484d(0x15d)]['type']=0x1,this['_renderer'][_0x12484d(0x17f)]=0x0,this[_0x12484d(0x142)][_0x12484d(0x197)]=0x1,this[_0x12484d(0x142)][_0x12484d(0x161)](0x0),this[_0x12484d(0x142)][_0x12484d(0x182)][_0x12484d(0x1a5)][_0x12484d(0x19e)]='absolute',this[_0x12484d(0x142)][_0x12484d(0x182)][_0x12484d(0x1a5)][_0x12484d(0x140)]='0',this['_renderer'][_0x12484d(0x182)][_0x12484d(0x1a5)]['top']='0',this[_0x12484d(0x142)][_0x12484d(0x182)][_0x12484d(0x1a5)]['zIndex']='20',this['_renderer'][_0x12484d(0x182)][_0x12484d(0x1a5)][_0x12484d(0x1a3)]=_0x12484d(0x172),this[_0x12484d(0x142)][_0x12484d(0x182)][_0x12484d(0x1a5)][_0x12484d(0x18d)]=_0x12484d(0x175),_0x209904&&_0x209904[_0x12484d(0x18c)](this[_0x12484d(0x142)][_0x12484d(0x182)]);}['createLabelRenderer'](){const _0x70f7f1=_0x29645f,_0x3f55f8=this[_0x70f7f1(0x18f)];this[_0x70f7f1(0x192)]&&(_0x3f55f8&&_0x3f55f8['removeChild'](this['labelRenderer'][_0x70f7f1(0x182)]));let _0x3092aa=_0x3f55f8?_0x3f55f8['clientWidth']:0x200,_0x56d166=_0x3f55f8?_0x3f55f8[_0x70f7f1(0x187)]:0x200;this[_0x70f7f1(0x192)]=new Addons_js.CSS2DRenderer(),this[_0x70f7f1(0x192)][_0x70f7f1(0x179)](_0x3092aa,_0x56d166),this[_0x70f7f1(0x192)][_0x70f7f1(0x182)][_0x70f7f1(0x1a5)]['pointerEvents']=_0x70f7f1(0x175),this[_0x70f7f1(0x192)][_0x70f7f1(0x182)]['style'][_0x70f7f1(0x19e)]='absolute',this[_0x70f7f1(0x192)][_0x70f7f1(0x182)]['style'][_0x70f7f1(0x189)]=_0x70f7f1(0x17b),this[_0x70f7f1(0x192)][_0x70f7f1(0x182)][_0x70f7f1(0x19d)]=_0x70f7f1(0x184),this[_0x70f7f1(0x192)]['domElement'][_0x70f7f1(0x1a5)]['zIndex']='30',_0x3f55f8&&_0x3f55f8[_0x70f7f1(0x18c)](this[_0x70f7f1(0x192)][_0x70f7f1(0x182)]);}[_0x29645f(0x170)](){const _0x15bd15=_0x29645f,_0x1fd32b=this[_0x15bd15(0x18f)];this[_0x15bd15(0x180)]&&(_0x1fd32b&&_0x1fd32b[_0x15bd15(0x19c)](this['css3dRenderer']['domElement']));let _0xc764b8=_0x1fd32b?_0x1fd32b[_0x15bd15(0x186)]:0x200,_0x30df66=_0x1fd32b?_0x1fd32b[_0x15bd15(0x187)]:0x200;this[_0x15bd15(0x180)]=new Addons_js.CSS3DRenderer(),this[_0x15bd15(0x180)][_0x15bd15(0x179)](_0xc764b8,_0x30df66),this[_0x15bd15(0x180)][_0x15bd15(0x182)][_0x15bd15(0x1a5)][_0x15bd15(0x18d)]=_0x15bd15(0x175),this[_0x15bd15(0x180)][_0x15bd15(0x182)][_0x15bd15(0x1a5)][_0x15bd15(0x19e)]='absolute',this[_0x15bd15(0x180)][_0x15bd15(0x182)][_0x15bd15(0x1a5)][_0x15bd15(0x140)]=_0x15bd15(0x17b),this[_0x15bd15(0x180)][_0x15bd15(0x182)][_0x15bd15(0x1a5)][_0x15bd15(0x189)]=_0x15bd15(0x17b),this[_0x15bd15(0x180)]['domElement'][_0x15bd15(0x1a5)]['zIndex']='0',this[_0x15bd15(0x180)][_0x15bd15(0x182)][_0x15bd15(0x19d)]=_0x15bd15(0x14e),_0x1fd32b&&_0x1fd32b['insertBefore'](this[_0x15bd15(0x180)][_0x15bd15(0x182)],_0x1fd32b[_0x15bd15(0x148)]);}['createUILayer'](){const _0x19e575=_0x29645f;if(!this['_outerContainer'])return;let _0x2a38f1=this[_0x19e575(0x18f)]['querySelector'](_0x19e575(0x150));!_0x2a38f1&&(_0x2a38f1=document[_0x19e575(0x156)](_0x19e575(0x19b)),_0x2a38f1[_0x19e575(0x19d)]=_0x19e575(0x160),_0x2a38f1['id']=_0x19e575(0x160),_0x2a38f1[_0x19e575(0x1a5)]['position']=_0x19e575(0x178),_0x2a38f1[_0x19e575(0x1a5)]['left']='0',_0x2a38f1[_0x19e575(0x1a5)][_0x19e575(0x189)]='0',_0x2a38f1[_0x19e575(0x1a5)][_0x19e575(0x169)]=_0x19e575(0x199),_0x2a38f1[_0x19e575(0x1a5)][_0x19e575(0x14d)]=_0x19e575(0x199),_0x2a38f1['style']['pointerEvents']='none',_0x2a38f1[_0x19e575(0x1a5)]['zIndex']='10',this['_outerContainer'][_0x19e575(0x18c)](_0x2a38f1),this[_0x19e575(0x144)]=_0x2a38f1);}[_0x29645f(0x145)](){}['setupPostProcess'](_0x3ac138){const _0x4594f7=_0x29645f;!this[_0x4594f7(0x167)]&&(this[_0x4594f7(0x167)]=this[_0x4594f7(0x16c)](_0x3ac138)),this[_0x4594f7(0x167)]['setup']();}[_0x29645f(0x16c)](_0x42a3f2){const _0xf657ba=_0x29645f;return this[_0xf657ba(0x17a)]instanceof three.WebGLRenderer?new WebGLPostProcessManager(this[_0xf657ba(0x17a)],this[_0xf657ba(0x154)][_0xf657ba(0x18a)][_0xf657ba(0x17e)],this['app'][_0xf657ba(0x181)],_0x42a3f2,()=>this['markRenderStateDirty']()):new PostProcessManager(this[_0xf657ba(0x17a)],this[_0xf657ba(0x154)][_0xf657ba(0x18a)][_0xf657ba(0x17e)],this[_0xf657ba(0x154)][_0xf657ba(0x181)],_0x42a3f2,()=>this[_0xf657ba(0x16b)]());}['updatePostProcess'](_0x343466){const _0x41d93f=_0x29645f;this[_0x41d93f(0x167)]&&this['postProcessManager']['updateSteps'](_0x343466);}[_0x29645f(0x177)](_0x3d108b){const _0x1b4f64=_0x29645f;this[_0x1b4f64(0x167)]&&this[_0x1b4f64(0x167)]['addOutlineObject'](_0x3d108b);}[_0x29645f(0x143)](_0x330c70){const _0x39da1f=_0x29645f;this[_0x39da1f(0x167)]&&this[_0x39da1f(0x167)][_0x39da1f(0x143)](_0x330c70);}[_0x29645f(0x1a4)](_0x2e3170){const _0x4d458f=_0x29645f;this['postProcessManager']&&this['postProcessManager'][_0x4d458f(0x1a4)](_0x2e3170);}[_0x29645f(0x15a)](){const _0x463baf=_0x29645f;this['postProcessManager']&&(this[_0x463baf(0x167)][_0x463baf(0x141)](),this[_0x463baf(0x167)]=null);}[_0x29645f(0x13d)](){const _0x2e22ce=_0x29645f;let _0x34140d=this[_0x2e22ce(0x18f)];if(!_0x34140d)return;this[_0x2e22ce(0x154)][_0x2e22ce(0x13d)](_0x34140d['clientWidth'],_0x34140d[_0x2e22ce(0x187)]),this[_0x2e22ce(0x17a)][_0x2e22ce(0x179)](_0x34140d[_0x2e22ce(0x186)],_0x34140d[_0x2e22ce(0x187)]);if(this[_0x2e22ce(0x192)])this[_0x2e22ce(0x192)][_0x2e22ce(0x179)](_0x34140d[_0x2e22ce(0x186)],_0x34140d[_0x2e22ce(0x187)]);if(this[_0x2e22ce(0x180)])this[_0x2e22ce(0x180)]['setSize'](_0x34140d[_0x2e22ce(0x186)],_0x34140d['clientHeight']);this[_0x2e22ce(0x167)]&&_0x2e22ce(0x149)in this[_0x2e22ce(0x167)]&&this['postProcessManager'][_0x2e22ce(0x149)](_0x34140d[_0x2e22ce(0x186)],_0x34140d[_0x2e22ce(0x187)]),this[_0x2e22ce(0x16b)]();}['markRenderStateDirty'](){const _0x41318c=_0x29645f;this[_0x41318c(0x14b)]=!![];}[_0x29645f(0x155)](){const _0x3012a3=_0x29645f;if(!this[_0x3012a3(0x14b)])return;if(this['postProcessManager']&&this[_0x3012a3(0x167)][_0x3012a3(0x155)]());else this[_0x3012a3(0x17a)][_0x3012a3(0x155)](this[_0x3012a3(0x154)][_0x3012a3(0x18a)][_0x3012a3(0x17e)],this[_0x3012a3(0x154)][_0x3012a3(0x181)]);this[_0x3012a3(0x163)](),this[_0x3012a3(0x192)]&&this[_0x3012a3(0x192)][_0x3012a3(0x155)](this[_0x3012a3(0x154)][_0x3012a3(0x18a)][_0x3012a3(0x17e)],this[_0x3012a3(0x154)][_0x3012a3(0x181)]),this['css3dRenderer']&&this[_0x3012a3(0x180)][_0x3012a3(0x155)](this['app'][_0x3012a3(0x18a)][_0x3012a3(0x17e)],this[_0x3012a3(0x154)][_0x3012a3(0x181)]),this[_0x3012a3(0x14b)]=![];}['onAfterPostProcessRender'](){}async[_0x29645f(0x174)](_0x5a2b3d=0x400,_0x4fbf61=0x400){const _0x17dcaa=_0x29645f;try{if(this['postProcessManager']&&this[_0x17dcaa(0x167)]['render']()){}else await this[_0x17dcaa(0x17a)][_0x17dcaa(0x155)](this[_0x17dcaa(0x154)][_0x17dcaa(0x18a)][_0x17dcaa(0x17e)],this['app'][_0x17dcaa(0x181)]);const _0xc40bdd=this['renderer'][_0x17dcaa(0x182)][_0x17dcaa(0x169)],_0x43b8d0=this['renderer']['domElement'][_0x17dcaa(0x14d)];let _0x300658=_0xc40bdd||_0x5a2b3d,_0x5a3417=_0x43b8d0||_0x4fbf61;(_0x300658<=0x0||_0x5a3417<=0x0)&&(_0x300658=_0x5a2b3d,_0x5a3417=_0x4fbf61);const _0x508ca7=document['createElement'](_0x17dcaa(0x195));_0x508ca7[_0x17dcaa(0x169)]=_0x5a2b3d,_0x508ca7[_0x17dcaa(0x14d)]=_0x4fbf61;const _0x34e60e=_0x508ca7[_0x17dcaa(0x190)]('2d');if(!_0x34e60e)throw Error(_0x17dcaa(0x153));_0x34e60e[_0x17dcaa(0x18b)](this[_0x17dcaa(0x17a)][_0x17dcaa(0x182)],0x0,0x0,_0x300658,_0x5a3417,0x0,0x0,_0x5a2b3d,_0x4fbf61);const _0x4e0aa8=_0x508ca7[_0x17dcaa(0x191)](_0x17dcaa(0x158));return _0x508ca7[_0x17dcaa(0x19a)](),_0x4e0aa8;}catch(_0x9cc268){return '';}}[_0x29645f(0x15c)](_0x40e7eb){const _0x1018b7=_0x29645f;if(!this['_renderer'])return;this[_0x1018b7(0x142)][_0x1018b7(0x15d)][_0x1018b7(0x164)]=_0x40e7eb;}[_0x29645f(0x17d)](_0x437f0b){if(!this['_renderer'])return;this['_renderer']['shadowMap']['type']=_0x437f0b;}[_0x29645f(0x165)](_0x3edf69){const _0x1b82be=_0x29645f;if(!this[_0x1b82be(0x142)])return;this[_0x1b82be(0x142)][_0x1b82be(0x17f)]=_0x3edf69;}['setToneMappingExposure'](_0xb888c1){const _0x36ab4e=_0x29645f;if(!this['_renderer'])return;this[_0x36ab4e(0x142)][_0x36ab4e(0x197)]=_0xb888c1;}[_0x29645f(0x141)](){const _0x2e469d=_0x29645f;this['destroyPostProcess'](),this[_0x2e469d(0x17a)][_0x2e469d(0x16e)](null),this['resizeObserver']&&(this[_0x2e469d(0x157)][_0x2e469d(0x146)](),this['resizeObserver']=null),this[_0x2e469d(0x192)]&&(this[_0x2e469d(0x192)][_0x2e469d(0x182)][_0x2e469d(0x19a)](),this[_0x2e469d(0x192)]=null),this[_0x2e469d(0x142)]&&(this[_0x2e469d(0x17a)][_0x2e469d(0x182)][_0x2e469d(0x19a)](),this[_0x2e469d(0x142)][_0x2e469d(0x171)](),this['_renderer']=null),this[_0x2e469d(0x16f)]&&(this[_0x2e469d(0x16f)][_0x2e469d(0x19a)](),this['_canvasContainer']=null),this['_outerContainer']=null,this[_0x2e469d(0x1a2)]=null;}}
|
|
84
|
+
const _0x28b3f4=_0x25fa;(function(_0x46a01d,_0x4878fd){const _0x351e0b=_0x25fa,_0x46dfa6=_0x46a01d();while(!![]){try{const _0x68ce61=-parseInt(_0x351e0b(0x13e))/0x1+-parseInt(_0x351e0b(0x102))/0x2*(parseInt(_0x351e0b(0xfe))/0x3)+parseInt(_0x351e0b(0x10b))/0x4+parseInt(_0x351e0b(0x106))/0x5*(-parseInt(_0x351e0b(0x128))/0x6)+parseInt(_0x351e0b(0x12a))/0x7+parseInt(_0x351e0b(0x10d))/0x8+parseInt(_0x351e0b(0x140))/0x9;if(_0x68ce61===_0x4878fd)break;else _0x46dfa6['push'](_0x46dfa6['shift']());}catch(_0x546f1c){_0x46dfa6['push'](_0x46dfa6['shift']());}}}(_0x10cb,0xc99d4));function _0x10cb(){const _0x5ab736=['setShadowMapType','destroyPostProcess','Renderer\x20is\x20not\x20initialized','createRenderer','removeChild','0px','scene','toneMappingExposure','init','camera','_canvasContainer','78480zpwoWB','className','3151645mxMhuw','elementId','transparent','setToneMapping','disconnect','setupPostProcess','remove','clientHeight','getElementById','_app','add','scene-uiLayer','markRenderStateDirty','setSize','setup','removeOutlineObject','renderAsImage','firstChild','position','insertBefore','1145496XdeamN','clientWidth','17913348RgeMZS','width','_outerContainer','render','param','postProcessManager','dispose','css3dRenderer','resizeObserver','createCSS3DRenderer','_uiDom','absolute','createPostProcessManager','toneMapping','onWindowResize','zIndex','image/jpeg','outer','top','setAnimationLoop','getContext','observe','updateSteps','App\x20is\x20not\x20initialized','updatePostProcess','none','setOutlineObjects','isCSS3DRendererNeeded','.scene-uiLayer','100%','height','setPixelRatio','labelRenderer','toDataURL','shadowMap','devicePixelRatio','type','21711XZNger','createElement','background','scene-css3dRenderer','334dsKnYa','drawImage','left','uiDom','80jGFZuw','setClearAlpha','div','isRenderStateDirty','Can\x20not\x20create\x20context','683788eYaFdf','contentBoxSize','6220904mqoyCq','_renderer','domElement','destroy','resize','createLabelRenderer','createUILayer','setShadowMapEnabled','renderer','WebGL','world','canvas','pointerEvents','app','style','querySelector'];_0x10cb=function(){return _0x5ab736;};return _0x10cb();}function _0x25fa(_0x285ad7,_0x370286){_0x285ad7=_0x285ad7-0xfd;const _0x10cb07=_0x10cb();let _0x25fa50=_0x10cb07[_0x285ad7];return _0x25fa50;}class Viewport{get[_0x28b3f4(0x105)](){const _0x218c83=_0x28b3f4;return this[_0x218c83(0x14a)];}get[_0x28b3f4(0x118)](){const _0x5b0ea7=_0x28b3f4;return this[_0x5b0ea7(0x142)]||this[_0x5b0ea7(0x115)][_0x5b0ea7(0x10f)];}get[_0x28b3f4(0x151)](){const _0x38b948=_0x28b3f4;return this[_0x38b948(0x142)];}get[_0x28b3f4(0x115)](){const _0x1a046d=_0x28b3f4;if(!this['_renderer'])throw Error(_0x1a046d(0x11f));return this['_renderer'];}get['app'](){const _0x5e95e9=_0x28b3f4;if(!this['_app'])throw Error(_0x5e95e9(0x157));return this[_0x5e95e9(0x133)];}constructor(_0x1c931e,_0x2383eb){const _0x1a22d4=_0x28b3f4;this[_0x1a22d4(0x14a)]=null,this[_0x1a22d4(0x10e)]=null,this[_0x1a22d4(0x160)]=null,this[_0x1a22d4(0x147)]=null,this[_0x1a22d4(0x133)]=null,this[_0x1a22d4(0x148)]=null,this['_outerContainer']=null,this[_0x1a22d4(0x127)]=null,this[_0x1a22d4(0x109)]=!![],this[_0x1a22d4(0x145)]=null,this[_0x1a22d4(0x133)]=_0x1c931e,_0x2383eb[_0x1a22d4(0x12b)]&&(this[_0x1a22d4(0x142)]=document[_0x1a22d4(0x132)](_0x2383eb['elementId'])),this[_0x1a22d4(0x120)](_0x2383eb[_0x1a22d4(0x115)]['type'],_0x2383eb[_0x1a22d4(0x115)][_0x1a22d4(0x144)]),_0x2383eb['isLabelRendererNeeded']&&this[_0x1a22d4(0x112)](),_0x2383eb[_0x1a22d4(0x15b)]&&this[_0x1a22d4(0x149)](),_0x2383eb['isUILayerNeeded']&&this[_0x1a22d4(0x113)](),setTimeout(()=>{const _0x512333=_0x1a22d4;var _0x4dbe1d;this[_0x512333(0x12f)]((_0x4dbe1d=_0x2383eb['postProcess'])!==null&&_0x4dbe1d!==void 0?_0x4dbe1d:{'steps':[]});},0x32),this[_0x1a22d4(0x142)]&&(this[_0x1a22d4(0x148)]=new ResizeObserver(_0x5c4f2a=>{const _0x190165=_0x1a22d4;for(let _0x3feb72 of _0x5c4f2a){_0x3feb72[_0x190165(0x10c)]&&this[_0x190165(0x14e)]();}}),this[_0x1a22d4(0x148)][_0x1a22d4(0x155)](this[_0x1a22d4(0x142)])),this[_0x1a22d4(0x11a)]['onCameraChangedDelegate'][_0x1a22d4(0x134)](()=>{const _0x3bafb3=_0x1a22d4;this[_0x3bafb3(0x145)]&&(this[_0x3bafb3(0x145)]['updateCamera'](this['app'][_0x3bafb3(0x126)]),this['postProcessManager'][_0x3bafb3(0x138)]());});}[_0x28b3f4(0x120)](_0x2af262,_0x790fc4){const _0x427ddf=_0x28b3f4,_0x5e8df7=this[_0x427ddf(0x142)];this['_renderer']&&(_0x5e8df7&&_0x5e8df7[_0x427ddf(0x121)](this['_renderer'][_0x427ddf(0x10f)]),this['_renderer'][_0x427ddf(0x146)]());let _0x3a28d6=_0x5e8df7?_0x5e8df7[_0x427ddf(0x13f)]:0x200,_0x49edaf=_0x5e8df7?_0x5e8df7[_0x427ddf(0x131)]:0x200;switch(_0x2af262){case exports.RendererType['WebGPU']:this[_0x427ddf(0x10e)]=new webgpu.WebGPURenderer(_0x790fc4);break;case exports.RendererType[_0x427ddf(0x116)]:this['_renderer']=new three.WebGLRenderer(_0x790fc4);break;}this[_0x427ddf(0x10e)][_0x427ddf(0x15f)](window[_0x427ddf(0x163)]),this['_renderer'][_0x427ddf(0x137)](_0x3a28d6,_0x49edaf),this[_0x427ddf(0x10e)]['shadowMap']['enabled']=!![],this['_renderer'][_0x427ddf(0x162)][_0x427ddf(0xfd)]=0x1,this[_0x427ddf(0x10e)][_0x427ddf(0x14d)]=0x0,this['_renderer'][_0x427ddf(0x124)]=0x1,this[_0x427ddf(0x10e)][_0x427ddf(0x107)](0x0),this['_renderer'][_0x427ddf(0x10f)][_0x427ddf(0x11b)][_0x427ddf(0x13c)]=_0x427ddf(0x14b),this[_0x427ddf(0x10e)][_0x427ddf(0x10f)][_0x427ddf(0x11b)]['left']='0',this[_0x427ddf(0x10e)][_0x427ddf(0x10f)]['style']['top']='0',this[_0x427ddf(0x10e)][_0x427ddf(0x10f)][_0x427ddf(0x11b)]['zIndex']='20',this['_renderer']['domElement'][_0x427ddf(0x11b)][_0x427ddf(0x100)]=_0x427ddf(0x12c),this['_renderer'][_0x427ddf(0x10f)][_0x427ddf(0x11b)][_0x427ddf(0x119)]=_0x427ddf(0x159),_0x5e8df7&&_0x5e8df7['appendChild'](this[_0x427ddf(0x10e)][_0x427ddf(0x10f)]);}[_0x28b3f4(0x112)](){const _0x3bbbd7=_0x28b3f4,_0x5316cf=this[_0x3bbbd7(0x142)];this[_0x3bbbd7(0x160)]&&(_0x5316cf&&_0x5316cf['removeChild'](this[_0x3bbbd7(0x160)]['domElement']));let _0x3d6c0b=_0x5316cf?_0x5316cf[_0x3bbbd7(0x13f)]:0x200,_0x5a58ee=_0x5316cf?_0x5316cf['clientHeight']:0x200;this[_0x3bbbd7(0x160)]=new Addons_js.CSS2DRenderer(),this[_0x3bbbd7(0x160)]['setSize'](_0x3d6c0b,_0x5a58ee),this['labelRenderer'][_0x3bbbd7(0x10f)][_0x3bbbd7(0x11b)][_0x3bbbd7(0x119)]=_0x3bbbd7(0x159),this[_0x3bbbd7(0x160)][_0x3bbbd7(0x10f)][_0x3bbbd7(0x11b)][_0x3bbbd7(0x13c)]=_0x3bbbd7(0x14b),this[_0x3bbbd7(0x160)][_0x3bbbd7(0x10f)][_0x3bbbd7(0x11b)][_0x3bbbd7(0x152)]=_0x3bbbd7(0x122),this['labelRenderer'][_0x3bbbd7(0x10f)][_0x3bbbd7(0x129)]='scene-labelRenderer',this['labelRenderer'][_0x3bbbd7(0x10f)]['style'][_0x3bbbd7(0x14f)]='30',_0x5316cf&&_0x5316cf['appendChild'](this[_0x3bbbd7(0x160)][_0x3bbbd7(0x10f)]);}[_0x28b3f4(0x149)](){const _0x6e366f=_0x28b3f4,_0x70d7f8=this[_0x6e366f(0x142)];this[_0x6e366f(0x147)]&&(_0x70d7f8&&_0x70d7f8[_0x6e366f(0x121)](this[_0x6e366f(0x147)]['domElement']));let _0x4f9cb1=_0x70d7f8?_0x70d7f8[_0x6e366f(0x13f)]:0x200,_0x530808=_0x70d7f8?_0x70d7f8[_0x6e366f(0x131)]:0x200;this[_0x6e366f(0x147)]=new Addons_js.CSS3DRenderer(),this['css3dRenderer'][_0x6e366f(0x137)](_0x4f9cb1,_0x530808),this['css3dRenderer']['domElement'][_0x6e366f(0x11b)][_0x6e366f(0x119)]=_0x6e366f(0x159),this['css3dRenderer'][_0x6e366f(0x10f)][_0x6e366f(0x11b)][_0x6e366f(0x13c)]=_0x6e366f(0x14b),this[_0x6e366f(0x147)]['domElement'][_0x6e366f(0x11b)][_0x6e366f(0x104)]=_0x6e366f(0x122),this[_0x6e366f(0x147)][_0x6e366f(0x10f)][_0x6e366f(0x11b)][_0x6e366f(0x152)]=_0x6e366f(0x122),this[_0x6e366f(0x147)][_0x6e366f(0x10f)][_0x6e366f(0x11b)][_0x6e366f(0x14f)]='0',this[_0x6e366f(0x147)][_0x6e366f(0x10f)][_0x6e366f(0x129)]=_0x6e366f(0x101),_0x70d7f8&&_0x70d7f8[_0x6e366f(0x13d)](this['css3dRenderer']['domElement'],_0x70d7f8[_0x6e366f(0x13b)]);}[_0x28b3f4(0x113)](){const _0x329e6b=_0x28b3f4;if(!this[_0x329e6b(0x142)])return;let _0x43c8a9=this['_outerContainer'][_0x329e6b(0x11c)](_0x329e6b(0x15c));!_0x43c8a9&&(_0x43c8a9=document[_0x329e6b(0xff)](_0x329e6b(0x108)),_0x43c8a9[_0x329e6b(0x129)]=_0x329e6b(0x135),_0x43c8a9['id']='scene-uiLayer',_0x43c8a9[_0x329e6b(0x11b)][_0x329e6b(0x13c)]='absolute',_0x43c8a9[_0x329e6b(0x11b)]['left']='0',_0x43c8a9[_0x329e6b(0x11b)]['top']='0',_0x43c8a9[_0x329e6b(0x11b)][_0x329e6b(0x141)]='100%',_0x43c8a9[_0x329e6b(0x11b)][_0x329e6b(0x15e)]=_0x329e6b(0x15d),_0x43c8a9[_0x329e6b(0x11b)][_0x329e6b(0x119)]=_0x329e6b(0x159),_0x43c8a9[_0x329e6b(0x11b)][_0x329e6b(0x14f)]='10',this[_0x329e6b(0x142)]['appendChild'](_0x43c8a9),this[_0x329e6b(0x14a)]=_0x43c8a9);}[_0x28b3f4(0x125)](){}[_0x28b3f4(0x12f)](_0x271e77){const _0x697a0b=_0x28b3f4;!this[_0x697a0b(0x145)]&&(this['postProcessManager']=this[_0x697a0b(0x14c)](_0x271e77)),this['postProcessManager']['setup']();}[_0x28b3f4(0x14c)](_0x540cd2){const _0x73a88b=_0x28b3f4;return this[_0x73a88b(0x115)]instanceof three.WebGLRenderer?new WebGLPostProcessManager(this['renderer'],this[_0x73a88b(0x11a)][_0x73a88b(0x117)][_0x73a88b(0x123)],this[_0x73a88b(0x11a)][_0x73a88b(0x126)],_0x540cd2,()=>this[_0x73a88b(0x136)]()):new PostProcessManager(this[_0x73a88b(0x115)],this['app'][_0x73a88b(0x117)][_0x73a88b(0x123)],this[_0x73a88b(0x11a)][_0x73a88b(0x126)],_0x540cd2,()=>this[_0x73a88b(0x136)]());}[_0x28b3f4(0x158)](_0x563e81){const _0x12c0b6=_0x28b3f4;this[_0x12c0b6(0x145)]&&this[_0x12c0b6(0x145)][_0x12c0b6(0x156)](_0x563e81);}['addOutlineObject'](_0x304da4){this['postProcessManager']&&this['postProcessManager']['addOutlineObject'](_0x304da4);}[_0x28b3f4(0x15a)](_0x52b1fe){const _0x50f1b3=_0x28b3f4;this['postProcessManager']&&this[_0x50f1b3(0x145)]['setOutlineObjects'](_0x52b1fe);}[_0x28b3f4(0x139)](_0x18815f){const _0x4c147e=_0x28b3f4;this[_0x4c147e(0x145)]&&this[_0x4c147e(0x145)]['removeOutlineObject'](_0x18815f);}['destroyPostProcess'](){const _0x271fdb=_0x28b3f4;this[_0x271fdb(0x145)]&&(this[_0x271fdb(0x145)][_0x271fdb(0x110)](),this['postProcessManager']=null);}['onWindowResize'](){const _0x412cd2=_0x28b3f4;let _0xaa3772=this[_0x412cd2(0x142)];if(!_0xaa3772)return;this['app'][_0x412cd2(0x14e)](_0xaa3772[_0x412cd2(0x13f)],_0xaa3772['clientHeight']),this[_0x412cd2(0x115)][_0x412cd2(0x137)](_0xaa3772[_0x412cd2(0x13f)],_0xaa3772['clientHeight']);if(this[_0x412cd2(0x160)])this[_0x412cd2(0x160)][_0x412cd2(0x137)](_0xaa3772[_0x412cd2(0x13f)],_0xaa3772[_0x412cd2(0x131)]);if(this['css3dRenderer'])this[_0x412cd2(0x147)][_0x412cd2(0x137)](_0xaa3772['clientWidth'],_0xaa3772['clientHeight']);this[_0x412cd2(0x145)]&&'resize'in this[_0x412cd2(0x145)]&&this[_0x412cd2(0x145)][_0x412cd2(0x111)](_0xaa3772[_0x412cd2(0x13f)],_0xaa3772[_0x412cd2(0x131)]),this['markRenderStateDirty']();}[_0x28b3f4(0x136)](){const _0x11c03d=_0x28b3f4;this[_0x11c03d(0x109)]=!![];}[_0x28b3f4(0x143)](){const _0x51c970=_0x28b3f4;if(!this[_0x51c970(0x109)])return;if(this[_0x51c970(0x145)]&&this[_0x51c970(0x145)][_0x51c970(0x143)]());else this[_0x51c970(0x115)]['render'](this[_0x51c970(0x11a)][_0x51c970(0x117)]['scene'],this[_0x51c970(0x11a)][_0x51c970(0x126)]);this['onAfterPostProcessRender'](),this['labelRenderer']&&this[_0x51c970(0x160)]['render'](this[_0x51c970(0x11a)][_0x51c970(0x117)][_0x51c970(0x123)],this[_0x51c970(0x11a)]['camera']),this[_0x51c970(0x147)]&&this[_0x51c970(0x147)][_0x51c970(0x143)](this[_0x51c970(0x11a)][_0x51c970(0x117)][_0x51c970(0x123)],this[_0x51c970(0x11a)]['camera']),this[_0x51c970(0x109)]=![];}['onAfterPostProcessRender'](){}async[_0x28b3f4(0x13a)](_0x5264f9=0x400,_0xa221bf=0x400){const _0x59d68a=_0x28b3f4;try{if(this[_0x59d68a(0x145)]&&this['postProcessManager'][_0x59d68a(0x143)]()){}else await this[_0x59d68a(0x115)][_0x59d68a(0x143)](this[_0x59d68a(0x11a)][_0x59d68a(0x117)][_0x59d68a(0x123)],this[_0x59d68a(0x11a)][_0x59d68a(0x126)]);const _0xa9ee99=this['renderer']['domElement'][_0x59d68a(0x141)],_0x1ccc00=this[_0x59d68a(0x115)]['domElement']['height'];let _0x843c29=_0xa9ee99||_0x5264f9,_0x2cc1c4=_0x1ccc00||_0xa221bf;(_0x843c29<=0x0||_0x2cc1c4<=0x0)&&(_0x843c29=_0x5264f9,_0x2cc1c4=_0xa221bf);const _0x56ec9d=document[_0x59d68a(0xff)](_0x59d68a(0x118));_0x56ec9d['width']=_0x5264f9,_0x56ec9d[_0x59d68a(0x15e)]=_0xa221bf;const _0x13aeef=_0x56ec9d[_0x59d68a(0x154)]('2d');if(!_0x13aeef)throw Error(_0x59d68a(0x10a));_0x13aeef[_0x59d68a(0x103)](this[_0x59d68a(0x115)]['domElement'],0x0,0x0,_0x843c29,_0x2cc1c4,0x0,0x0,_0x5264f9,_0xa221bf);const _0x4ba8a7=_0x56ec9d[_0x59d68a(0x161)](_0x59d68a(0x150));return _0x56ec9d[_0x59d68a(0x130)](),_0x4ba8a7;}catch(_0x2c8623){return '';}}[_0x28b3f4(0x114)](_0x44c606){const _0x178474=_0x28b3f4;if(!this[_0x178474(0x10e)])return;this[_0x178474(0x10e)]['shadowMap']['enabled']=_0x44c606;}[_0x28b3f4(0x11d)](_0x550488){const _0x5e2406=_0x28b3f4;if(!this[_0x5e2406(0x10e)])return;this[_0x5e2406(0x10e)][_0x5e2406(0x162)]['type']=_0x550488;}[_0x28b3f4(0x12d)](_0x57c01d){const _0x203e01=_0x28b3f4;if(!this['_renderer'])return;this[_0x203e01(0x10e)][_0x203e01(0x14d)]=_0x57c01d;}['setToneMappingExposure'](_0x45212b){const _0x50feb6=_0x28b3f4;if(!this[_0x50feb6(0x10e)])return;this[_0x50feb6(0x10e)][_0x50feb6(0x124)]=_0x45212b;}[_0x28b3f4(0x110)](){const _0xb8a506=_0x28b3f4;this[_0xb8a506(0x11e)](),this['renderer'][_0xb8a506(0x153)](null),this[_0xb8a506(0x148)]&&(this[_0xb8a506(0x148)][_0xb8a506(0x12e)](),this['resizeObserver']=null),this[_0xb8a506(0x160)]&&(this[_0xb8a506(0x160)][_0xb8a506(0x10f)]['remove'](),this['labelRenderer']=null),this[_0xb8a506(0x10e)]&&(this[_0xb8a506(0x115)]['domElement'][_0xb8a506(0x130)](),this[_0xb8a506(0x10e)][_0xb8a506(0x146)](),this[_0xb8a506(0x10e)]=null),this[_0xb8a506(0x127)]&&(this[_0xb8a506(0x127)][_0xb8a506(0x130)](),this[_0xb8a506(0x127)]=null),this[_0xb8a506(0x142)]=null,this[_0xb8a506(0x133)]=null;}}
|
|
85
85
|
|
|
86
|
-
function _0x5db7(_0x2822a3,_0x24fa67){_0x2822a3=_0x2822a3-0x16e;const _0x5b464c=_0x5b46();let _0x5db7c9=_0x5b464c[_0x2822a3];return _0x5db7c9;}const _0x3fc162=_0x5db7;(function(_0xf24972,_0x11f68f){const _0x3b650c=_0x5db7,_0x291b65=_0xf24972();while(!![]){try{const _0x4664fb=parseInt(_0x3b650c(0x1b0))/0x1+-parseInt(_0x3b650c(0x1a7))/0x2+parseInt(_0x3b650c(0x1a4))/0x3+parseInt(_0x3b650c(0x1b2))/0x4+-parseInt(_0x3b650c(0x191))/0x5*(-parseInt(_0x3b650c(0x195))/0x6)+-parseInt(_0x3b650c(0x171))/0x7*(-parseInt(_0x3b650c(0x192))/0x8)+-parseInt(_0x3b650c(0x19e))/0x9;if(_0x4664fb===_0x11f68f)break;else _0x291b65['push'](_0x291b65['shift']());}catch(_0x376f16){_0x291b65['push'](_0x291b65['shift']());}}}(_0x5b46,0xc4578));function _0x5b46(){const _0x27c96d=['has','2961540nETykz','getCenter','getChildActorsByIds','_onHoverBeginDelegate','getBoundsBottomCenterPosition','viewport','onDoubleClickDelegate','removeFromParent','childrenComponents','639223jfjpOv','length','3156960vbkcdV','onActorHoverEnd','getComponentById','getWorldForwardDirection','setWorldMatrix','onActorDoubleClick','broadcast','getBoundsTopCenterPosition','setScale','getWorldMatrix','setQuaternion','addLocalOffset','rootComponent','setRotation','removeChildActor','_onClickDelegate','uuid','KeepRelative','getWorldScale','getWorldPosition','getChildActorById','push','onHoverBeginDelegate','userData','max','localToWorld','destroyChildren','worldToLocal','getScale','_world','name','clearComponent','size','getBoundsCenterPosition','onActorHoverBegin','world','91406bhvDeN','getWorldRotation','rootComponent\x20is\x20invalid','getWorldQuaternion','childActors','_onDoubleClickDelegate','attachComponent','addChildComponent','getPosition','landToGround','setVisible','Actor\x20::\x20addChildActor\x20:\x20the\x20\x27newActor\x27\x20you\x20want\x20to\x20add\x20has\x20no\x20rootcomponent','addTickableActor','parentActor','delete','children','getWorldRightDirection','getWorldUpDirection','markRenderStateDirty','onAddedToWorld','tick','error','isTickEnabled','sub','parent','isVisible','removeComponent','app','KeepWorld','getBounds','destroy','_rootComponent','13775NFPTvu','712pAOLWY','getRotation','setPosition','264mxsZEu','min','detachFromParentComponent','isClickEnabled','onActorClick','setLayers','isHoverEnabled','LYObject','_name','13468608fvwnak','Actor','forEach','_onHoverEndDelegate','onHoverEndDelegate','getComponents','3208959bFVtQL','constructRootComponent'];_0x5b46=function(){return _0x27c96d;};return _0x5b46();}class Actor extends BaseObject{get['world'](){return this['_world'];}get[_0x3fc162(0x1d0)](){const _0x3a85a0=_0x3fc162;return this[_0x3a85a0(0x19d)];}set[_0x3fc162(0x1d0)](_0x9c1705){const _0x5725ba=_0x3fc162;this[_0x5725ba(0x19d)]=_0x9c1705;}get[_0x3fc162(0x1be)](){const _0x3de838=_0x3fc162;if(!this[_0x3de838(0x190)])throw Error(_0x3de838(0x173));return this[_0x3de838(0x190)];}set[_0x3fc162(0x1be)](_0x51ec30){const _0x5b4a69=_0x3fc162;_0x51ec30[_0x5b4a69(0x197)](),_0x51ec30['parentActor']=this;if(this[_0x5b4a69(0x190)]){let _0x51a174=this[_0x5b4a69(0x1be)][_0x5b4a69(0x1af)];for(let _0x2d4375=0x0;_0x2d4375<_0x51a174[_0x5b4a69(0x1b1)];++_0x2d4375){_0x51ec30['addChildComponent'](_0x51a174[_0x2d4375]);}this[_0x5b4a69(0x1be)][_0x5b4a69(0x18f)]();}this[_0x5b4a69(0x190)]=_0x51ec30;}get[_0x3fc162(0x1af)](){const _0x4af5c4=_0x3fc162;return this[_0x4af5c4(0x1be)]['childrenComponents'];}get[_0x3fc162(0x175)](){const _0x3301b1=_0x3fc162;var _0x5f55fe;let _0x25e8e3=[];return (_0x5f55fe=this[_0x3301b1(0x1be)]['threeObject'])===null||_0x5f55fe===void 0?void 0:_0x5f55fe[_0x3301b1(0x180)]['forEach'](_0x59fd38=>{const _0x238f44=_0x3301b1;var _0x152803;let _0x160fc9=(_0x152803=_0x59fd38[_0x238f44(0x1c9)][_0x238f44(0x19c)])===null||_0x152803===void 0?void 0:_0x152803['parentActor'];_0x160fc9!==this&&_0x160fc9 instanceof Actor&&_0x25e8e3['push'](_0x160fc9);}),_0x25e8e3;}get['parentActor'](){const _0x54cdc1=_0x3fc162;var _0x53ac51,_0x5df29e,_0x415e51;let _0x33a4ac=(_0x415e51=(_0x5df29e=(_0x53ac51=this['rootComponent']['threeObject'])===null||_0x53ac51===void 0?void 0:_0x53ac51[_0x54cdc1(0x189)])===null||_0x5df29e===void 0?void 0:_0x5df29e[_0x54cdc1(0x1c9)][_0x54cdc1(0x19c)])===null||_0x415e51===void 0?void 0:_0x415e51[_0x54cdc1(0x17e)];return _0x33a4ac===this?null:_0x33a4ac;}get[_0x3fc162(0x18a)](){const _0x219ba4=_0x3fc162;return this[_0x219ba4(0x1be)]?this['rootComponent'][_0x219ba4(0x18a)]:![];}get[_0x3fc162(0x187)](){return super['isTickEnabled'];}set[_0x3fc162(0x187)](_0xfb30c6){const _0x58b944=_0x3fc162;super[_0x58b944(0x187)]=_0xfb30c6,this[_0x58b944(0x187)]?this[_0x58b944(0x18c)]['world'][_0x58b944(0x17d)](this):this['app'][_0x58b944(0x170)]['removeTickableActor'](this);}get[_0x3fc162(0x1c8)](){return this['_onHoverBeginDelegate'];}get[_0x3fc162(0x1a2)](){return this['_onHoverEndDelegate'];}get['onClickDelegate'](){const _0x9e0f45=_0x3fc162;return this[_0x9e0f45(0x1c1)];}get[_0x3fc162(0x1ad)](){const _0x2ba577=_0x3fc162;return this[_0x2ba577(0x176)];}constructor(_0x238ba5,_0x315937){const _0x27b836=_0x3fc162;super(_0x315937),this[_0x27b836(0x19d)]=_0x27b836(0x19f),this[_0x27b836(0x190)]=null,this['_world']=null,this[_0x27b836(0x1aa)]=new Delegate(),this[_0x27b836(0x1a1)]=new Delegate(),this['_onClickDelegate']=new Delegate(),this[_0x27b836(0x176)]=new Delegate(),this[_0x27b836(0x18c)]=_0x238ba5,this[_0x27b836(0x1be)]=this[_0x27b836(0x1a5)](),this[_0x27b836(0x1be)][_0x27b836(0x17e)]=this;}[_0x3fc162(0x1a5)](){const _0xcb8c65=_0x3fc162;return new SceneComponent(this[_0xcb8c65(0x18c)]);}[_0x3fc162(0x16e)](_0x4a909d=!![]){const _0x317c9a=_0x3fc162;let _0x2fa8bd=new webgpu.Vector3();return this[_0x317c9a(0x18e)]()['getCenter'](_0x2fa8bd),!_0x4a909d?_0x2fa8bd[_0x317c9a(0x188)](this[_0x317c9a(0x179)]()):_0x2fa8bd;}[_0x3fc162(0x1c6)](_0x83d9f,_0x5a6373=!![]){const _0x32823e=_0x3fc162,_0x2db2ed=this['childActors'];for(const _0x203baa of _0x2db2ed){if(_0x203baa['uuid']===_0x83d9f)return _0x203baa;}if(_0x5a6373)for(const _0x4969b6 of _0x2db2ed){const _0x45c2a6=_0x4969b6[_0x32823e(0x1c6)](_0x83d9f,!![]);if(_0x45c2a6)return _0x45c2a6;}return null;}[_0x3fc162(0x1a9)](_0x5a41c3,_0x1ccc1e=!![]){const _0x323fc4=_0x3fc162,_0x4909e5=[],_0x54d251=new Set(_0x5a41c3),_0x487809=this['childActors'];for(const _0x44a945 of _0x487809){_0x54d251[_0x323fc4(0x1a6)](_0x44a945[_0x323fc4(0x1c2)])&&(_0x4909e5[_0x323fc4(0x1c7)](_0x44a945),_0x54d251[_0x323fc4(0x17f)](_0x44a945[_0x323fc4(0x1c2)]));}if(_0x1ccc1e&&_0x54d251[_0x323fc4(0x1d2)]>0x0)for(const _0x3bd25f of _0x487809){const _0x292900=_0x3bd25f[_0x323fc4(0x1a9)]([..._0x54d251],!![]);for(const _0x419045 of _0x292900){_0x4909e5[_0x323fc4(0x1c7)](_0x419045),_0x54d251['delete'](_0x419045[_0x323fc4(0x1c2)]);}if(_0x54d251[_0x323fc4(0x1d2)]===0x0)break;}return _0x4909e5;}[_0x3fc162(0x1b4)](_0x7f036f){const _0x551604=_0x3fc162;return this[_0x551604(0x1be)]['getComponentById'](_0x7f036f);}[_0x3fc162(0x1b9)](_0x55e744=!![]){const _0x188276=_0x3fc162;let _0x51e2c8=new webgpu.Vector3(),_0x3eadc4=this['rootComponent'][_0x188276(0x18e)]();return _0x3eadc4[_0x188276(0x1a8)](_0x51e2c8),_0x51e2c8['y']=_0x3eadc4[_0x188276(0x1ca)]['y'],!_0x55e744?_0x51e2c8[_0x188276(0x188)](this[_0x188276(0x179)]()):_0x51e2c8;}[_0x3fc162(0x1ab)](_0x1477c5=!![]){const _0x318f1b=_0x3fc162;let _0x5d1822=new webgpu.Vector3(),_0x2425a9=this[_0x318f1b(0x18e)]();return _0x2425a9[_0x318f1b(0x1a8)](_0x5d1822),_0x5d1822['y']=_0x2425a9[_0x318f1b(0x196)]['y'],!_0x1477c5?_0x5d1822[_0x318f1b(0x188)](this['getPosition']()):_0x5d1822;}[_0x3fc162(0x18e)](){const _0x21d7e=_0x3fc162;return this[_0x21d7e(0x1be)][_0x21d7e(0x18e)]();}['destroy'](){const _0x18189f=_0x3fc162;let _0x1d5380=this[_0x18189f(0x175)];_0x1d5380[_0x18189f(0x1a0)](_0x1ad20b=>{const _0x5b4808=_0x18189f;_0x1ad20b[_0x5b4808(0x18f)]();}),this['rootComponent'][_0x18189f(0x18f)]();}[_0x3fc162(0x17b)](_0x4dde69){const _0x4d92ae=_0x3fc162;this['rootComponent'][_0x4d92ae(0x17b)](_0x4dde69);}[_0x3fc162(0x19a)](_0x544c49,_0xd89286=!![]){const _0x300093=_0x3fc162;this[_0x300093(0x1be)][_0x300093(0x19a)](_0x544c49),_0xd89286&&this[_0x300093(0x175)][_0x300093(0x1a0)](_0x229d37=>{const _0x4378ba=_0x300093;_0x229d37[_0x4378ba(0x19a)](_0x544c49,_0xd89286);});}[_0x3fc162(0x185)](_0x6ba6a7){const _0x46abbe=_0x3fc162;if(!this[_0x46abbe(0x187)])return;super[_0x46abbe(0x185)](_0x6ba6a7),this[_0x46abbe(0x1be)][_0x46abbe(0x185)](_0x6ba6a7);}[_0x3fc162(0x179)](){const _0x11a61c=_0x3fc162;return this[_0x11a61c(0x1be)][_0x11a61c(0x179)]();}[_0x3fc162(0x194)](..._0x3e47b9){const _0x3ca4b5=_0x3fc162;_0x3e47b9[_0x3ca4b5(0x1b1)]===0x1?this[_0x3ca4b5(0x1be)][_0x3ca4b5(0x194)](_0x3e47b9[0x0]):this[_0x3ca4b5(0x1be)][_0x3ca4b5(0x194)](_0x3e47b9[0x0],_0x3e47b9[0x1],_0x3e47b9[0x2]);}[_0x3fc162(0x193)](){const _0x57f17a=_0x3fc162;return this['rootComponent'][_0x57f17a(0x193)]();}[_0x3fc162(0x1bf)](..._0xe6830){const _0x219e81=_0x3fc162;_0xe6830[_0x219e81(0x1b1)]===0x1?this['rootComponent'][_0x219e81(0x1bf)](_0xe6830[0x0]):this[_0x219e81(0x1be)][_0x219e81(0x1bf)](_0xe6830[0x0],_0xe6830[0x1],_0xe6830[0x2]);}['getQuaternion'](){const _0x7d5387=_0x3fc162;return this[_0x7d5387(0x1be)]['getQuaternion']();}[_0x3fc162(0x1bc)](..._0x43041e){const _0x473fee=_0x3fc162;_0x43041e[_0x473fee(0x1b1)]===0x1?this[_0x473fee(0x1be)][_0x473fee(0x1bc)](_0x43041e[0x0]):this[_0x473fee(0x1be)][_0x473fee(0x1bc)](_0x43041e[0x0],_0x43041e[0x1],_0x43041e[0x2],_0x43041e[0x3]);}[_0x3fc162(0x1ce)](){const _0x3ed7af=_0x3fc162;return this[_0x3ed7af(0x1be)][_0x3ed7af(0x1ce)]();}[_0x3fc162(0x1ba)](..._0x482b8f){const _0xb1f9b0=_0x3fc162;_0x482b8f[_0xb1f9b0(0x1b1)]===0x1?this['rootComponent'][_0xb1f9b0(0x1ba)](_0x482b8f[0x0]):this['rootComponent'][_0xb1f9b0(0x1ba)](_0x482b8f[0x0],_0x482b8f[0x1],_0x482b8f[0x2]);}[_0x3fc162(0x1bb)](){const _0x48fc8f=_0x3fc162;return this[_0x48fc8f(0x1be)]['getWorldMatrix']();}[_0x3fc162(0x1b6)](_0x4977bc){const _0xc9186d=_0x3fc162;this[_0xc9186d(0x1be)][_0xc9186d(0x1b6)](_0x4977bc);}[_0x3fc162(0x1c5)](){const _0x5163f0=_0x3fc162;return this['rootComponent'][_0x5163f0(0x1c5)]();}[_0x3fc162(0x172)](){const _0x189404=_0x3fc162;return this['rootComponent'][_0x189404(0x172)]();}[_0x3fc162(0x174)](){const _0x597891=_0x3fc162;return this[_0x597891(0x1be)]['getWorldQuaternion']();}[_0x3fc162(0x1c4)](){const _0x31fed3=_0x3fc162;return this[_0x31fed3(0x1be)]['getWorldScale']();}[_0x3fc162(0x1b5)](){const _0xece158=_0x3fc162;return this[_0xece158(0x1be)]['getWorldForwardDirection']();}[_0x3fc162(0x182)](){const _0x515077=_0x3fc162;return this[_0x515077(0x1be)][_0x515077(0x182)]();}[_0x3fc162(0x181)](){const _0x1d72fb=_0x3fc162;return this[_0x1d72fb(0x1be)][_0x1d72fb(0x181)]();}[_0x3fc162(0x1bd)](_0x55badd,_0x3daefc){const _0x34db92=_0x3fc162;let _0x1e4596=this['getPosition']();this[_0x34db92(0x194)](_0x1e4596['x']+_0x55badd['x']*_0x3daefc,_0x1e4596['y']+_0x55badd['y']*_0x3daefc,_0x1e4596['z']+_0x55badd['z']*_0x3daefc);}[_0x3fc162(0x1cd)](_0x3f7bb1){const _0xa150cb=_0x3fc162;return this['rootComponent'][_0xa150cb(0x1cd)](_0x3f7bb1);}[_0x3fc162(0x1cb)](_0x548a23){const _0xbd19b0=_0x3fc162;return this[_0xbd19b0(0x1be)]['localToWorld'](_0x548a23);}[_0x3fc162(0x1a3)](){const _0x22a70c=_0x3fc162;return this[_0x22a70c(0x1be)][_0x22a70c(0x1af)];}['addComponent'](_0x33a1b8,_0x470929=exports.AttachmentRules[_0x3fc162(0x1c3)]){const _0x3b64bf=_0x3fc162;this[_0x3b64bf(0x1be)][_0x3b64bf(0x178)](_0x33a1b8,_0x470929),this[_0x3b64bf(0x1cf)]&&_0x33a1b8[_0x3b64bf(0x184)](this['_world']);}[_0x3fc162(0x18b)](_0x2fb066){const _0x19e127=_0x3fc162;if(_0x2fb066===this[_0x19e127(0x190)])return;this[_0x19e127(0x1be)]['removeChildComponent'](_0x2fb066);}[_0x3fc162(0x1d1)](){const _0x368ed3=_0x3fc162;this['rootComponent'][_0x368ed3(0x1cc)]();}['addChildActor'](_0x5ae5cb,_0x3527a7=exports.AttachmentRules['KeepWorld']){const _0xe46dac=_0x3fc162;if(!_0x5ae5cb[_0xe46dac(0x1be)]){console[_0xe46dac(0x186)](_0xe46dac(0x17c));return;}if(_0x5ae5cb['parentActor']===this)return;_0x3527a7===exports.AttachmentRules['KeepRelative']&&this['rootComponent'][_0xe46dac(0x177)](_0x5ae5cb[_0xe46dac(0x1be)]);if(_0x3527a7===exports.AttachmentRules[_0xe46dac(0x18d)]){let _0x5808c8=_0x5ae5cb[_0xe46dac(0x1bb)]();this[_0xe46dac(0x1be)]['attachComponent'](_0x5ae5cb[_0xe46dac(0x1be)]),_0x5ae5cb[_0xe46dac(0x1b6)](_0x5808c8);}this[_0xe46dac(0x1cf)]&&this['_world'][_0xe46dac(0x1ac)][_0xe46dac(0x183)]();}[_0x3fc162(0x1c0)](_0x2270a2){const _0x497f1f=_0x3fc162;let _0x4c7adb=_0x2270a2[_0x497f1f(0x1bb)]();this[_0x497f1f(0x1be)]['detachComponent'](_0x2270a2[_0x497f1f(0x1be)]),_0x2270a2[_0x497f1f(0x1b6)](_0x4c7adb);}[_0x3fc162(0x1ae)](){const _0x648ade=_0x3fc162;this[_0x648ade(0x17e)]&&this['parentActor'][_0x648ade(0x1c0)](this);}['onAddedToWorld'](_0x44a14f){const _0x524dbf=_0x3fc162;this[_0x524dbf(0x1cf)]=_0x44a14f,this['rootComponent'][_0x524dbf(0x184)](this[_0x524dbf(0x1cf)]),this[_0x524dbf(0x175)][_0x524dbf(0x1a0)](_0x576ceb=>{const _0x51b9c2=_0x524dbf;_0x576ceb[_0x51b9c2(0x184)](_0x44a14f);});}['onRemovedFromWorld'](){const _0x1f1909=_0x3fc162;this[_0x1f1909(0x1cf)]=null;}get[_0x3fc162(0x19b)](){const _0x261482=_0x3fc162;return this[_0x261482(0x1be)][_0x261482(0x19b)];}set[_0x3fc162(0x19b)](_0x15a910){const _0x8f3883=_0x3fc162;this[_0x8f3883(0x1be)][_0x8f3883(0x19b)]=_0x15a910;}get[_0x3fc162(0x198)](){const _0x3bd9bc=_0x3fc162;return this[_0x3bd9bc(0x1be)]['isClickEnabled'];}set[_0x3fc162(0x198)](_0x242692){const _0x4db9ba=_0x3fc162;this[_0x4db9ba(0x1be)][_0x4db9ba(0x198)]=_0x242692;}[_0x3fc162(0x16f)](_0x32a2b4){const _0x30029e=_0x3fc162;this['_onHoverBeginDelegate'][_0x30029e(0x1b8)](_0x32a2b4);}[_0x3fc162(0x1b3)](_0x2cc7a2){const _0x342532=_0x3fc162;this[_0x342532(0x1a1)]['broadcast'](_0x2cc7a2);}[_0x3fc162(0x199)](_0x43364b){const _0x3471b4=_0x3fc162;this[_0x3471b4(0x1c1)][_0x3471b4(0x1b8)](_0x43364b);}[_0x3fc162(0x1b7)](_0x49e775){this['_onDoubleClickDelegate']['broadcast'](_0x49e775);}[_0x3fc162(0x17a)](){}}
|
|
86
|
+
function _0x1c30(){const _0x3338e6=['viewport','onHoverEndDelegate','removeChildComponent','broadcast','addChildActor','getWorldQuaternion','tick','LYObject','error','getChildActorsByIds','getWorldUpDirection','min','push','setRotation','onDoubleClickDelegate','addChildComponent','3LKfjVh','world','isHoverEnabled','attachComponent','addTickableActor','delete','childActors','name','7AbVcok','destroy','getBoundsTopCenterPosition','onActorHoverBegin','uuid','size','getWorldScale','getWorldRotation','getBoundsBottomCenterPosition','setQuaternion','destroyChildren','getRotation','_onHoverEndDelegate','children','app','threeObject','onAddedToWorld','getWorldPosition','constructRootComponent','getCenter','getWorldMatrix','getComponentById','detachFromParentComponent','onActorClick','parentActor','onActorHoverEnd','forEach','childrenComponents','rootComponent\x20is\x20invalid','isVisible','getScale','setScale','7018560QTEpJX','KeepRelative','removeComponent','getBounds','removeTickableActor','1976640BcqNRL','userData','_name','setLayers','removeChildActor','2466678IKiGjC','isClickEnabled','localToWorld','Actor\x20::\x20addChildActor\x20:\x20the\x20\x27newActor\x27\x20you\x20want\x20to\x20add\x20has\x20no\x20rootcomponent','getWorldRightDirection','230DAEyCW','detachComponent','_onHoverBeginDelegate','KeepWorld','isTickEnabled','4429456rKXemc','_onClickDelegate','setPosition','setWorldMatrix','getPosition','worldToLocal','_rootComponent','onHoverBeginDelegate','sub','Actor','1272075aZXqfc','rootComponent','markRenderStateDirty','onActorDoubleClick','getBoundsCenterPosition','192582yFijms','getWorldForwardDirection','length','getQuaternion','landToGround','onRemovedFromWorld','_onDoubleClickDelegate','_world','319552sGbIGf','getChildActorById','onClickDelegate'];_0x1c30=function(){return _0x3338e6;};return _0x1c30();}const _0x4fee80=_0x5aea;(function(_0xbc673b,_0x2e6556){const _0x38aa0c=_0x5aea,_0x35cd2a=_0xbc673b();while(!![]){try{const _0xe8ba48=parseInt(_0x38aa0c(0x111))/0x1*(parseInt(_0x38aa0c(0xfe))/0x2)+parseInt(_0x38aa0c(0xf1))/0x3+parseInt(_0x38aa0c(0xe7))/0x4+parseInt(_0x38aa0c(0xd8))/0x5+-parseInt(_0x38aa0c(0xdd))/0x6*(parseInt(_0x38aa0c(0x119))/0x7)+-parseInt(_0x38aa0c(0xd3))/0x8+-parseInt(_0x38aa0c(0xf6))/0x9*(parseInt(_0x38aa0c(0xe2))/0xa);if(_0xe8ba48===_0x2e6556)break;else _0x35cd2a['push'](_0x35cd2a['shift']());}catch(_0x4bb5bd){_0x35cd2a['push'](_0x35cd2a['shift']());}}}(_0x1c30,0x98b32));function _0x5aea(_0x5926c3,_0x768944){_0x5926c3=_0x5926c3-0xbe;const _0x1c3076=_0x1c30();let _0x5aea47=_0x1c3076[_0x5926c3];return _0x5aea47;}class Actor extends BaseObject{get[_0x4fee80(0x112)](){return this['_world'];}get[_0x4fee80(0x118)](){const _0x528caf=_0x4fee80;return this[_0x528caf(0xda)];}set['name'](_0xe910f7){const _0x3587f1=_0x4fee80;this[_0x3587f1(0xda)]=_0xe910f7;}get[_0x4fee80(0xf2)](){const _0x208cac=_0x4fee80;if(!this[_0x208cac(0xed)])throw Error(_0x208cac(0xcf));return this[_0x208cac(0xed)];}set[_0x4fee80(0xf2)](_0x375986){const _0x5c7cae=_0x4fee80;_0x375986[_0x5c7cae(0xc9)](),_0x375986['parentActor']=this;if(this[_0x5c7cae(0xed)]){let _0x387fc4=this[_0x5c7cae(0xf2)][_0x5c7cae(0xce)];for(let _0x3d000d=0x0;_0x3d000d<_0x387fc4[_0x5c7cae(0xf8)];++_0x3d000d){_0x375986[_0x5c7cae(0x110)](_0x387fc4[_0x3d000d]);}this['rootComponent'][_0x5c7cae(0x11a)]();}this[_0x5c7cae(0xed)]=_0x375986;}get[_0x4fee80(0xce)](){const _0x21c21d=_0x4fee80;return this[_0x21c21d(0xf2)][_0x21c21d(0xce)];}get[_0x4fee80(0x117)](){const _0x1f4cd2=_0x4fee80;var _0x462bb3;let _0x395656=[];return (_0x462bb3=this[_0x1f4cd2(0xf2)][_0x1f4cd2(0xc2)])===null||_0x462bb3===void 0?void 0:_0x462bb3[_0x1f4cd2(0xc0)][_0x1f4cd2(0xcd)](_0x2a9826=>{const _0x3cd6fc=_0x1f4cd2;var _0x1a5339;let _0x3293bb=(_0x1a5339=_0x2a9826[_0x3cd6fc(0xd9)][_0x3cd6fc(0x108)])===null||_0x1a5339===void 0?void 0:_0x1a5339[_0x3cd6fc(0xcb)];_0x3293bb!==this&&_0x3293bb instanceof Actor&&_0x395656[_0x3cd6fc(0x10d)](_0x3293bb);}),_0x395656;}get[_0x4fee80(0xcb)](){const _0x271610=_0x4fee80;var _0x1a266c,_0x5ad0b7,_0x140ba0;let _0x14ca09=(_0x140ba0=(_0x5ad0b7=(_0x1a266c=this['rootComponent']['threeObject'])===null||_0x1a266c===void 0?void 0:_0x1a266c['parent'])===null||_0x5ad0b7===void 0?void 0:_0x5ad0b7[_0x271610(0xd9)][_0x271610(0x108)])===null||_0x140ba0===void 0?void 0:_0x140ba0['parentActor'];return _0x14ca09===this?null:_0x14ca09;}get[_0x4fee80(0xd0)](){const _0x1e069f=_0x4fee80;return this[_0x1e069f(0xf2)]?this[_0x1e069f(0xf2)][_0x1e069f(0xd0)]:![];}get[_0x4fee80(0xe6)](){return super['isTickEnabled'];}set[_0x4fee80(0xe6)](_0x2bcc5d){const _0x39e077=_0x4fee80;super['isTickEnabled']=_0x2bcc5d,this[_0x39e077(0xe6)]?this[_0x39e077(0xc1)][_0x39e077(0x112)][_0x39e077(0x115)](this):this[_0x39e077(0xc1)][_0x39e077(0x112)][_0x39e077(0xd7)](this);}get[_0x4fee80(0xee)](){const _0x4af052=_0x4fee80;return this[_0x4af052(0xe4)];}get[_0x4fee80(0x102)](){const _0x5b4796=_0x4fee80;return this[_0x5b4796(0xbf)];}get[_0x4fee80(0x100)](){const _0x42592c=_0x4fee80;return this[_0x42592c(0xe8)];}get[_0x4fee80(0x10f)](){const _0xe53125=_0x4fee80;return this[_0xe53125(0xfc)];}constructor(_0x19b789,_0x45d928){const _0x43cd38=_0x4fee80;super(_0x45d928),this[_0x43cd38(0xda)]=_0x43cd38(0xf0),this[_0x43cd38(0xed)]=null,this['_world']=null,this[_0x43cd38(0xe4)]=new Delegate(),this[_0x43cd38(0xbf)]=new Delegate(),this[_0x43cd38(0xe8)]=new Delegate(),this[_0x43cd38(0xfc)]=new Delegate(),this[_0x43cd38(0xc1)]=_0x19b789,this[_0x43cd38(0xf2)]=this['constructRootComponent'](),this[_0x43cd38(0xf2)]['parentActor']=this;}[_0x4fee80(0xc5)](){const _0x45f2da=_0x4fee80;return new SceneComponent(this[_0x45f2da(0xc1)]);}[_0x4fee80(0xf5)](_0x217245=!![]){const _0x4519ef=_0x4fee80;let _0x63e8e6=new webgpu.Vector3();return this['getBounds']()['getCenter'](_0x63e8e6),!_0x217245?_0x63e8e6['sub'](this[_0x4519ef(0xeb)]()):_0x63e8e6;}[_0x4fee80(0xff)](_0x49e0fc,_0x44f463=!![]){const _0x146e1c=_0x4fee80,_0x2f3401=this['childActors'];for(const _0x15c69a of _0x2f3401){if(_0x15c69a['uuid']===_0x49e0fc)return _0x15c69a;}if(_0x44f463)for(const _0x507751 of _0x2f3401){const _0x1a6cf3=_0x507751[_0x146e1c(0xff)](_0x49e0fc,!![]);if(_0x1a6cf3)return _0x1a6cf3;}return null;}['getChildActorsByIds'](_0x89425a,_0x421177=!![]){const _0x17ce7a=_0x4fee80,_0x8d8a8=[],_0x3895a0=new Set(_0x89425a),_0x400162=this[_0x17ce7a(0x117)];for(const _0x566c7c of _0x400162){_0x3895a0['has'](_0x566c7c[_0x17ce7a(0x11d)])&&(_0x8d8a8[_0x17ce7a(0x10d)](_0x566c7c),_0x3895a0[_0x17ce7a(0x116)](_0x566c7c[_0x17ce7a(0x11d)]));}if(_0x421177&&_0x3895a0['size']>0x0)for(const _0x300f62 of _0x400162){const _0x568c5a=_0x300f62[_0x17ce7a(0x10a)]([..._0x3895a0],!![]);for(const _0x143c4c of _0x568c5a){_0x8d8a8[_0x17ce7a(0x10d)](_0x143c4c),_0x3895a0[_0x17ce7a(0x116)](_0x143c4c[_0x17ce7a(0x11d)]);}if(_0x3895a0[_0x17ce7a(0x11e)]===0x0)break;}return _0x8d8a8;}[_0x4fee80(0xc8)](_0x25160a){return this['rootComponent']['getComponentById'](_0x25160a);}[_0x4fee80(0x11b)](_0x2def27=!![]){const _0x38c4a6=_0x4fee80;let _0x56280d=new webgpu.Vector3(),_0x3e4247=this['rootComponent'][_0x38c4a6(0xd6)]();return _0x3e4247['getCenter'](_0x56280d),_0x56280d['y']=_0x3e4247['max']['y'],!_0x2def27?_0x56280d[_0x38c4a6(0xef)](this[_0x38c4a6(0xeb)]()):_0x56280d;}[_0x4fee80(0x121)](_0x286d35=!![]){const _0x27cc81=_0x4fee80;let _0x3708ca=new webgpu.Vector3(),_0x3509f0=this[_0x27cc81(0xd6)]();return _0x3509f0[_0x27cc81(0xc6)](_0x3708ca),_0x3708ca['y']=_0x3509f0[_0x27cc81(0x10c)]['y'],!_0x286d35?_0x3708ca[_0x27cc81(0xef)](this['getPosition']()):_0x3708ca;}[_0x4fee80(0xd6)](){const _0xae7f82=_0x4fee80;return this[_0xae7f82(0xf2)]['getBounds']();}['destroy'](){const _0x4ff7d3=_0x4fee80;let _0x1b03fd=this[_0x4ff7d3(0x117)];_0x1b03fd[_0x4ff7d3(0xcd)](_0x2a0201=>{const _0x5b1894=_0x4ff7d3;_0x2a0201[_0x5b1894(0x11a)]();}),this[_0x4ff7d3(0xf2)][_0x4ff7d3(0x11a)]();}['setVisible'](_0x23bfb2){const _0x28c0d4=_0x4fee80;this[_0x28c0d4(0xf2)]['setVisible'](_0x23bfb2);}['setLayers'](_0x4cee72,_0x5a8945=!![]){const _0x3f511c=_0x4fee80;this['rootComponent'][_0x3f511c(0xdb)](_0x4cee72),_0x5a8945&&this[_0x3f511c(0x117)][_0x3f511c(0xcd)](_0x4b51c6=>{_0x4b51c6['setLayers'](_0x4cee72,_0x5a8945);});}[_0x4fee80(0x107)](_0x32de27){const _0x20480f=_0x4fee80;if(!this['isTickEnabled'])return;super['tick'](_0x32de27),this['rootComponent'][_0x20480f(0x107)](_0x32de27);}['getPosition'](){const _0x4b23d7=_0x4fee80;return this[_0x4b23d7(0xf2)][_0x4b23d7(0xeb)]();}['setPosition'](..._0x148d35){const _0xcc1126=_0x4fee80;_0x148d35[_0xcc1126(0xf8)]===0x1?this[_0xcc1126(0xf2)][_0xcc1126(0xe9)](_0x148d35[0x0]):this[_0xcc1126(0xf2)][_0xcc1126(0xe9)](_0x148d35[0x0],_0x148d35[0x1],_0x148d35[0x2]);}['getRotation'](){const _0x8d75b6=_0x4fee80;return this[_0x8d75b6(0xf2)][_0x8d75b6(0xbe)]();}[_0x4fee80(0x10e)](..._0x50eb4b){const _0x37b3a0=_0x4fee80;_0x50eb4b[_0x37b3a0(0xf8)]===0x1?this[_0x37b3a0(0xf2)][_0x37b3a0(0x10e)](_0x50eb4b[0x0]):this[_0x37b3a0(0xf2)][_0x37b3a0(0x10e)](_0x50eb4b[0x0],_0x50eb4b[0x1],_0x50eb4b[0x2]);}['getQuaternion'](){const _0x3906b3=_0x4fee80;return this[_0x3906b3(0xf2)][_0x3906b3(0xf9)]();}[_0x4fee80(0x122)](..._0x3634c9){const _0x5051f3=_0x4fee80;_0x3634c9[_0x5051f3(0xf8)]===0x1?this[_0x5051f3(0xf2)][_0x5051f3(0x122)](_0x3634c9[0x0]):this[_0x5051f3(0xf2)]['setQuaternion'](_0x3634c9[0x0],_0x3634c9[0x1],_0x3634c9[0x2],_0x3634c9[0x3]);}[_0x4fee80(0xd1)](){const _0x24d834=_0x4fee80;return this[_0x24d834(0xf2)][_0x24d834(0xd1)]();}[_0x4fee80(0xd2)](..._0xe879a7){const _0x2b3e29=_0x4fee80;_0xe879a7[_0x2b3e29(0xf8)]===0x1?this['rootComponent'][_0x2b3e29(0xd2)](_0xe879a7[0x0]):this[_0x2b3e29(0xf2)][_0x2b3e29(0xd2)](_0xe879a7[0x0],_0xe879a7[0x1],_0xe879a7[0x2]);}[_0x4fee80(0xc7)](){const _0x3571b9=_0x4fee80;return this[_0x3571b9(0xf2)][_0x3571b9(0xc7)]();}['setWorldMatrix'](_0x5adc6f){const _0x5095cf=_0x4fee80;this['rootComponent'][_0x5095cf(0xea)](_0x5adc6f);}[_0x4fee80(0xc4)](){const _0x13924b=_0x4fee80;return this[_0x13924b(0xf2)][_0x13924b(0xc4)]();}[_0x4fee80(0x120)](){const _0x87ec14=_0x4fee80;return this[_0x87ec14(0xf2)][_0x87ec14(0x120)]();}[_0x4fee80(0x106)](){const _0x51c064=_0x4fee80;return this[_0x51c064(0xf2)]['getWorldQuaternion']();}[_0x4fee80(0x11f)](){const _0x3dc414=_0x4fee80;return this[_0x3dc414(0xf2)][_0x3dc414(0x11f)]();}['getWorldForwardDirection'](){const _0x353a10=_0x4fee80;return this[_0x353a10(0xf2)][_0x353a10(0xf7)]();}['getWorldUpDirection'](){const _0x42a1f1=_0x4fee80;return this['rootComponent'][_0x42a1f1(0x10b)]();}[_0x4fee80(0xe1)](){const _0x5dbf9e=_0x4fee80;return this[_0x5dbf9e(0xf2)]['getWorldRightDirection']();}['addLocalOffset'](_0x1ce63c,_0x109965){const _0x371251=_0x4fee80;let _0x2ef15b=this[_0x371251(0xeb)]();this[_0x371251(0xe9)](_0x2ef15b['x']+_0x1ce63c['x']*_0x109965,_0x2ef15b['y']+_0x1ce63c['y']*_0x109965,_0x2ef15b['z']+_0x1ce63c['z']*_0x109965);}[_0x4fee80(0xec)](_0x12a2f6){const _0x63a4da=_0x4fee80;return this[_0x63a4da(0xf2)][_0x63a4da(0xec)](_0x12a2f6);}[_0x4fee80(0xdf)](_0x552d9f){return this['rootComponent']['localToWorld'](_0x552d9f);}['getComponents'](){const _0x1d6efe=_0x4fee80;return this[_0x1d6efe(0xf2)][_0x1d6efe(0xce)];}['addComponent'](_0x536b9a,_0x1d7d98=exports.AttachmentRules['KeepRelative']){const _0x144ea4=_0x4fee80;this[_0x144ea4(0xf2)][_0x144ea4(0x110)](_0x536b9a,_0x1d7d98),this[_0x144ea4(0xfd)]&&_0x536b9a[_0x144ea4(0xc3)](this[_0x144ea4(0xfd)]);}[_0x4fee80(0xd5)](_0x347aa5){const _0x1a68d5=_0x4fee80;if(_0x347aa5===this['_rootComponent'])return;this[_0x1a68d5(0xf2)][_0x1a68d5(0x103)](_0x347aa5);}['clearComponent'](){const _0x55f1cc=_0x4fee80;this[_0x55f1cc(0xf2)][_0x55f1cc(0x123)]();}[_0x4fee80(0x105)](_0x5e30e2,_0x204f8d=exports.AttachmentRules[_0x4fee80(0xe5)]){const _0x143b67=_0x4fee80;if(!_0x5e30e2['rootComponent']){console[_0x143b67(0x109)](_0x143b67(0xe0));return;}if(_0x5e30e2[_0x143b67(0xcb)]===this)return;_0x204f8d===exports.AttachmentRules[_0x143b67(0xd4)]&&this[_0x143b67(0xf2)][_0x143b67(0x114)](_0x5e30e2[_0x143b67(0xf2)]);if(_0x204f8d===exports.AttachmentRules[_0x143b67(0xe5)]){let _0x3b97c5=_0x5e30e2[_0x143b67(0xc7)]();this[_0x143b67(0xf2)][_0x143b67(0x114)](_0x5e30e2[_0x143b67(0xf2)]),_0x5e30e2[_0x143b67(0xea)](_0x3b97c5);}this['_world']&&this[_0x143b67(0xfd)][_0x143b67(0x101)][_0x143b67(0xf3)]();}['removeChildActor'](_0x6e767b){const _0x58f74d=_0x4fee80;let _0x29567f=_0x6e767b[_0x58f74d(0xc7)]();this['rootComponent'][_0x58f74d(0xe3)](_0x6e767b[_0x58f74d(0xf2)]),_0x6e767b['setWorldMatrix'](_0x29567f);}['removeFromParent'](){const _0xe8d815=_0x4fee80;this[_0xe8d815(0xcb)]&&this[_0xe8d815(0xcb)][_0xe8d815(0xdc)](this);}[_0x4fee80(0xc3)](_0x9b390b){const _0x5ead98=_0x4fee80;this[_0x5ead98(0xfd)]=_0x9b390b,this[_0x5ead98(0xf2)][_0x5ead98(0xc3)](this[_0x5ead98(0xfd)]),this[_0x5ead98(0x117)][_0x5ead98(0xcd)](_0x3f76ec=>{const _0x4b69d7=_0x5ead98;_0x3f76ec[_0x4b69d7(0xc3)](_0x9b390b);});}[_0x4fee80(0xfb)](){const _0x4c11a8=_0x4fee80;this[_0x4c11a8(0xfd)]=null;}get[_0x4fee80(0x113)](){const _0x5da44b=_0x4fee80;return this[_0x5da44b(0xf2)]['isHoverEnabled'];}set[_0x4fee80(0x113)](_0x27abf2){const _0x518a34=_0x4fee80;this[_0x518a34(0xf2)][_0x518a34(0x113)]=_0x27abf2;}get[_0x4fee80(0xde)](){const _0x174318=_0x4fee80;return this[_0x174318(0xf2)]['isClickEnabled'];}set['isClickEnabled'](_0x5c2fd4){const _0x690632=_0x4fee80;this[_0x690632(0xf2)]['isClickEnabled']=_0x5c2fd4;}[_0x4fee80(0x11c)](_0x1b9fe0){const _0x588ac0=_0x4fee80;this[_0x588ac0(0xe4)]['broadcast'](_0x1b9fe0);}[_0x4fee80(0xcc)](_0x5ec665){const _0xfd9299=_0x4fee80;this[_0xfd9299(0xbf)][_0xfd9299(0x104)](_0x5ec665);}[_0x4fee80(0xca)](_0x2981e9){const _0x2a17bc=_0x4fee80;this[_0x2a17bc(0xe8)]['broadcast'](_0x2981e9);}[_0x4fee80(0xf4)](_0xef2f69){const _0x2da01a=_0x4fee80;this[_0x2da01a(0xfc)]['broadcast'](_0xef2f69);}[_0x4fee80(0xfa)](){}}
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _0x4edd93=_0x33b0;(function(_0x5d634f,_0x586714){var _0x52d9e4=_0x33b0,_0xbb5660=_0x5d634f();while(!![]){try{var _0x39bef9=-parseInt(_0x52d9e4(0x13f))/0x1+parseInt(_0x52d9e4(0x13a))/0x2*(parseInt(_0x52d9e4(0x13e))/0x3)+-parseInt(_0x52d9e4(0x135))/0x4*(parseInt(_0x52d9e4(0x131))/0x5)+parseInt(_0x52d9e4(0x12f))/0x6*(-parseInt(_0x52d9e4(0x134))/0x7)+parseInt(_0x52d9e4(0x13d))/0x8*(parseInt(_0x52d9e4(0x130))/0x9)+parseInt(_0x52d9e4(0x133))/0xa*(parseInt(_0x52d9e4(0x136))/0xb)+parseInt(_0x52d9e4(0x137))/0xc;if(_0x39bef9===_0x586714)break;else _0xbb5660['push'](_0xbb5660['shift']());}catch(_0x3c4e06){_0xbb5660['push'](_0xbb5660['shift']());}}}(_0x2a5f,0x9b8ba));function _0x33b0(_0x43cd44,_0xa77e0b){_0x43cd44=_0x43cd44-0x12b;var _0x2a5f2f=_0x2a5f();var _0x33b034=_0x2a5f2f[_0x43cd44];return _0x33b034;}class Pawn extends Actor{get[_0x4edd93(0x138)](){var _0x2bfb09=_0x4edd93;return this[_0x2bfb09(0x12d)]['camera'];}get[_0x4edd93(0x12c)](){var _0x279793=_0x4edd93;return this[_0x279793(0x139)];}set[_0x4edd93(0x12c)](_0x55bf78){var _0x5ee7f4=_0x4edd93;this[_0x5ee7f4(0x139)]=_0x55bf78;}constructor(_0x51e715){var _0x290d45=_0x4edd93;super(_0x51e715),this[_0x290d45(0x139)]=![],this[_0x290d45(0x13c)]=_0x51e715[_0x290d45(0x13c)],this[_0x290d45(0x132)]=!![];}[_0x4edd93(0x12b)](_0x13d63e){return;}[_0x4edd93(0x13b)](){}['unpossess'](){}[_0x4edd93(0x12e)](_0x2e8cf7,_0xcf0dcc,_0x4a771d,_0x4f0b21,_0x1d92f1=null,_0x315384=null){}['stopFocusing'](){}['destroy'](){}}Pawn['inputFilter']=()=>!![];function _0x2a5f(){var _0x37be54=['tick','enabled','app','focusTo','7962TAeUCU','241506DllkzC','55LWhChw','isTickEnabled','17920qwGwTP','4207BtqZaI','240152QPFzjy','4972lWskQU','11619732buzAOx','camera','_enabled','4wnopKp','possess','controller','152YRdNDH','591216xVMkpU','587226WORYwq'];_0x2a5f=function(){return _0x37be54;};return _0x2a5f();}
|
|
89
89
|
|
|
90
|
-
const _0x74f034=_0x5d27;(function(_0x3d7f47,_0x4e870a){const _0x10a9ec=_0x5d27,_0x430afb=_0x3d7f47();while(!![]){try{const _0x5dd8cb=parseInt(_0x10a9ec(0x11f))/0x1+parseInt(_0x10a9ec(0x135))/0x2*(parseInt(_0x10a9ec(0x132))/0x3)+parseInt(_0x10a9ec(0x14c))/0x4*(parseInt(_0x10a9ec(0x12b))/0x5)+-parseInt(_0x10a9ec(0x175))/0x6+parseInt(_0x10a9ec(0x176))/0x7+-parseInt(_0x10a9ec(0x161))/0x8+-parseInt(_0x10a9ec(0x178))/0x9*(parseInt(_0x10a9ec(0x11a))/0xa);if(_0x5dd8cb===_0x4e870a)break;else _0x430afb['push'](_0x430afb['shift']());}catch(_0x5baafe){_0x430afb['push'](_0x430afb['shift']());}}}(_0x4685,0x95f03));function _0x5d27(_0x4d1643,_0x21e282){_0x4d1643=_0x4d1643-0x11a;const _0x4685d4=_0x4685();let _0x5d2719=_0x4685d4[_0x4d1643];return _0x5d2719;}class Orbital extends Pawn{constructor(_0x3f76ab){const _0x4e550a=_0x5d27;super(_0x3f76ab),this[_0x4e550a(0x133)]=0x5,this[_0x4e550a(0x122)]=0.1,this[_0x4e550a(0x164)]=0xf4240,this[_0x4e550a(0x134)]=0x1,this[_0x4e550a(0x11e)]=0x1,this['minPolarAngle']=0x0,this[_0x4e550a(0x177)]=Math['PI']*0.5,this[_0x4e550a(0x16f)]=-Infinity,this['maxAzimuthAngle']=Infinity,this[_0x4e550a(0x126)]=!![],this['dampingFactor']=0xa,this[_0x4e550a(0x120)]=![],this[_0x4e550a(0x127)]=new webgpu.Vector2(),this[_0x4e550a(0x130)]=new webgpu.Vector3(),this[_0x4e550a(0x166)]=new webgpu.Quaternion(),this['_targetDistance']=0x5,this[_0x4e550a(0x157)]=null,this[_0x4e550a(0x12f)]=_0x41af05=>{const _0x131993=_0x4e550a;if(!Pawn[_0x131993(0x165)]())return;_0x41af05[_0x131993(0x169)]();},this[_0x4e550a(0x139)]=_0x3ae5c9=>{const _0xf9d024=_0x4e550a;if(!this[_0xf9d024(0x162)]||!Pawn[_0xf9d024(0x165)]())return;if(_0x3ae5c9['button']===0x0||_0x3ae5c9[_0xf9d024(0x167)]===0x2){this[_0xf9d024(0x120)]=!![],this[_0xf9d024(0x127)][_0xf9d024(0x140)](_0x3ae5c9[_0xf9d024(0x14d)],_0x3ae5c9['clientY']),this[_0xf9d024(0x153)](!![]);const _0x3485ba=this['app']['viewport'][_0xf9d024(0x179)];_0x3485ba&&typeof _0x3485ba[_0xf9d024(0x144)]===_0xf9d024(0x142)&&_0x3485ba[_0xf9d024(0x144)](_0x3ae5c9['pointerId']);}},this[_0x4e550a(0x125)]=_0x19b2fa=>{const _0x49f4f8=_0x4e550a;if(!this[_0x49f4f8(0x162)]||!this[_0x49f4f8(0x120)]||!Pawn[_0x49f4f8(0x165)]())return;if(_0x19b2fa[_0x49f4f8(0x150)]===0x0){this['_isDragging']=![],this[_0x49f4f8(0x153)](![]);return;}const _0x1363c9=_0x19b2fa[_0x49f4f8(0x14d)]-this['_lastPointerPosition']['x'],_0x1da103=_0x19b2fa['clientY']-this[_0x49f4f8(0x127)]['y'];this[_0x49f4f8(0x127)][_0x49f4f8(0x140)](_0x19b2fa[_0x49f4f8(0x14d)],_0x19b2fa[_0x49f4f8(0x121)]);const _0x27c58d=this[_0x49f4f8(0x131)][_0x49f4f8(0x137)][_0x49f4f8(0x179)];if(!_0x27c58d)return;if(_0x19b2fa[_0x49f4f8(0x150)]===0x1){const _0x16bbeb=this['rotateSpeed']*0x2*Math['PI'],_0x3ccc00=new webgpu.Euler(0x0,0x0,0x0,_0x49f4f8(0x15f))['setFromQuaternion'](this[_0x49f4f8(0x166)]);_0x3ccc00['y']-=_0x1363c9/_0x27c58d['clientHeight']*_0x16bbeb,_0x3ccc00['x']-=_0x1da103/_0x27c58d[_0x49f4f8(0x14a)]*_0x16bbeb;const _0xd71094=Math[_0x49f4f8(0x170)](this[_0x49f4f8(0x16e)]-Math['PI']/0x2,-Math['PI']/0x2+0.01),_0x4c7964=Math[_0x49f4f8(0x149)](this[_0x49f4f8(0x177)]-Math['PI']/0x2,Math['PI']/0x2-0.01);_0x3ccc00['x']=webgpu.MathUtils['clamp'](_0x3ccc00['x'],_0xd71094,_0x4c7964),isFinite(this[_0x49f4f8(0x16f)])&&isFinite(this[_0x49f4f8(0x138)])&&(_0x3ccc00['y']=webgpu.MathUtils[_0x49f4f8(0x14e)](_0x3ccc00['y'],this['minAzimuthAngle'],this[_0x49f4f8(0x138)])),_0x3ccc00['z']=0x0,this[_0x49f4f8(0x166)]['setFromEuler'](_0x3ccc00),!this[_0x49f4f8(0x126)]&&this[_0x49f4f8(0x15c)](this['_targetQuaternion']);}else {if(_0x19b2fa[_0x49f4f8(0x150)]===0x2){const _0x432444=this['_targetDistance']*0.002,_0x438bc0=new webgpu.Vector3(0x1,0x0,0x0)[_0x49f4f8(0x143)](this['_targetQuaternion'])[_0x49f4f8(0x172)](),_0xcf7a66=new webgpu.Vector3(0x0,0x1,0x0)['applyQuaternion'](this['_targetQuaternion'])['normalize']();this[_0x49f4f8(0x130)][_0x49f4f8(0x154)](_0x438bc0,-_0x1363c9*_0x432444),this[_0x49f4f8(0x130)][_0x49f4f8(0x154)](_0xcf7a66,_0x1da103*_0x432444),!this[_0x49f4f8(0x126)]&&this[_0x49f4f8(0x11c)](this[_0x49f4f8(0x130)]);}}},this[_0x4e550a(0x145)]=_0x3895a9=>{const _0x187690=_0x4e550a;var _0x52af4b;this[_0x187690(0x120)]=![],this[_0x187690(0x153)](![]);const _0x2b18b9=this[_0x187690(0x131)][_0x187690(0x137)][_0x187690(0x179)];_0x2b18b9&&typeof _0x2b18b9[_0x187690(0x15b)]===_0x187690(0x142)&&((_0x52af4b=_0x2b18b9['hasPointerCapture'])===null||_0x52af4b===void 0?void 0:_0x52af4b[_0x187690(0x17b)](_0x2b18b9,_0x3895a9['pointerId']))&&_0x2b18b9['releasePointerCapture'](_0x3895a9[_0x187690(0x12d)]);},this[_0x4e550a(0x159)]=_0x17f3df=>{const _0xeb2955=_0x4e550a;if(!this[_0xeb2955(0x162)]||!Pawn[_0xeb2955(0x165)]())return;const _0x1ef338=0.95;_0x17f3df['deltaY']>0x0?this[_0xeb2955(0x12a)]/=_0x1ef338:this[_0xeb2955(0x12a)]*=_0x1ef338,this[_0xeb2955(0x12a)]=webgpu.MathUtils[_0xeb2955(0x14e)](this[_0xeb2955(0x12a)],this[_0xeb2955(0x122)],this['maxDistance']),!this[_0xeb2955(0x126)]&&(this[_0xeb2955(0x133)]=this[_0xeb2955(0x12a)]);};}['possess'](){const _0x4ffdb1=_0x5d27;super[_0x4ffdb1(0x16d)]();this[_0x4ffdb1(0x173)]&&this[_0x4ffdb1(0x173)][_0x4ffdb1(0x17a)]&&(this[_0x4ffdb1(0x173)][_0x4ffdb1(0x17a)]['rotation'][_0x4ffdb1(0x16b)]=_0x4ffdb1(0x15f));this[_0x4ffdb1(0x130)]['copy'](this[_0x4ffdb1(0x174)]());const _0x5a5203=this['getQuaternion'](),_0x49fa7b=new webgpu.Euler(0x0,0x0,0x0,_0x4ffdb1(0x15f))[_0x4ffdb1(0x13a)](_0x5a5203);Math[_0x4ffdb1(0x158)](_0x49fa7b['z'])>0.00001?(_0x49fa7b['z']=0x0,this[_0x4ffdb1(0x166)][_0x4ffdb1(0x16c)](_0x49fa7b),this[_0x4ffdb1(0x15c)](this['_targetQuaternion'])):this[_0x4ffdb1(0x166)][_0x4ffdb1(0x14f)](_0x5a5203);this[_0x4ffdb1(0x12a)]=this[_0x4ffdb1(0x133)];const _0x90ba3a=this[_0x4ffdb1(0x131)]['controller'];_0x90ba3a&&(_0x90ba3a[_0x4ffdb1(0x141)][_0x4ffdb1(0x14b)](this[_0x4ffdb1(0x139)]),_0x90ba3a[_0x4ffdb1(0x12c)]['add'](this[_0x4ffdb1(0x125)]),_0x90ba3a['onPointerUpDelegate']['add'](this[_0x4ffdb1(0x145)]),_0x90ba3a[_0x4ffdb1(0x15d)][_0x4ffdb1(0x14b)](this[_0x4ffdb1(0x145)]),_0x90ba3a[_0x4ffdb1(0x148)]['add'](this[_0x4ffdb1(0x159)]),_0x90ba3a[_0x4ffdb1(0x171)]['add'](this['onContextMenu'])),this[_0x4ffdb1(0x11d)]();}[_0x74f034(0x160)](){const _0x4747ac=_0x74f034,_0x5c725e=this[_0x4747ac(0x174)](),_0x1e69cc=this['getQuaternion'](),_0x3a7a0d=new webgpu.Vector3(0x0,0x0,0x1)[_0x4747ac(0x143)](_0x1e69cc)[_0x4747ac(0x12e)](this[_0x4747ac(0x133)]),_0x4657d0=_0x5c725e[_0x4747ac(0x163)]()[_0x4747ac(0x14b)](_0x3a7a0d),_0x4d3ecd=new webgpu.Matrix4();_0x4d3ecd[_0x4747ac(0x147)](_0x4657d0,_0x5c725e,this[_0x4747ac(0x128)]['up']);const _0x1b67ae=new webgpu.Quaternion()[_0x4747ac(0x123)](_0x4d3ecd);return {'position':_0x4657d0,'quaternion':_0x1b67ae};}[_0x74f034(0x11d)](){const _0x193987=_0x74f034;if(!this['enabled']||!this[_0x193987(0x128)])return;const _0x1a0fd1=this[_0x193987(0x174)](),_0x1c45a1=this[_0x193987(0x15e)](),_0x44f68b=new webgpu.Vector3(0x0,0x0,0x1)[_0x193987(0x143)](_0x1c45a1)[_0x193987(0x12e)](this['distance']);this[_0x193987(0x128)][_0x193987(0x151)][_0x193987(0x14f)](_0x1a0fd1)[_0x193987(0x14b)](_0x44f68b),this['camera']['lookAt'](_0x1a0fd1);}[_0x74f034(0x13b)](){const _0x56b8f7=_0x74f034;super[_0x56b8f7(0x13b)]();const _0x43003c=this[_0x56b8f7(0x131)][_0x56b8f7(0x15a)];_0x43003c&&(_0x43003c['onPointerDownDelegate'][_0x56b8f7(0x155)](this['onPointerDown']),_0x43003c[_0x56b8f7(0x12c)]['remove'](this[_0x56b8f7(0x125)]),_0x43003c['onPointerUpDelegate'][_0x56b8f7(0x155)](this[_0x56b8f7(0x145)]),_0x43003c['onPointerCancelDelegate'][_0x56b8f7(0x155)](this[_0x56b8f7(0x145)]),_0x43003c[_0x56b8f7(0x148)][_0x56b8f7(0x155)](this[_0x56b8f7(0x159)]),_0x43003c[_0x56b8f7(0x171)]['remove'](this[_0x56b8f7(0x12f)])),this[_0x56b8f7(0x120)]=![],this['setCameraDraggingState'](![]),this['_focusTween']&&(this[_0x56b8f7(0x157)][_0x56b8f7(0x13f)](),this[_0x56b8f7(0x157)]=null);}[_0x74f034(0x153)](_0x36a529){const _0x311fe8=_0x74f034,_0x5e3c2a=this[_0x311fe8(0x131)][_0x311fe8(0x137)][_0x311fe8(0x156)];if(!_0x5e3c2a)return;_0x36a529?_0x5e3c2a[_0x311fe8(0x129)][_0x311fe8(0x13d)]='1':delete _0x5e3c2a[_0x311fe8(0x129)][_0x311fe8(0x13d)];}[_0x74f034(0x152)](_0x3d7c0a){const _0xcc0f31=_0x74f034;if(this[_0xcc0f31(0x126)]){const _0xf27681=Math[_0xcc0f31(0x149)](_0x3d7c0a,0.1),_0x33555c=0x1-Math[_0xcc0f31(0x136)](-this[_0xcc0f31(0x13e)]*_0xf27681);this[_0xcc0f31(0x133)]=webgpu.MathUtils[_0xcc0f31(0x13c)](this['distance'],this[_0xcc0f31(0x12a)],_0x33555c);const _0x5261dc=this['getPosition']();_0x5261dc[_0xcc0f31(0x13c)](this[_0xcc0f31(0x130)],_0x33555c),super['setPosition'](_0x5261dc);const _0x4a73c2=this[_0xcc0f31(0x15e)]();_0x4a73c2[_0xcc0f31(0x16a)](this['_targetQuaternion'],_0x33555c),super[_0xcc0f31(0x15c)](_0x4a73c2);}this['updateCameraFromPawn']();}['setPosition'](..._0x1e3858){const _0x4bfab0=_0x74f034;super['setPosition'](..._0x1e3858),this[_0x4bfab0(0x130)][_0x4bfab0(0x14f)](this['getPosition']());}['setRotation'](..._0x5c130f){const _0x133bc4=_0x74f034;super[_0x133bc4(0x146)](..._0x5c130f),this[_0x133bc4(0x166)]['copy'](this['getQuaternion']());}[_0x74f034(0x15c)](..._0x587ee4){const _0x11b976=_0x74f034;super[_0x11b976(0x15c)](..._0x587ee4),this[_0x11b976(0x166)][_0x11b976(0x14f)](this[_0x11b976(0x15e)]());}[_0x74f034(0x124)](_0xdc0d0e,_0x581339,_0x4bb7a1,_0x27f3e2,_0x31820b=null,_0x222ff2=null){const _0x54c581=_0x74f034;this['_focusTween']&&this[_0x54c581(0x157)][_0x54c581(0x13f)]();const _0x23999e=this[_0x54c581(0x174)](),_0xdbb50d=this['getQuaternion'](),_0x42da5c=this[_0x54c581(0x133)];let _0x4a35a8;_0x581339 instanceof webgpu.Euler?_0x4a35a8=new webgpu.Quaternion()[_0x54c581(0x16c)](_0x581339):_0x4a35a8=_0x581339['clone']();const _0x51b1b5=new webgpu.Euler(0x0,0x0,0x0,'YXZ')[_0x54c581(0x13a)](_0x4a35a8);Math[_0x54c581(0x158)](_0x51b1b5['z'])>0.00001&&(_0x51b1b5['z']=0x0,_0x4a35a8[_0x54c581(0x16c)](_0x51b1b5));const _0x4b3a0c={'alpha':0x0};this[_0x54c581(0x157)]=gsap.gsap['to'](_0x4b3a0c,{'alpha':0x1,'duration':_0x27f3e2,'onUpdate':()=>{const _0x5c9bf0=_0x54c581,_0x556e84=_0x4b3a0c['alpha'],_0x3c0c82=new webgpu.Vector3()[_0x5c9bf0(0x11b)](_0x23999e,_0xdc0d0e,_0x556e84);this[_0x5c9bf0(0x11c)](_0x3c0c82),this[_0x5c9bf0(0x130)][_0x5c9bf0(0x14f)](_0x3c0c82);const _0x25fb0b=_0xdbb50d[_0x5c9bf0(0x163)]()[_0x5c9bf0(0x16a)](_0x4a35a8,_0x556e84);this[_0x5c9bf0(0x15c)](_0x25fb0b),this[_0x5c9bf0(0x166)][_0x5c9bf0(0x14f)](_0x25fb0b),this['distance']=webgpu.MathUtils['lerp'](_0x42da5c,_0x4bb7a1,_0x556e84),this[_0x5c9bf0(0x12a)]=this[_0x5c9bf0(0x133)];if(_0x31820b)_0x31820b();},'onComplete':()=>{this['_focusTween']=null;if(_0x222ff2)_0x222ff2();}});}[_0x74f034(0x168)](){const _0x21361d=_0x74f034;this[_0x21361d(0x157)]&&(this['_focusTween'][_0x21361d(0x13f)](),this['_focusTween']=null);}}function _0x4685(){const _0x5ee89a=['setRotation','lookAt','onWheelDelegate','min','clientHeight','add','31220Tqjbtk','clientX','clamp','copy','buttons','position','tick','setCameraDraggingState','addScaledVector','remove','outer','_focusTween','abs','onWheel','controller','releasePointerCapture','setQuaternion','onPointerCancelDelegate','getQuaternion','YXZ','getTargetCameraState','8064864QyAKEb','enabled','clone','maxDistance','inputFilter','_targetQuaternion','button','stopFocusing','preventDefault','slerp','order','setFromEuler','possess','minPolarAngle','minAzimuthAngle','max','onContextMenuDelegate','normalize','rootComponent','getPosition','4181652kwsnlL','861294zpwHNZ','maxPolarAngle','3682593oGPTDV','canvas','threeObject','call','10tzxtsN','lerpVectors','setPosition','updateCameraFromPawn','zoomSpeed','932072PiAdTL','_isDragging','clientY','minDistance','setFromRotationMatrix','focusTo','onPointerMove','enableDamping','_lastPointerPosition','camera','dataset','_targetDistance','730GoYZZh','onPointerMoveDelegate','pointerId','multiplyScalar','onContextMenu','_targetPosition','app','15ktPrdK','distance','rotateSpeed','213492tNyEqZ','exp','viewport','maxAzimuthAngle','onPointerDown','setFromQuaternion','unpossess','lerp','lyCameraDragging','dampingFactor','kill','set','onPointerDownDelegate','function','applyQuaternion','setPointerCapture','onPointerUp'];_0x4685=function(){return _0x5ee89a;};return _0x4685();}
|
|
90
|
+
const _0x574f60=_0x90c5;(function(_0x116f8c,_0x153fa2){const _0x122f65=_0x90c5,_0x106ecb=_0x116f8c();while(!![]){try{const _0x532772=parseInt(_0x122f65(0x118))/0x1*(parseInt(_0x122f65(0x164))/0x2)+-parseInt(_0x122f65(0x12a))/0x3+parseInt(_0x122f65(0x13d))/0x4+parseInt(_0x122f65(0x144))/0x5*(-parseInt(_0x122f65(0x11d))/0x6)+parseInt(_0x122f65(0x137))/0x7+-parseInt(_0x122f65(0x135))/0x8*(-parseInt(_0x122f65(0x16f))/0x9)+parseInt(_0x122f65(0x11a))/0xa*(-parseInt(_0x122f65(0x13f))/0xb);if(_0x532772===_0x153fa2)break;else _0x106ecb['push'](_0x106ecb['shift']());}catch(_0x1af4be){_0x106ecb['push'](_0x106ecb['shift']());}}}(_0x38f4,0xc6c13));function _0x90c5(_0xc0bb53,_0xd1ba26){_0xc0bb53=_0xc0bb53-0x115;const _0x38f424=_0x38f4();let _0x90c59c=_0x38f424[_0xc0bb53];return _0x90c59c;}function _0x38f4(){const _0x16ce88=['lyCameraDragging','rootComponent','setCameraDraggingState','zoomSpeed','controller','maxAzimuthAngle','remove','onWheel','clientX','onContextMenuDelegate','getQuaternion','order','call','_isDragging','inputFilter','updateCameraFromPawn','onPointerCancelDelegate','button','clamp','copy','47954kEUcKz','applyQuaternion','releasePointerCapture','_targetDistance','rotateSpeed','minDistance','tick','getTargetCameraState','kill','set','clone','6822ECBvrA','onWheelDelegate','alpha','onPointerDown','maxDistance','multiplyScalar','lookAt','setPointerCapture','onPointerMoveDelegate','app','min','position','23yIUupl','camera','2856460ShoxUT','YXZ','setPosition','4878042rwsePO','possess','viewport','deltaY','enableDamping','_targetQuaternion','setFromQuaternion','onContextMenu','function','add','unpossess','exp','clientY','3438606VsTOZI','threeObject','abs','_focusTween','minAzimuthAngle','enabled','normalize','canvas','buttons','maxPolarAngle','setFromRotationMatrix','14096BqkpWK','preventDefault','1637748mJGprT','pointerId','outer','dampingFactor','addScaledVector','max','4894276FXcOgP','minPolarAngle','22VnErwN','_targetPosition','setQuaternion','rotation','getPosition','5MbKIKr','onPointerUpDelegate','_lastPointerPosition','onPointerUp','distance','slerp','setRotation','setFromEuler','dataset','onPointerDownDelegate','lerp','onPointerMove'];_0x38f4=function(){return _0x16ce88;};return _0x38f4();}class Orbital extends Pawn{constructor(_0x4dc07e){const _0x127ec3=_0x90c5;super(_0x4dc07e),this[_0x127ec3(0x148)]=0x5,this[_0x127ec3(0x169)]=0.1,this[_0x127ec3(0x173)]=0xf4240,this[_0x127ec3(0x168)]=0x1,this[_0x127ec3(0x153)]=0x1,this[_0x127ec3(0x13e)]=0x0,this[_0x127ec3(0x133)]=Math['PI']*0.5,this['minAzimuthAngle']=-Infinity,this['maxAzimuthAngle']=Infinity,this[_0x127ec3(0x121)]=!![],this[_0x127ec3(0x13a)]=0xa,this[_0x127ec3(0x15d)]=![],this[_0x127ec3(0x146)]=new webgpu.Vector2(),this[_0x127ec3(0x140)]=new webgpu.Vector3(),this[_0x127ec3(0x122)]=new webgpu.Quaternion(),this[_0x127ec3(0x167)]=0x5,this['_focusTween']=null,this[_0x127ec3(0x124)]=_0x27af7a=>{const _0x430cc6=_0x127ec3;if(!Pawn[_0x430cc6(0x15e)]())return;_0x27af7a[_0x430cc6(0x136)]();},this[_0x127ec3(0x172)]=_0x5be785=>{const _0x5b231f=_0x127ec3;if(!this[_0x5b231f(0x12f)]||!Pawn['inputFilter']())return;if(_0x5be785['button']===0x0||_0x5be785[_0x5b231f(0x161)]===0x2){this[_0x5b231f(0x15d)]=!![],this[_0x5b231f(0x146)][_0x5b231f(0x16d)](_0x5be785[_0x5b231f(0x158)],_0x5be785['clientY']),this[_0x5b231f(0x152)](!![]);const _0x3a99fb=this['app'][_0x5b231f(0x11f)]['canvas'];_0x3a99fb&&typeof _0x3a99fb[_0x5b231f(0x176)]===_0x5b231f(0x125)&&_0x3a99fb['setPointerCapture'](_0x5be785[_0x5b231f(0x138)]);}},this[_0x127ec3(0x14f)]=_0x2b6dc6=>{const _0x4e5dd4=_0x127ec3;if(!this['enabled']||!this[_0x4e5dd4(0x15d)]||!Pawn[_0x4e5dd4(0x15e)]())return;if(_0x2b6dc6[_0x4e5dd4(0x132)]===0x0){this[_0x4e5dd4(0x15d)]=![],this[_0x4e5dd4(0x152)](![]);return;}const _0x5e24c3=_0x2b6dc6[_0x4e5dd4(0x158)]-this['_lastPointerPosition']['x'],_0x5bfc2b=_0x2b6dc6[_0x4e5dd4(0x129)]-this[_0x4e5dd4(0x146)]['y'];this[_0x4e5dd4(0x146)][_0x4e5dd4(0x16d)](_0x2b6dc6[_0x4e5dd4(0x158)],_0x2b6dc6[_0x4e5dd4(0x129)]);const _0x1123a8=this[_0x4e5dd4(0x115)][_0x4e5dd4(0x11f)][_0x4e5dd4(0x131)];if(!_0x1123a8)return;if(_0x2b6dc6[_0x4e5dd4(0x132)]===0x1){const _0x36c8e8=this[_0x4e5dd4(0x168)]*0x2*Math['PI'],_0x24a3f7=new webgpu.Euler(0x0,0x0,0x0,_0x4e5dd4(0x11b))[_0x4e5dd4(0x123)](this['_targetQuaternion']);_0x24a3f7['y']-=_0x5e24c3/_0x1123a8['clientHeight']*_0x36c8e8,_0x24a3f7['x']-=_0x5bfc2b/_0x1123a8['clientHeight']*_0x36c8e8;const _0x5a3ad8=Math[_0x4e5dd4(0x13c)](this[_0x4e5dd4(0x13e)]-Math['PI']/0x2,-Math['PI']/0x2+0.01),_0x12a2c1=Math[_0x4e5dd4(0x116)](this[_0x4e5dd4(0x133)]-Math['PI']/0x2,Math['PI']/0x2-0.01);_0x24a3f7['x']=webgpu.MathUtils['clamp'](_0x24a3f7['x'],_0x5a3ad8,_0x12a2c1),isFinite(this[_0x4e5dd4(0x12e)])&&isFinite(this[_0x4e5dd4(0x155)])&&(_0x24a3f7['y']=webgpu.MathUtils[_0x4e5dd4(0x162)](_0x24a3f7['y'],this['minAzimuthAngle'],this[_0x4e5dd4(0x155)])),_0x24a3f7['z']=0x0,this['_targetQuaternion'][_0x4e5dd4(0x14b)](_0x24a3f7),!this[_0x4e5dd4(0x121)]&&this['setQuaternion'](this['_targetQuaternion']);}else {if(_0x2b6dc6['buttons']===0x2){const _0xf2047c=this[_0x4e5dd4(0x167)]*0.002,_0x33cc2e=new webgpu.Vector3(0x1,0x0,0x0)[_0x4e5dd4(0x165)](this[_0x4e5dd4(0x122)])[_0x4e5dd4(0x130)](),_0x193cb8=new webgpu.Vector3(0x0,0x1,0x0)[_0x4e5dd4(0x165)](this['_targetQuaternion'])['normalize']();this[_0x4e5dd4(0x140)][_0x4e5dd4(0x13b)](_0x33cc2e,-_0x5e24c3*_0xf2047c),this[_0x4e5dd4(0x140)]['addScaledVector'](_0x193cb8,_0x5bfc2b*_0xf2047c),!this[_0x4e5dd4(0x121)]&&this['setPosition'](this['_targetPosition']);}}},this[_0x127ec3(0x147)]=_0x50d814=>{const _0x19d9a0=_0x127ec3;var _0x5d62b1;this[_0x19d9a0(0x15d)]=![],this[_0x19d9a0(0x152)](![]);const _0x34cf15=this[_0x19d9a0(0x115)][_0x19d9a0(0x11f)][_0x19d9a0(0x131)];_0x34cf15&&typeof _0x34cf15[_0x19d9a0(0x166)]===_0x19d9a0(0x125)&&((_0x5d62b1=_0x34cf15['hasPointerCapture'])===null||_0x5d62b1===void 0?void 0:_0x5d62b1[_0x19d9a0(0x15c)](_0x34cf15,_0x50d814[_0x19d9a0(0x138)]))&&_0x34cf15[_0x19d9a0(0x166)](_0x50d814[_0x19d9a0(0x138)]);},this[_0x127ec3(0x157)]=_0x3fa1da=>{const _0x273b22=_0x127ec3;if(!this[_0x273b22(0x12f)]||!Pawn[_0x273b22(0x15e)]())return;const _0x2896bc=0.95;_0x3fa1da[_0x273b22(0x120)]>0x0?this[_0x273b22(0x167)]/=_0x2896bc:this[_0x273b22(0x167)]*=_0x2896bc,this[_0x273b22(0x167)]=webgpu.MathUtils[_0x273b22(0x162)](this['_targetDistance'],this[_0x273b22(0x169)],this[_0x273b22(0x173)]),!this[_0x273b22(0x121)]&&(this[_0x273b22(0x148)]=this[_0x273b22(0x167)]);};}[_0x574f60(0x11e)](){const _0xc84d5e=_0x574f60;super[_0xc84d5e(0x11e)]();this['rootComponent']&&this[_0xc84d5e(0x151)][_0xc84d5e(0x12b)]&&(this[_0xc84d5e(0x151)][_0xc84d5e(0x12b)][_0xc84d5e(0x142)][_0xc84d5e(0x15b)]='YXZ');this[_0xc84d5e(0x140)][_0xc84d5e(0x163)](this['getPosition']());const _0x45a7b4=this[_0xc84d5e(0x15a)](),_0x5e33b9=new webgpu.Euler(0x0,0x0,0x0,_0xc84d5e(0x11b))[_0xc84d5e(0x123)](_0x45a7b4);Math[_0xc84d5e(0x12c)](_0x5e33b9['z'])>0.00001?(_0x5e33b9['z']=0x0,this[_0xc84d5e(0x122)][_0xc84d5e(0x14b)](_0x5e33b9),this['setQuaternion'](this[_0xc84d5e(0x122)])):this[_0xc84d5e(0x122)][_0xc84d5e(0x163)](_0x45a7b4);this['_targetDistance']=this['distance'];const _0x579966=this[_0xc84d5e(0x115)][_0xc84d5e(0x154)];_0x579966&&(_0x579966[_0xc84d5e(0x14d)]['add'](this[_0xc84d5e(0x172)]),_0x579966[_0xc84d5e(0x177)][_0xc84d5e(0x126)](this[_0xc84d5e(0x14f)]),_0x579966[_0xc84d5e(0x145)][_0xc84d5e(0x126)](this[_0xc84d5e(0x147)]),_0x579966[_0xc84d5e(0x160)][_0xc84d5e(0x126)](this[_0xc84d5e(0x147)]),_0x579966[_0xc84d5e(0x170)][_0xc84d5e(0x126)](this[_0xc84d5e(0x157)]),_0x579966['onContextMenuDelegate']['add'](this[_0xc84d5e(0x124)])),this[_0xc84d5e(0x15f)]();}[_0x574f60(0x16b)](){const _0x450ada=_0x574f60,_0xad4e9d=this['getPosition'](),_0x6a80b=this[_0x450ada(0x15a)](),_0x16da86=new webgpu.Vector3(0x0,0x0,0x1)[_0x450ada(0x165)](_0x6a80b)[_0x450ada(0x174)](this[_0x450ada(0x148)]),_0x2ba06=_0xad4e9d['clone']()[_0x450ada(0x126)](_0x16da86),_0x521174=new webgpu.Matrix4();_0x521174['lookAt'](_0x2ba06,_0xad4e9d,this['camera']['up']);const _0x1fc6bc=new webgpu.Quaternion()[_0x450ada(0x134)](_0x521174);return {'position':_0x2ba06,'quaternion':_0x1fc6bc};}[_0x574f60(0x15f)](){const _0x3281d7=_0x574f60;if(!this[_0x3281d7(0x12f)]||!this[_0x3281d7(0x119)])return;const _0x13faab=this['getPosition'](),_0x4212f9=this[_0x3281d7(0x15a)](),_0x264336=new webgpu.Vector3(0x0,0x0,0x1)[_0x3281d7(0x165)](_0x4212f9)[_0x3281d7(0x174)](this[_0x3281d7(0x148)]);this[_0x3281d7(0x119)][_0x3281d7(0x117)][_0x3281d7(0x163)](_0x13faab)['add'](_0x264336),this[_0x3281d7(0x119)][_0x3281d7(0x175)](_0x13faab);}[_0x574f60(0x127)](){const _0x31319c=_0x574f60;super[_0x31319c(0x127)]();const _0x1a73ed=this[_0x31319c(0x115)][_0x31319c(0x154)];_0x1a73ed&&(_0x1a73ed['onPointerDownDelegate'][_0x31319c(0x156)](this['onPointerDown']),_0x1a73ed[_0x31319c(0x177)][_0x31319c(0x156)](this[_0x31319c(0x14f)]),_0x1a73ed[_0x31319c(0x145)][_0x31319c(0x156)](this[_0x31319c(0x147)]),_0x1a73ed[_0x31319c(0x160)][_0x31319c(0x156)](this[_0x31319c(0x147)]),_0x1a73ed[_0x31319c(0x170)][_0x31319c(0x156)](this[_0x31319c(0x157)]),_0x1a73ed[_0x31319c(0x159)][_0x31319c(0x156)](this[_0x31319c(0x124)])),this[_0x31319c(0x15d)]=![],this[_0x31319c(0x152)](![]),this[_0x31319c(0x12d)]&&(this['_focusTween'][_0x31319c(0x16c)](),this[_0x31319c(0x12d)]=null);}[_0x574f60(0x152)](_0x4b30a1){const _0x2a7442=_0x574f60,_0x2f7a6e=this[_0x2a7442(0x115)][_0x2a7442(0x11f)][_0x2a7442(0x139)];if(!_0x2f7a6e)return;_0x4b30a1?_0x2f7a6e[_0x2a7442(0x14c)]['lyCameraDragging']='1':delete _0x2f7a6e[_0x2a7442(0x14c)][_0x2a7442(0x150)];}[_0x574f60(0x16a)](_0xe3a9e0){const _0x5c4c9b=_0x574f60;if(this[_0x5c4c9b(0x121)]){const _0x38d629=Math['min'](_0xe3a9e0,0.1),_0xd80cca=0x1-Math[_0x5c4c9b(0x128)](-this[_0x5c4c9b(0x13a)]*_0x38d629);this[_0x5c4c9b(0x148)]=webgpu.MathUtils[_0x5c4c9b(0x14e)](this['distance'],this[_0x5c4c9b(0x167)],_0xd80cca);const _0x3fe4e9=this[_0x5c4c9b(0x143)]();_0x3fe4e9[_0x5c4c9b(0x14e)](this['_targetPosition'],_0xd80cca),super[_0x5c4c9b(0x11c)](_0x3fe4e9);const _0x266d96=this[_0x5c4c9b(0x15a)]();_0x266d96[_0x5c4c9b(0x149)](this[_0x5c4c9b(0x122)],_0xd80cca),super[_0x5c4c9b(0x141)](_0x266d96);}this['updateCameraFromPawn']();}[_0x574f60(0x11c)](..._0x101db9){const _0x5a2e73=_0x574f60;super[_0x5a2e73(0x11c)](..._0x101db9),this[_0x5a2e73(0x140)][_0x5a2e73(0x163)](this[_0x5a2e73(0x143)]());}[_0x574f60(0x14a)](..._0x520114){const _0x2a51a5=_0x574f60;super[_0x2a51a5(0x14a)](..._0x520114),this[_0x2a51a5(0x122)][_0x2a51a5(0x163)](this['getQuaternion']());}['setQuaternion'](..._0x20d509){const _0x530fdb=_0x574f60;super[_0x530fdb(0x141)](..._0x20d509),this[_0x530fdb(0x122)][_0x530fdb(0x163)](this['getQuaternion']());}['focusTo'](_0x5b4acd,_0x3ee5bb,_0x3b7d79,_0x4b7635,_0x42d2c7=null,_0xc7b94a=null){const _0x2bd917=_0x574f60;this[_0x2bd917(0x12d)]&&this['_focusTween'][_0x2bd917(0x16c)]();const _0x315a63=this[_0x2bd917(0x143)](),_0x3631bd=this['getQuaternion'](),_0x449892=this[_0x2bd917(0x148)];let _0x13d795;_0x3ee5bb instanceof webgpu.Euler?_0x13d795=new webgpu.Quaternion()[_0x2bd917(0x14b)](_0x3ee5bb):_0x13d795=_0x3ee5bb[_0x2bd917(0x16e)]();const _0x2e2f6c=new webgpu.Euler(0x0,0x0,0x0,'YXZ')['setFromQuaternion'](_0x13d795);Math[_0x2bd917(0x12c)](_0x2e2f6c['z'])>0.00001&&(_0x2e2f6c['z']=0x0,_0x13d795[_0x2bd917(0x14b)](_0x2e2f6c));const _0x25094b={'alpha':0x0};this[_0x2bd917(0x12d)]=gsap.gsap['to'](_0x25094b,{'alpha':0x1,'duration':_0x4b7635,'onUpdate':()=>{const _0x1755eb=_0x2bd917,_0x5ac1a7=_0x25094b[_0x1755eb(0x171)],_0x5508dd=new webgpu.Vector3()['lerpVectors'](_0x315a63,_0x5b4acd,_0x5ac1a7);this['setPosition'](_0x5508dd),this[_0x1755eb(0x140)]['copy'](_0x5508dd);const _0x2153e6=_0x3631bd[_0x1755eb(0x16e)]()[_0x1755eb(0x149)](_0x13d795,_0x5ac1a7);this[_0x1755eb(0x141)](_0x2153e6),this[_0x1755eb(0x122)][_0x1755eb(0x163)](_0x2153e6),this[_0x1755eb(0x148)]=webgpu.MathUtils[_0x1755eb(0x14e)](_0x449892,_0x3b7d79,_0x5ac1a7),this[_0x1755eb(0x167)]=this[_0x1755eb(0x148)];if(_0x42d2c7)_0x42d2c7();},'onComplete':()=>{const _0x4c1ffa=_0x2bd917;this[_0x4c1ffa(0x12d)]=null;if(_0xc7b94a)_0xc7b94a();}});}['stopFocusing'](){const _0x163734=_0x574f60;this[_0x163734(0x12d)]&&(this['_focusTween'][_0x163734(0x16c)](),this[_0x163734(0x12d)]=null);}}
|
|
91
91
|
|
|
92
|
-
const _0x282f8a=_0x41aa;(function(_0x535816,_0x515571){const _0x41e1af=_0x41aa,_0xb15a0d=_0x535816();while(!![]){try{const _0x2bdf25=-parseInt(_0x41e1af(0x1ac))/0x1+-parseInt(_0x41e1af(0x1b0))/0x2*(parseInt(_0x41e1af(0x241))/0x3)+parseInt(_0x41e1af(0x1e3))/0x4+-parseInt(_0x41e1af(0x255))/0x5*(parseInt(_0x41e1af(0x24b))/0x6)+parseInt(_0x41e1af(0x1c0))/0x7*(parseInt(_0x41e1af(0x1d8))/0x8)+-parseInt(_0x41e1af(0x1c5))/0x9*(-parseInt(_0x41e1af(0x1d7))/0xa)+parseInt(_0x41e1af(0x240))/0xb;if(_0x2bdf25===_0x515571)break;else _0xb15a0d['push'](_0xb15a0d['shift']());}catch(_0x34cb34){_0xb15a0d['push'](_0xb15a0d['shift']());}}}(_0x52eb,0x22544));function _0x41aa(_0x1b50bb,_0x46d2e7){_0x1b50bb=_0x1b50bb-0x1a0;const _0x52ebaa=_0x52eb();let _0x41aa95=_0x52ebaa[_0x1b50bb];return _0x41aa95;}function _0x52eb(){const _0x5c0be3=['broadcast','onKeyUp','onKeyDownEvent','unpossess','max','clone','fov','clearTimeout','_onComponentPointerDownDelegate','quaternion','onPointerCancelEvent','leftClickTimer','pointerdown','onPointerMove','keyup','canvas','assign','destroy','onHorveringBegin','removeEventListener','_onActorDoubleClickDelegate','handled','onPointerLeaveEvent','enabled','pointerleave','position','pointerlockchange','setFromCamera','createInitialPawn','focusToBounds','world','length','fireActorHoverEnd','switchPawn','firePointerDownEvent','onPointerEnter','_raycastVec2','_pointButtonIsDown','point','onPointerMoveDelegate','_onPointerCancelDelegate','delete','wheel','onComponentClickDelegate','handleFirstClick','getBoundingClientRect','collider','updateCamera','left','hoveringActor','onPointerLockChangeEvent','onPointerUpEvent','viewPort','physics','_onActorHoverEndDelegate','ctrlKey','onPointerUp','hoveringComponent','onWheel','isPerspectiveCamera','isHoverEnabled','getHitResultUnderCursor','possess','pointerPosition','keydown','prepareClickModifiers','getTargetCameraState','isClickEnabled','clientWidth','1397660naTDPO','417558ZhntSv','doubleClickDelay','_onKeyDownDelegate','handleDoubleClick','onClick','_onActorHoverBeginDelegate','getAllHitResultFromScreenPoint','clientHeight','getCenter','add','25332tqqzLi','onClickNothingDelegate','multiplyScalar','ray','onHorveringEnd','_switchPawnTween','removeCorePointerListeners','pointerLeftDownPosition','onPointerDown','app','330SlPomp','pointermove','_onComponentHoverBeginDelegate','focusToObject','onPointerLockChange','fireComponentHoverBegin','onDoubleClicked','onPointerDownEvent','onPointerDownDelegate','onPointerEnterEvent','onPointerCancel','onKeyUpDelegate','onContextMenuDelegate','distance','shiftKey','raycaster','onPointerLeave','_onPointerLockChangeDelegate','fireClickEvents','_onPointerDownDelegate','lineTraceMulti','onPointerCancelDelegate','onWheelEvent','fireComponentHoverEnd','onComponentHoverEndDelegate','subVectors','camera','onComponentPointerDownDelegate','onActorDoubleClick','62901eirkGj','addCorePointerListeners','tick','alpha','4CsrjoH','click','onPointerUpDelegate','pointerenter','YXZ','hit','pointercancel','clientY','focusTo','prepareClickHit','log','_onClickNothingDelegate','onContextMenuEvent','fireActorHoverBegin','onActorClickDelegate','onRawClickDelegate','14bQpbhc','_onPointerMoveDelegate','setFromObject','tan','button','817515zLpZcm','set','_onContextMenuDelegate','pawn','init','getHitResultFromScreenPoint','near','fireComponentClick','onKeyUpEvent','setTimeout','_app','Visibility','_onComponentClickDelegate','_tempVec2','component','setFromAxisAngle','onPointerLockChangeDelegate','blur','30kJJhXk','797816iVHIYP','clientX','_onComponentHoverEndDelegate','prepareClickComponent','viewport','_onComponentDoubleClickDelegate','addEventListener','_onKeyUpDelegate','onKeyDown','getSize','lineTraceSingle','646072GZcura','onWindowBlur','_pawn','parentActor','push','contextmenu','_onActorClickDelegate','onContextMenu','clearHovering','_onWindowBlurDelegate','pawn\x20is\x20null','onPointerMoveEvent','onClickEvent','onActorHoverBegin','copy','top','fireActorClick','_onWheelDelegate','addActor','blocking','_onRawClickDelegate','clearClickTimer','_onPointerUpDelegate','onComponentDoubleClickDelegate'];_0x52eb=function(){return _0x5c0be3;};return _0x52eb();}class Controller{get[_0x282f8a(0x1a9)](){return this['_app']['camera'];}get[_0x282f8a(0x219)](){const _0x267054=_0x282f8a;return this[_0x267054(0x1cf)]['world'];}get[_0x282f8a(0x22f)](){const _0x44a67f=_0x282f8a;return this[_0x44a67f(0x1cf)][_0x44a67f(0x1dc)];}get[_0x282f8a(0x254)](){const _0x41e13d=_0x282f8a;return this[_0x41e13d(0x1cf)];}get[_0x282f8a(0x1c8)](){const _0x3c7039=_0x282f8a;if(!this[_0x3c7039(0x1e5)])throw Error(_0x3c7039(0x1ed));return this[_0x3c7039(0x1e5)];}get[_0x282f8a(0x226)](){const _0x1bac11=_0x282f8a;return this[_0x1bac11(0x1d1)];}get[_0x282f8a(0x1fa)](){const _0xe7441a=_0x282f8a;return this[_0xe7441a(0x1dd)];}get['onComponentHoverBeginDelegate'](){return this['_onComponentHoverBeginDelegate'];}get[_0x282f8a(0x1a7)](){return this['_onComponentHoverEndDelegate'];}get[_0x282f8a(0x1aa)](){const _0xb387aa=_0x282f8a;return this[_0xb387aa(0x203)];}get[_0x282f8a(0x1be)](){const _0x4d8f9c=_0x282f8a;return this[_0x4d8f9c(0x1e9)];}get['onActorDoubleClickDelegate'](){const _0x5bb133=_0x282f8a;return this[_0x5bb133(0x20f)];}get['onActorHoverBeginDelegate'](){const _0xc9c4a7=_0x282f8a;return this[_0xc9c4a7(0x246)];}get['onActorHoverEndDelegate'](){const _0x30f94b=_0x282f8a;return this[_0x30f94b(0x231)];}get[_0x282f8a(0x24c)](){const _0x20c586=_0x282f8a;return this[_0x20c586(0x1bb)];}get[_0x282f8a(0x25d)](){const _0x28abfc=_0x282f8a;return this[_0x28abfc(0x1a2)];}get[_0x282f8a(0x1b2)](){const _0x4dfae1=_0x282f8a;return this[_0x4dfae1(0x1f9)];}get[_0x282f8a(0x222)](){const _0x4f5c36=_0x282f8a;return this[_0x4f5c36(0x1c1)];}get[_0x282f8a(0x1a4)](){return this['_onPointerCancelDelegate'];}get['onWheelDelegate'](){return this['_onWheelDelegate'];}get['onKeyDownDelegate'](){const _0x56cf35=_0x282f8a;return this[_0x56cf35(0x243)];}get[_0x282f8a(0x260)](){return this['_onKeyUpDelegate'];}get[_0x282f8a(0x261)](){const _0x28ff63=_0x282f8a;return this[_0x28ff63(0x1c7)];}get[_0x282f8a(0x1d5)](){const _0x18c64a=_0x282f8a;return this[_0x18c64a(0x1a0)];}get['onWindowBlurDelegate'](){const _0x1dacf7=_0x282f8a;return this[_0x1dacf7(0x1ec)];}get[_0x282f8a(0x1bf)](){return this['_onRawClickDelegate'];}constructor(_0x38fe2f){const _0x52aa35=_0x282f8a;this[_0x52aa35(0x1e5)]=null,this['_switchPawnTween']=null,this[_0x52aa35(0x234)]=null,this[_0x52aa35(0x22c)]=null,this[_0x52aa35(0x1db)]=null,this['prepareClickHit']=null,this[_0x52aa35(0x23c)]={'ctrlKey':![],'shiftKey':![],'altKey':![]},this[_0x52aa35(0x220)]=new Set(),this[_0x52aa35(0x1d1)]=new Delegate(),this[_0x52aa35(0x1dd)]=new Delegate(),this[_0x52aa35(0x257)]=new Delegate(),this[_0x52aa35(0x1da)]=new Delegate(),this[_0x52aa35(0x203)]=new Delegate(),this[_0x52aa35(0x1e9)]=new Delegate(),this[_0x52aa35(0x20f)]=new Delegate(),this[_0x52aa35(0x246)]=new Delegate(),this[_0x52aa35(0x231)]=new Delegate(),this[_0x52aa35(0x1bb)]=new Delegate(),this['_onPointerDownDelegate']=new Delegate(),this[_0x52aa35(0x1f9)]=new Delegate(),this[_0x52aa35(0x1c1)]=new Delegate(),this[_0x52aa35(0x223)]=new Delegate(),this[_0x52aa35(0x1f4)]=new Delegate(),this[_0x52aa35(0x243)]=new Delegate(),this[_0x52aa35(0x1df)]=new Delegate(),this[_0x52aa35(0x1c7)]=new Delegate(),this['_onPointerLockChangeDelegate']=new Delegate(),this[_0x52aa35(0x1ec)]=new Delegate(),this[_0x52aa35(0x1f7)]=new Delegate(),this['pointerPosition']=new webgpu.Vector2(),this[_0x52aa35(0x252)]=new webgpu.Vector2(),this[_0x52aa35(0x1d2)]=new webgpu.Vector2(),this[_0x52aa35(0x21f)]=new webgpu.Vector2(),this[_0x52aa35(0x242)]=0xfa,this[_0x52aa35(0x206)]=null,this[_0x52aa35(0x208)]=_0x50c0e3=>this[_0x52aa35(0x1ee)](_0x50c0e3),this[_0x52aa35(0x21e)]=_0x426f4e=>this[_0x52aa35(0x25e)](_0x426f4e),this[_0x52aa35(0x265)]=_0x3ec82d=>this[_0x52aa35(0x211)](_0x3ec82d),this[_0x52aa35(0x233)]=_0x303f77=>this['onPointerUpEvent'](_0x303f77),this[_0x52aa35(0x253)]=_0x1d3392=>this[_0x52aa35(0x25c)](_0x1d3392),this[_0x52aa35(0x25f)]=_0x131edc=>this[_0x52aa35(0x205)](_0x131edc),this['onWheel']=_0x3babcf=>this[_0x52aa35(0x1a5)](_0x3babcf),this[_0x52aa35(0x1e0)]=_0x1501c1=>this[_0x52aa35(0x1fd)](_0x1501c1),this[_0x52aa35(0x1fc)]=_0x23fe17=>this[_0x52aa35(0x1cd)](_0x23fe17),this[_0x52aa35(0x1ea)]=_0x130a41=>this[_0x52aa35(0x1bc)](_0x130a41),this[_0x52aa35(0x259)]=_0x5d1ee1=>this[_0x52aa35(0x22d)](_0x5d1ee1),this[_0x52aa35(0x1e4)]=_0x14494e=>this['onWindowBlurEvent'](_0x14494e),this['onClick']=_0x5812c2=>this[_0x52aa35(0x1ef)](_0x5812c2),this[_0x52aa35(0x1cf)]=_0x38fe2f,this[_0x52aa35(0x264)]=new webgpu.Raycaster(),this[_0x52aa35(0x217)]();}[_0x282f8a(0x217)](){const _0x3b1c35=_0x282f8a;this[_0x3b1c35(0x1e5)]=new Orbital(this['_app']),this['pawn'][_0x3b1c35(0x239)](),this[_0x3b1c35(0x1c8)]['enabled']=!![];}[_0x282f8a(0x1c9)](){const _0x3b2f34=_0x282f8a,_0x328b53=this[_0x3b2f34(0x22f)][_0x3b2f34(0x20a)];console[_0x3b2f34(0x1ba)](_0x3b2f34(0x20a),_0x328b53),_0x328b53&&(_0x328b53[_0x3b2f34(0x1de)]('pointerenter',this[_0x3b2f34(0x21e)]),_0x328b53[_0x3b2f34(0x1de)](_0x3b2f34(0x213),this['onPointerLeave']),_0x328b53[_0x3b2f34(0x1de)](_0x3b2f34(0x1b6),this['onPointerCancel']),_0x328b53[_0x3b2f34(0x1de)]('wheel',this[_0x3b2f34(0x235)]),_0x328b53[_0x3b2f34(0x1de)](_0x3b2f34(0x1e8),this['onContextMenu']),_0x328b53[_0x3b2f34(0x1de)](_0x3b2f34(0x1b1),this[_0x3b2f34(0x245)]),this[_0x3b2f34(0x1ad)]()),document['addEventListener']('pointerlockchange',this[_0x3b2f34(0x259)]),document[_0x3b2f34(0x1de)](_0x3b2f34(0x23b),this['onKeyDown']),document[_0x3b2f34(0x1de)]('keyup',this[_0x3b2f34(0x1fc)]),window[_0x3b2f34(0x1de)](_0x3b2f34(0x1d6),this['onWindowBlur']),this[_0x3b2f34(0x1e5)]&&(this['_pawn']['unpossess'](),this[_0x3b2f34(0x1e5)][_0x3b2f34(0x239)]());}[_0x282f8a(0x22a)](){const _0x306bda=_0x282f8a;var _0x5c873f,_0x382fe9;const _0x5d36a7=this['pawn']['enabled'];(_0x5c873f=this[_0x306bda(0x1e5)])===null||_0x5c873f===void 0?void 0:_0x5c873f[_0x306bda(0x1fe)](),(_0x382fe9=this['_pawn'])===null||_0x382fe9===void 0?void 0:_0x382fe9[_0x306bda(0x20c)](),this[_0x306bda(0x1e5)]=new Orbital(this[_0x306bda(0x1cf)]),this[_0x306bda(0x1c8)][_0x306bda(0x239)](),this[_0x306bda(0x1c8)][_0x306bda(0x212)]=_0x5d36a7;}async[_0x282f8a(0x21c)](_0x312d88,_0x17f45f){const _0x3265af=_0x282f8a;!_0x312d88[_0x3265af(0x219)]&&this[_0x3265af(0x1cf)][_0x3265af(0x219)][_0x3265af(0x1f5)](_0x312d88);this[_0x3265af(0x250)]&&(this[_0x3265af(0x250)]['kill'](),this[_0x3265af(0x250)]=null);const _0x1d6ff0=this['_pawn'];if(_0x1d6ff0===_0x312d88)return;if(!_0x17f45f||_0x17f45f<=0x0){_0x1d6ff0&&(_0x1d6ff0[_0x3265af(0x1fe)](),_0x1d6ff0[_0x3265af(0x212)]=![]);this[_0x3265af(0x1e5)]=_0x312d88,this[_0x3265af(0x1e5)]['enabled']=!![],this['_pawn'][_0x3265af(0x239)]();return;}const _0x29108a=this[_0x3265af(0x1a9)]['position']['clone'](),_0x518794=this[_0x3265af(0x1a9)][_0x3265af(0x204)]['clone']();_0x1d6ff0&&(_0x1d6ff0[_0x3265af(0x1fe)](),_0x1d6ff0[_0x3265af(0x212)]=![]);const {position:_0x36f0be,quaternion:_0x4a63fe}=_0x312d88[_0x3265af(0x23d)]();return this[_0x3265af(0x1e5)]=_0x312d88,this[_0x3265af(0x1e5)][_0x3265af(0x212)]=![],new Promise(_0x5ecfc1=>{const _0x318b67=_0x3265af,_0x590991={'alpha':0x0};this[_0x318b67(0x250)]=gsap.gsap['to'](_0x590991,{'alpha':0x1,'duration':_0x17f45f,'ease':'power2.inOut','onUpdate':()=>{const _0x53e355=_0x318b67,_0x19d677=_0x590991[_0x53e355(0x1af)];this['camera'][_0x53e355(0x214)]['lerpVectors'](_0x29108a,_0x36f0be,_0x19d677),this['camera']['quaternion']['slerpQuaternions'](_0x518794,_0x4a63fe,_0x19d677);},'onComplete':()=>{const _0x5a29b8=_0x318b67;this[_0x5a29b8(0x250)]=null,this['_pawn']===_0x312d88&&(this['_pawn'][_0x5a29b8(0x239)](),this[_0x5a29b8(0x1e5)][_0x5a29b8(0x212)]=!![]),_0x5ecfc1();}});});}[_0x282f8a(0x1ae)](_0x11f06c){const _0x5ea0fd=_0x282f8a;!this[_0x5ea0fd(0x1c8)][_0x5ea0fd(0x219)]&&this[_0x5ea0fd(0x1c8)]['tick'](_0x11f06c);}[_0x282f8a(0x20c)](){const _0x3810d5=_0x282f8a;this[_0x3810d5(0x1f8)](),this[_0x3810d5(0x1eb)]();const _0x588dd0=this[_0x3810d5(0x22f)][_0x3810d5(0x20a)];_0x588dd0&&(_0x588dd0[_0x3810d5(0x20e)](_0x3810d5(0x1b3),this[_0x3810d5(0x21e)]),_0x588dd0[_0x3810d5(0x20e)](_0x3810d5(0x213),this[_0x3810d5(0x265)]),_0x588dd0[_0x3810d5(0x20e)]('pointercancel',this['onPointerCancel']),_0x588dd0[_0x3810d5(0x20e)](_0x3810d5(0x225),this[_0x3810d5(0x235)]),_0x588dd0[_0x3810d5(0x20e)]('contextmenu',this[_0x3810d5(0x1ea)]),_0x588dd0[_0x3810d5(0x20e)](_0x3810d5(0x1b1),this['onClick']),this[_0x3810d5(0x251)]()),document[_0x3810d5(0x20e)](_0x3810d5(0x215),this[_0x3810d5(0x259)]),document[_0x3810d5(0x20e)](_0x3810d5(0x23b),this['onKeyDown']),document['removeEventListener'](_0x3810d5(0x209),this['onKeyUp']),window['removeEventListener']('blur',this['onWindowBlur']),this[_0x3810d5(0x1c8)][_0x3810d5(0x1fe)](),this[_0x3810d5(0x1c8)][_0x3810d5(0x20c)](),this[_0x3810d5(0x1e5)]=null;}[_0x282f8a(0x1ee)](_0xe422b9){const _0x392904=_0x282f8a;var _0x548a94,_0x3644c4;this[_0x392904(0x1c1)][_0x392904(0x1fb)](_0xe422b9);const _0x1d64b0=this[_0x392904(0x22f)][_0x392904(0x20a)];if(!_0x1d64b0)throw Error('canvas\x20is\x20null');const _0x13b352=_0x1d64b0[_0x392904(0x228)]();this['pointerPosition']['set']((_0xe422b9[_0x392904(0x1d9)]-_0x13b352[_0x392904(0x22b)])/_0x1d64b0[_0x392904(0x23f)]*0x2-0x1,0x1-(_0xe422b9[_0x392904(0x1b7)]-_0x13b352[_0x392904(0x1f2)])/_0x1d64b0[_0x392904(0x248)]*0x2);if(this[_0x392904(0x220)]['size']>0x0)return;const _0x2c6c83=this[_0x392904(0x238)](),_0x19090c=(_0x548a94=_0x2c6c83===null||_0x2c6c83===void 0?void 0:_0x2c6c83[_0x392904(0x1d3)])!==null&&_0x548a94!==void 0?_0x548a94:null,_0x2bb945=(_0x3644c4=_0x19090c===null||_0x19090c===void 0?void 0:_0x19090c[_0x392904(0x1e6)])!==null&&_0x3644c4!==void 0?_0x3644c4:null;_0x19090c!==this[_0x392904(0x234)]&&(this[_0x392904(0x234)]&&this[_0x392904(0x1a6)](this[_0x392904(0x234)]),_0x19090c&&_0x2c6c83&&this['fireComponentHoverBegin'](_0x19090c,_0x2c6c83[_0x392904(0x1b5)])),_0x2bb945!==this[_0x392904(0x22c)]&&(this[_0x392904(0x22c)]&&this[_0x392904(0x234)]&&this[_0x392904(0x21b)](this[_0x392904(0x22c)],this[_0x392904(0x234)]),_0x2bb945&&_0x19090c&&_0x2c6c83&&this['fireActorHoverBegin'](_0x2bb945,_0x19090c,_0x2c6c83[_0x392904(0x1b5)])),this[_0x392904(0x234)]=_0x19090c,this[_0x392904(0x22c)]=_0x2bb945;}[_0x282f8a(0x1eb)](){const _0x2c95c4=_0x282f8a;this['hoveringComponent']&&this[_0x2c95c4(0x1a6)](this[_0x2c95c4(0x234)]),this[_0x2c95c4(0x22c)]&&this['hoveringComponent']&&this[_0x2c95c4(0x21b)](this['hoveringActor'],this[_0x2c95c4(0x234)]),this[_0x2c95c4(0x234)]=null,this[_0x2c95c4(0x22c)]=null;}[_0x282f8a(0x22e)](_0x31bd38){const _0x4ef9a2=_0x282f8a;this[_0x4ef9a2(0x1f9)][_0x4ef9a2(0x1fb)](_0x31bd38),this[_0x4ef9a2(0x220)][_0x4ef9a2(0x224)](_0x31bd38[_0x4ef9a2(0x1c4)]);if(_0x31bd38['button']!==0x0)return;const _0x15152b=this[_0x4ef9a2(0x1d2)][_0x4ef9a2(0x1a8)](this[_0x4ef9a2(0x252)],this[_0x4ef9a2(0x23a)])['length']();if(_0x15152b>0.005){this[_0x4ef9a2(0x1f8)]();return;}this[_0x4ef9a2(0x23c)]={'ctrlKey':_0x31bd38[_0x4ef9a2(0x232)],'shiftKey':_0x31bd38[_0x4ef9a2(0x263)],'altKey':_0x31bd38['altKey']},!this['leftClickTimer']?this['handleFirstClick']():this[_0x4ef9a2(0x244)]();}[_0x282f8a(0x227)](){const _0x5e1eee=_0x282f8a,_0x389fe3=this[_0x5e1eee(0x238)](),_0x4ce207=_0x389fe3===null||_0x389fe3===void 0?void 0:_0x389fe3[_0x5e1eee(0x1d3)];_0x4ce207 instanceof SceneComponent&&_0x389fe3?(this[_0x5e1eee(0x1db)]=_0x4ce207,this[_0x5e1eee(0x1b9)]=_0x389fe3[_0x5e1eee(0x1b5)],this[_0x5e1eee(0x206)]=window[_0x5e1eee(0x1ce)](()=>{const _0x38ca5a=_0x5e1eee;this['leftClickTimer']=null,this['prepareClickComponent']&&this[_0x38ca5a(0x1b9)]&&(this['fireClickEvents'](this['prepareClickComponent'],this[_0x38ca5a(0x1b9)],![]),this[_0x38ca5a(0x1db)]=null,this[_0x38ca5a(0x1b9)]=null);},this['doubleClickDelay'])):this[_0x5e1eee(0x1bb)][_0x5e1eee(0x1fb)]();}[_0x282f8a(0x244)](){const _0x37177c=_0x282f8a;this['clearClickTimer'](),this[_0x37177c(0x1db)]&&this[_0x37177c(0x1b9)]?this[_0x37177c(0x1a1)](this[_0x37177c(0x1db)],this[_0x37177c(0x1b9)],!![]):this[_0x37177c(0x1bb)][_0x37177c(0x1fb)](),this[_0x37177c(0x1db)]=null,this['prepareClickHit']=null;}['onPointerDownEvent'](_0x2a8c99){const _0x3b61a1=_0x282f8a;this[_0x3b61a1(0x1a2)][_0x3b61a1(0x1fb)](_0x2a8c99),this[_0x3b61a1(0x220)][_0x3b61a1(0x24a)](_0x2a8c99[_0x3b61a1(0x1c4)]);_0x2a8c99[_0x3b61a1(0x1c4)]===0x0&&this['pointerLeftDownPosition'][_0x3b61a1(0x1f1)](this[_0x3b61a1(0x23a)]);const _0x53fcd1=this[_0x3b61a1(0x238)](),_0x2ddf3e=_0x53fcd1===null||_0x53fcd1===void 0?void 0:_0x53fcd1[_0x3b61a1(0x1d3)];_0x2ddf3e instanceof SceneComponent&&_0x53fcd1&&this[_0x3b61a1(0x21d)](_0x2ddf3e,_0x53fcd1[_0x3b61a1(0x1b5)],_0x2a8c99['button']);}['onPointerEnterEvent'](_0x19ef6b){const _0x4c8327=_0x282f8a;this[_0x4c8327(0x1ad)]();}['onPointerLeaveEvent'](_0x3bb940){const _0x282a11=_0x282f8a;this[_0x282a11(0x251)]();}['onPointerCancelEvent'](_0x29d1ee){const _0x2ec643=_0x282f8a;this['_onPointerCancelDelegate'][_0x2ec643(0x1fb)](_0x29d1ee);}['onWheelEvent'](_0x1ea8f2){const _0xd4aadd=_0x282f8a;this['_onWheelDelegate'][_0xd4aadd(0x1fb)](_0x1ea8f2);}[_0x282f8a(0x1fd)](_0x43e82c){const _0x11babe=_0x282f8a;this['_onKeyDownDelegate'][_0x11babe(0x1fb)](_0x43e82c);}['onKeyUpEvent'](_0x44684a){const _0xb1fe0a=_0x282f8a;this[_0xb1fe0a(0x1df)]['broadcast'](_0x44684a);}['onContextMenuEvent'](_0x559b20){const _0x521ad9=_0x282f8a;this['_onContextMenuDelegate'][_0x521ad9(0x1fb)](_0x559b20);}[_0x282f8a(0x22d)](_0x4ddd58){const _0x34dc80=_0x282f8a;this[_0x34dc80(0x1a0)][_0x34dc80(0x1fb)](_0x4ddd58);}['onWindowBlurEvent'](_0x49017c){const _0x3c7908=_0x282f8a;this[_0x3c7908(0x1ec)]['broadcast'](_0x49017c);}[_0x282f8a(0x1ef)](_0x576b4f){const _0x4beaf4=_0x282f8a;this[_0x4beaf4(0x1f7)]['broadcast'](_0x576b4f);}[_0x282f8a(0x25a)](_0x40929b,_0x7bbfb9){const _0x597b7c=_0x282f8a,_0x130526={'component':_0x40929b,'hit':_0x7bbfb9,'handled':![]};this['_onComponentHoverBeginDelegate'][_0x597b7c(0x1fb)](_0x130526),!_0x130526['handled']&&_0x40929b[_0x597b7c(0x20d)]();}['fireComponentHoverEnd'](_0x365f5b){const _0x146c71=_0x282f8a,_0x10b0b0={'component':_0x365f5b,'hit':null,'handled':![]};this[_0x146c71(0x1da)][_0x146c71(0x1fb)](_0x10b0b0),!_0x10b0b0[_0x146c71(0x210)]&&_0x365f5b[_0x146c71(0x24f)]();}['fireComponentClick'](_0x4c951e,_0x1433a8,_0x282e90){const _0x18fce9=_0x282f8a,_0x110aee=Object[_0x18fce9(0x20b)]({'component':_0x4c951e,'hit':_0x1433a8,'handled':![]},this['prepareClickModifiers']);_0x282e90?(this['_onComponentDoubleClickDelegate'][_0x18fce9(0x1fb)](_0x110aee),!_0x110aee['handled']&&_0x4c951e[_0x18fce9(0x25b)]()):(this[_0x18fce9(0x1d1)]['broadcast'](_0x110aee),!_0x110aee[_0x18fce9(0x210)]&&_0x4c951e['onClicked']());}['firePointerDownEvent'](_0x5771ae,_0x3622e7,_0x59f3ea){const _0x4a0e81=_0x282f8a,_0xa2727b={'component':_0x5771ae,'hit':_0x3622e7,'button':_0x59f3ea,'handled':![]};this[_0x4a0e81(0x203)][_0x4a0e81(0x1fb)](_0xa2727b);}[_0x282f8a(0x1bd)](_0x4181ff,_0x11cfc9,_0x179867){const _0x29ec10=_0x282f8a,_0x2f0c3d={'actor':_0x4181ff,'component':_0x11cfc9,'hit':_0x179867,'handled':![]};this[_0x29ec10(0x246)][_0x29ec10(0x1fb)](_0x2f0c3d),!_0x2f0c3d['handled']&&_0x4181ff[_0x29ec10(0x1f0)](_0x11cfc9);}[_0x282f8a(0x21b)](_0x19c287,_0x5d8dd5){const _0x5d0c60=_0x282f8a,_0xedb13e={'actor':_0x19c287,'component':_0x5d8dd5,'hit':null,'handled':![]};this['_onActorHoverEndDelegate'][_0x5d0c60(0x1fb)](_0xedb13e),!_0xedb13e[_0x5d0c60(0x210)]&&_0x19c287['onActorHoverEnd'](_0x5d8dd5);}[_0x282f8a(0x1f3)](_0x2aa35c,_0x48aa1d,_0x199091,_0x5da1df){const _0xbf9854=_0x282f8a,_0x5ca9a2=Object['assign']({'actor':_0x2aa35c,'component':_0x48aa1d,'hit':_0x199091,'handled':![]},this[_0xbf9854(0x23c)]);_0x5da1df?(this[_0xbf9854(0x20f)][_0xbf9854(0x1fb)](_0x5ca9a2),!_0x5ca9a2['handled']&&_0x2aa35c[_0xbf9854(0x1ab)](_0x48aa1d)):(this['_onActorClickDelegate'][_0xbf9854(0x1fb)](_0x5ca9a2),!_0x5ca9a2[_0xbf9854(0x210)]&&_0x2aa35c['onActorClick'](_0x48aa1d));}[_0x282f8a(0x1a1)](_0x3d4078,_0x2c372d,_0x4762f2){const _0x2a440d=_0x282f8a;this[_0x2a440d(0x1cc)](_0x3d4078,_0x2c372d,_0x4762f2);const _0x3bfb79=_0x3d4078[_0x2a440d(0x1e6)];if(_0x3bfb79){if(_0x3bfb79[_0x2a440d(0x23e)])this[_0x2a440d(0x1f3)](_0x3bfb79,_0x3d4078,_0x2c372d,_0x4762f2);}}[_0x282f8a(0x1f8)](){const _0x118158=_0x282f8a;this[_0x118158(0x206)]&&(window[_0x118158(0x202)](this[_0x118158(0x206)]),this[_0x118158(0x206)]=null);}[_0x282f8a(0x1ad)](){const _0x1c312a=_0x282f8a,_0x3740d4=this[_0x1c312a(0x22f)][_0x1c312a(0x20a)];if(!_0x3740d4)return;_0x3740d4[_0x1c312a(0x1de)](_0x1c312a(0x256),this[_0x1c312a(0x208)]),_0x3740d4[_0x1c312a(0x1de)]('pointerup',this[_0x1c312a(0x233)]),_0x3740d4['addEventListener']('pointerdown',this['onPointerDown']);}[_0x282f8a(0x251)](){const _0x4d644b=_0x282f8a,_0x541701=this[_0x4d644b(0x22f)][_0x4d644b(0x20a)];if(!_0x541701)return;_0x541701[_0x4d644b(0x20e)](_0x4d644b(0x256),this['onPointerMove']),_0x541701[_0x4d644b(0x20e)]('pointerup',this[_0x4d644b(0x233)]),_0x541701[_0x4d644b(0x20e)](_0x4d644b(0x207),this[_0x4d644b(0x253)]);}[_0x282f8a(0x238)](_0x298e98=!![]){const _0x15376d=_0x282f8a;return this[_0x15376d(0x1ca)](this[_0x15376d(0x23a)]['x'],this[_0x15376d(0x23a)]['y'],_0x298e98);}[_0x282f8a(0x1ca)](_0x4a833a,_0xd71677,_0x44bd4e=!![]){const _0x2017d0=_0x282f8a;this['_raycastVec2']['set'](_0x4a833a,_0xd71677),this['raycaster'][_0x2017d0(0x216)](this[_0x2017d0(0x21f)],this[_0x2017d0(0x1a9)]);const _0x4dc1ea=this[_0x2017d0(0x247)](_0x4a833a,_0xd71677);if(!_0x44bd4e)return _0x4dc1ea[0x0]||null;for(const _0x11602a of _0x4dc1ea){const _0x8cbfca=_0x11602a['component']['isHoverEnabled']||_0x11602a[_0x2017d0(0x1d3)][_0x2017d0(0x23e)],_0x16bb29=_0x11602a[_0x2017d0(0x1d3)][_0x2017d0(0x1e6)],_0x21c36a=_0x16bb29&&(_0x16bb29[_0x2017d0(0x237)]||_0x16bb29[_0x2017d0(0x23e)]);if(_0x8cbfca||_0x21c36a)return _0x11602a;}return null;}['getAllHitResultUnderCursor'](_0x376cbd=!![]){const _0x12b0d7=_0x282f8a;return this[_0x12b0d7(0x247)](this['pointerPosition']['x'],this[_0x12b0d7(0x23a)]['y']);}[_0x282f8a(0x247)](_0xc6ad03,_0x311308){const _0x492a49=_0x282f8a;this[_0x492a49(0x21f)][_0x492a49(0x1c6)](_0xc6ad03,_0x311308),this[_0x492a49(0x264)]['setFromCamera'](this[_0x492a49(0x21f)],this[_0x492a49(0x1a9)]);const _0x2a0ccc=this[_0x492a49(0x264)][_0x492a49(0x24e)]['origin'],_0x44c72b=this['raycaster']['ray']['at'](0x2710,new webgpu.Vector3()),_0x3f2399=this['world']['physics'][_0x492a49(0x1a3)](_0x2a0ccc,_0x44c72b,exports.CollisionChannel[_0x492a49(0x1d0)]),_0xea0ae5=[];for(const _0x370bd0 of _0x3f2399){if(!_0x370bd0[_0x492a49(0x229)]||!_0x370bd0[_0x492a49(0x229)]['threeObject'])continue;if(this[_0x492a49(0x1a9)]instanceof webgpu.PerspectiveCamera&&_0x370bd0[_0x492a49(0x262)]<this[_0x492a49(0x1a9)][_0x492a49(0x1cb)])continue;const _0x445112={'distance':_0x370bd0[_0x492a49(0x262)],'point':_0x370bd0[_0x492a49(0x221)],'object':_0x370bd0['collider']['threeObject'],'uv':new webgpu.Vector2(0x0,0x0)};_0xea0ae5[_0x492a49(0x1e7)]({'component':_0x370bd0['collider'],'hit':_0x445112});if(_0x370bd0['blocking'])break;}return _0xea0ae5;}[_0x282f8a(0x1b8)](_0x1edca2,_0x32b42d,_0x5b8299,_0x2fbea1,_0x4a9f5d=null,_0x2d8dcd=null){const _0x250ad6=_0x282f8a;this[_0x250ad6(0x1c8)][_0x250ad6(0x1b8)](_0x1edca2,_0x32b42d,_0x5b8299,_0x2fbea1,_0x4a9f5d,_0x2d8dcd);}[_0x282f8a(0x218)](_0x25e7df,_0x4c83b6,_0x5e79e8=![],_0x4ae2f5=null,_0x480a6e=null){const _0xe6ea1e=_0x282f8a,_0x16049c=new webgpu.Vector3(),_0x5ef186=new webgpu.Vector3();_0x25e7df[_0xe6ea1e(0x249)](_0x16049c),_0x25e7df[_0xe6ea1e(0x1e1)](_0x5ef186);const _0x11f05b=this[_0xe6ea1e(0x254)][_0xe6ea1e(0x1a9)];if(_0x11f05b&&_0x11f05b[_0xe6ea1e(0x236)]){const _0x497aad=_0x11f05b[_0xe6ea1e(0x201)]*(Math['PI']/0xb4),_0x1031e8=Math['sqrt'](0.5),_0x3500f4=_0x5ef186[_0xe6ea1e(0x21a)]()*0.5,_0x5aa53d=Math[_0xe6ea1e(0x1ff)](_0x3500f4/_0x1031e8/Math[_0xe6ea1e(0x1c3)](_0x497aad/0x2),_0x11f05b[_0xe6ea1e(0x1cb)]*0x2);let _0x18686a=_0x11f05b[_0xe6ea1e(0x204)][_0xe6ea1e(0x200)]();if(_0x5e79e8){const _0x26332e=[new webgpu.Euler(-Math['PI']/0x6,Math['PI']/0x4,0x0,'YXZ'),new webgpu.Euler(-Math['PI']/0x6,Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x6,-Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x6,0x0,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x6,Math['PI'],0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x4,Math['PI']/0x4,0x0,'YXZ'),new webgpu.Euler(-Math['PI']/0x4,Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x4,-Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x4,0x0,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x4,Math['PI'],0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x2,0x0,0x0,'YXZ'),new webgpu.Euler(-Math['PI']/0x3,0x0,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x3,Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x3,Math['PI'],0x0,_0xe6ea1e(0x1b4)),new webgpu.Euler(-Math['PI']/0x3,-Math['PI']/0x2,0x0,_0xe6ea1e(0x1b4))];let _0x4ff05e=-1;for(const _0xc5f4cf of _0x26332e){const _0x2eea09=new webgpu.Quaternion()['setFromEuler'](_0xc5f4cf),_0x4257bf=new webgpu.Vector3(0x0,0x0,0x1)['applyQuaternion'](_0x2eea09),_0x26add5=_0x16049c[_0xe6ea1e(0x200)]()[_0xe6ea1e(0x24a)](_0x4257bf[_0xe6ea1e(0x24d)](_0x5aa53d)),_0xf0765=this[_0xe6ea1e(0x219)][_0xe6ea1e(0x230)][_0xe6ea1e(0x1e2)](_0x26add5,_0x16049c,exports.CollisionChannel['Visibility']);let _0x4dbcae=![],_0x279489=_0x5aa53d;_0xf0765&&_0xf0765[_0xe6ea1e(0x1f6)]&&(_0xf0765[_0xe6ea1e(0x262)]<_0x5aa53d-_0x3500f4*1.2&&(_0x4dbcae=!![],_0x279489=_0xf0765['distance']));if(!_0x4dbcae){_0x18686a=_0x2eea09;break;}else _0x279489>_0x4ff05e&&(_0x4ff05e=_0x279489,_0x18686a=_0x2eea09);}}const _0x5541bb=_0x18686a;this[_0xe6ea1e(0x1b8)](_0x16049c,_0x5541bb,_0x5aa53d,_0x4c83b6,_0x4ae2f5,_0x480a6e);}else {const _0x4bcbab=_0x5ef186['length']()*1.5,_0x401bea=new webgpu.Quaternion()[_0xe6ea1e(0x1d4)](new webgpu.Vector3(0x1,0x0,0x0),-Math['PI']/0x4);this[_0xe6ea1e(0x1b8)](_0x16049c,_0x401bea,_0x4bcbab,_0x4c83b6,_0x4ae2f5,_0x480a6e);}}[_0x282f8a(0x258)](_0x4eb48e,_0x5c6ab1,_0x1b02dc=![],_0x3f8f67=null,_0x109902=null){const _0x35796e=_0x282f8a,_0x3143c7=new webgpu.Box3()[_0x35796e(0x1c2)](_0x4eb48e);this[_0x35796e(0x218)](_0x3143c7,_0x5c6ab1,_0x1b02dc,_0x3f8f67,_0x109902);}}
|
|
92
|
+
const _0x5ef8fa=_0x4ec1;function _0x2017(){const _0x2810b9=['distance','onPointerLockChange','push','_onActorHoverBeginDelegate','onPointerCancel','_onActorClickDelegate','pawn','isClickEnabled','viewport','handled','_onWindowBlurDelegate','applyQuaternion','pointerleave','pointerlockchange','_tempVec2','2687768NpdsRy','hit','getAllHitResultFromScreenPoint','_onRawClickDelegate','onPointerUpEvent','onPointerUp','onPointerDownEvent','_onPointerCancelDelegate','fireActorHoverBegin','_onComponentPointerDownDelegate','pawn\x20is\x20null','prepareClickModifiers','handleFirstClick','onActorHoverBeginDelegate','onHorveringEnd','_onPointerDownDelegate','onPointerCancelEvent','addEventListener','onKeyDown','_onComponentDoubleClickDelegate','_pointButtonIsDown','alpha','onPointerEnterEvent','wheel','focusToObject','onComponentDoubleClickDelegate','onComponentPointerDownDelegate','delete','setFromEuler','onRawClickDelegate','onActorClick','4027164RWCpFa','point','305766qzgMFc','onContextMenuDelegate','_onContextMenuDelegate','getHitResultFromScreenPoint','viewPort','enabled','_onActorHoverEndDelegate','pointermove','_raycastVec2','ctrlKey','fireComponentHoverEnd','onComponentClickDelegate','camera','createInitialPawn','_onClickNothingDelegate','pointerup','onKeyUpDelegate','sqrt','_onWheelDelegate','max','_onKeyDownDelegate','_onPointerUpDelegate','log','onClicked','component','removeEventListener','onPointerLockChangeDelegate','_onComponentHoverBeginDelegate','size','assign','onActorHoverEnd','168IFCyPJ','length','prepareClickHit','getHitResultUnderCursor','fireComponentClick','onClickNothingDelegate','world','add','setFromCamera','onContextMenu','onWheelDelegate','onPointerEnter','hoveringComponent','raycaster','onPointerMove','onWheelEvent','40ywDqap','fireClickEvents','onPointerLeaveEvent','fireActorHoverEnd','getTargetCameraState','pointerdown','keyup','contextmenu','pointerPosition','tick','onClick','5fwJnbb','onClickEvent','quaternion','leftClickTimer','onPointerCancelDelegate','onPointerDownDelegate','3141270EtmcWb','136044tZUMIS','firePointerDownEvent','onContextMenuEvent','origin','pointerenter','setTimeout','multiplyScalar','focusToBounds','collider','blocking','app','9666414BPcIGI','pointercancel','1tOQXud','button','physics','_onPointerMoveDelegate','focusTo','getSize','1379468hiiIiC','doubleClickDelay','onActorDoubleClick','possess','onActorDoubleClickDelegate','Visibility','pointerLeftDownPosition','tan','onPointerLeave','clearHovering','prepareClickComponent','_onComponentClickDelegate','keydown','onKeyUp','set','clone','clientHeight','shiftKey','handleDoubleClick','_onComponentHoverEndDelegate','onPointerMoveEvent','clientX','setFromObject','fireComponentHoverBegin','kill','canvas','position','slerpQuaternions','destroy','onPointerDown','near','_onPointerLockChangeDelegate','clearClickTimer','lineTraceSingle','onWheel','click','parentActor','getCenter','ray','onWindowBlur','onPointerLockChangeEvent','onKeyDownEvent','hoveringActor','getAllHitResultUnderCursor','copy','_onActorDoubleClickDelegate','onKeyDownDelegate','onActorHoverBegin','_onKeyUpDelegate','subVectors','addCorePointerListeners','_app','onWindowBlurEvent','_pawn','power2.inOut','isHoverEnabled','fireActorClick','left','switchPawn','onKeyUpEvent','onComponentHoverBeginDelegate','clearTimeout','lineTraceMulti','removeCorePointerListeners','_switchPawnTween','broadcast','YXZ','unpossess','onHorveringBegin'];_0x2017=function(){return _0x2810b9;};return _0x2017();}function _0x4ec1(_0x5d5e5b,_0x5755ea){_0x5d5e5b=_0x5d5e5b-0x1f3;const _0x2017b5=_0x2017();let _0x4ec1d2=_0x2017b5[_0x5d5e5b];return _0x4ec1d2;}(function(_0x33318d,_0x1e79cf){const _0x117e66=_0x4ec1,_0xc70d7e=_0x33318d();while(!![]){try{const _0x27cfb3=parseInt(_0x117e66(0x2a6))/0x1*(parseInt(_0x117e66(0x2ac))/0x2)+parseInt(_0x117e66(0x256))/0x3+-parseInt(_0x117e66(0x299))/0x4*(-parseInt(_0x117e66(0x292))/0x5)+-parseInt(_0x117e66(0x258))/0x6*(-parseInt(_0x117e66(0x277))/0x7)+-parseInt(_0x117e66(0x237))/0x8+-parseInt(_0x117e66(0x2a4))/0x9+parseInt(_0x117e66(0x287))/0xa*(-parseInt(_0x117e66(0x298))/0xb);if(_0x27cfb3===_0x1e79cf)break;else _0xc70d7e['push'](_0xc70d7e['shift']());}catch(_0x3d8df6){_0xc70d7e['push'](_0xc70d7e['shift']());}}}(_0x2017,0xb3e84));class Controller{get[_0x5ef8fa(0x264)](){const _0xe3725b=_0x5ef8fa;return this[_0xe3725b(0x216)][_0xe3725b(0x264)];}get[_0x5ef8fa(0x27d)](){const _0x4787f8=_0x5ef8fa;return this[_0x4787f8(0x216)]['world'];}get[_0x5ef8fa(0x25c)](){const _0x3aa32a=_0x5ef8fa;return this[_0x3aa32a(0x216)][_0x3aa32a(0x230)];}get[_0x5ef8fa(0x2a3)](){const _0x2da298=_0x5ef8fa;return this[_0x2da298(0x216)];}get[_0x5ef8fa(0x22e)](){const _0x1d2549=_0x5ef8fa;if(!this[_0x1d2549(0x218)])throw Error(_0x1d2549(0x241));return this['_pawn'];}get[_0x5ef8fa(0x263)](){const _0xadf6d1=_0x5ef8fa;return this[_0xadf6d1(0x2b7)];}get[_0x5ef8fa(0x250)](){const _0x7bde62=_0x5ef8fa;return this[_0x7bde62(0x24a)];}get[_0x5ef8fa(0x21f)](){const _0x70dbf8=_0x5ef8fa;return this[_0x70dbf8(0x273)];}get['onComponentHoverEndDelegate'](){return this['_onComponentHoverEndDelegate'];}get[_0x5ef8fa(0x251)](){const _0x55f4b8=_0x5ef8fa;return this[_0x55f4b8(0x240)];}get['onActorClickDelegate'](){const _0xcabe3c=_0x5ef8fa;return this[_0xcabe3c(0x22d)];}get[_0x5ef8fa(0x2b0)](){const _0x1b5af8=_0x5ef8fa;return this[_0x1b5af8(0x210)];}get[_0x5ef8fa(0x244)](){const _0x100b29=_0x5ef8fa;return this[_0x100b29(0x22b)];}get['onActorHoverEndDelegate'](){const _0x11d4cd=_0x5ef8fa;return this[_0x11d4cd(0x25e)];}get[_0x5ef8fa(0x27c)](){const _0x505374=_0x5ef8fa;return this[_0x505374(0x266)];}get[_0x5ef8fa(0x297)](){const _0xaeba38=_0x5ef8fa;return this[_0xaeba38(0x246)];}get['onPointerUpDelegate'](){const _0x447773=_0x5ef8fa;return this[_0x447773(0x26d)];}get['onPointerMoveDelegate'](){const _0x3a8920=_0x5ef8fa;return this[_0x3a8920(0x2a9)];}get[_0x5ef8fa(0x296)](){const _0xd6f3fa=_0x5ef8fa;return this[_0xd6f3fa(0x23e)];}get[_0x5ef8fa(0x281)](){const _0x1a22ff=_0x5ef8fa;return this[_0x1a22ff(0x26a)];}get[_0x5ef8fa(0x211)](){const _0x1e33cc=_0x5ef8fa;return this[_0x1e33cc(0x26c)];}get[_0x5ef8fa(0x268)](){const _0x33bf67=_0x5ef8fa;return this[_0x33bf67(0x213)];}get[_0x5ef8fa(0x259)](){const _0x2e7748=_0x5ef8fa;return this[_0x2e7748(0x25a)];}get[_0x5ef8fa(0x272)](){const _0x142947=_0x5ef8fa;return this[_0x142947(0x202)];}get['onWindowBlurDelegate'](){const _0x11de62=_0x5ef8fa;return this[_0x11de62(0x232)];}get[_0x5ef8fa(0x254)](){return this['_onRawClickDelegate'];}constructor(_0x1a546e){const _0x42e043=_0x5ef8fa;this['_pawn']=null,this['_switchPawnTween']=null,this[_0x42e043(0x283)]=null,this[_0x42e043(0x20d)]=null,this[_0x42e043(0x2b6)]=null,this[_0x42e043(0x279)]=null,this[_0x42e043(0x242)]={'ctrlKey':![],'shiftKey':![],'altKey':![]},this[_0x42e043(0x24b)]=new Set(),this[_0x42e043(0x2b7)]=new Delegate(),this[_0x42e043(0x24a)]=new Delegate(),this[_0x42e043(0x273)]=new Delegate(),this['_onComponentHoverEndDelegate']=new Delegate(),this[_0x42e043(0x240)]=new Delegate(),this['_onActorClickDelegate']=new Delegate(),this['_onActorDoubleClickDelegate']=new Delegate(),this[_0x42e043(0x22b)]=new Delegate(),this[_0x42e043(0x25e)]=new Delegate(),this[_0x42e043(0x266)]=new Delegate(),this[_0x42e043(0x246)]=new Delegate(),this[_0x42e043(0x26d)]=new Delegate(),this['_onPointerMoveDelegate']=new Delegate(),this[_0x42e043(0x23e)]=new Delegate(),this['_onWheelDelegate']=new Delegate(),this[_0x42e043(0x26c)]=new Delegate(),this[_0x42e043(0x213)]=new Delegate(),this[_0x42e043(0x25a)]=new Delegate(),this['_onPointerLockChangeDelegate']=new Delegate(),this[_0x42e043(0x232)]=new Delegate(),this[_0x42e043(0x23a)]=new Delegate(),this[_0x42e043(0x28f)]=new webgpu.Vector2(),this[_0x42e043(0x2b2)]=new webgpu.Vector2(),this[_0x42e043(0x236)]=new webgpu.Vector2(),this[_0x42e043(0x260)]=new webgpu.Vector2(),this[_0x42e043(0x2ad)]=0xfa,this[_0x42e043(0x295)]=null,this[_0x42e043(0x285)]=_0x141cf9=>this[_0x42e043(0x1f7)](_0x141cf9),this['onPointerEnter']=_0x44a2a8=>this[_0x42e043(0x24d)](_0x44a2a8),this[_0x42e043(0x2b4)]=_0x3dce8e=>this['onPointerLeaveEvent'](_0x3dce8e),this[_0x42e043(0x23c)]=_0x5da36d=>this[_0x42e043(0x23b)](_0x5da36d),this[_0x42e043(0x200)]=_0x36d023=>this[_0x42e043(0x23d)](_0x36d023),this['onPointerCancel']=_0x282795=>this[_0x42e043(0x247)](_0x282795),this[_0x42e043(0x205)]=_0x20f081=>this[_0x42e043(0x286)](_0x20f081),this[_0x42e043(0x249)]=_0x110ca1=>this[_0x42e043(0x20c)](_0x110ca1),this[_0x42e043(0x2b9)]=_0x441714=>this[_0x42e043(0x21e)](_0x441714),this['onContextMenu']=_0x4d6e6c=>this[_0x42e043(0x29b)](_0x4d6e6c),this[_0x42e043(0x229)]=_0x18b9eb=>this[_0x42e043(0x20b)](_0x18b9eb),this[_0x42e043(0x20a)]=_0x1a1161=>this[_0x42e043(0x217)](_0x1a1161),this[_0x42e043(0x291)]=_0x5d2f42=>this[_0x42e043(0x293)](_0x5d2f42),this[_0x42e043(0x216)]=_0x1a546e,this['raycaster']=new webgpu.Raycaster(),this[_0x42e043(0x265)]();}[_0x5ef8fa(0x265)](){const _0x48cd5b=_0x5ef8fa;this['_pawn']=new Orbital(this[_0x48cd5b(0x216)]),this[_0x48cd5b(0x22e)][_0x48cd5b(0x2af)](),this[_0x48cd5b(0x22e)]['enabled']=!![];}['init'](){const _0x169c68=_0x5ef8fa,_0x4271ca=this[_0x169c68(0x25c)][_0x169c68(0x1fc)];console[_0x169c68(0x26e)]('canvas',_0x4271ca),_0x4271ca&&(_0x4271ca[_0x169c68(0x248)](_0x169c68(0x29d),this[_0x169c68(0x282)]),_0x4271ca[_0x169c68(0x248)](_0x169c68(0x234),this['onPointerLeave']),_0x4271ca[_0x169c68(0x248)]('pointercancel',this[_0x169c68(0x22c)]),_0x4271ca[_0x169c68(0x248)](_0x169c68(0x24e),this[_0x169c68(0x205)]),_0x4271ca[_0x169c68(0x248)](_0x169c68(0x28e),this[_0x169c68(0x280)]),_0x4271ca[_0x169c68(0x248)](_0x169c68(0x206),this[_0x169c68(0x291)]),this[_0x169c68(0x215)]()),document[_0x169c68(0x248)](_0x169c68(0x235),this[_0x169c68(0x229)]),document[_0x169c68(0x248)](_0x169c68(0x2b8),this[_0x169c68(0x249)]),document[_0x169c68(0x248)](_0x169c68(0x28d),this[_0x169c68(0x2b9)]),window[_0x169c68(0x248)]('blur',this['onWindowBlur']),this[_0x169c68(0x218)]&&(this[_0x169c68(0x218)][_0x169c68(0x226)](),this[_0x169c68(0x218)]['possess']());}['updateCamera'](){const _0x1a8e26=_0x5ef8fa;var _0x2e288c,_0x182ad5;const _0x525227=this[_0x1a8e26(0x22e)][_0x1a8e26(0x25d)];(_0x2e288c=this[_0x1a8e26(0x218)])===null||_0x2e288c===void 0?void 0:_0x2e288c[_0x1a8e26(0x226)](),(_0x182ad5=this[_0x1a8e26(0x218)])===null||_0x182ad5===void 0?void 0:_0x182ad5[_0x1a8e26(0x1ff)](),this[_0x1a8e26(0x218)]=new Orbital(this[_0x1a8e26(0x216)]),this[_0x1a8e26(0x22e)][_0x1a8e26(0x2af)](),this[_0x1a8e26(0x22e)][_0x1a8e26(0x25d)]=_0x525227;}async[_0x5ef8fa(0x21d)](_0x259e54,_0x50d187){const _0xbdd242=_0x5ef8fa;!_0x259e54['world']&&this[_0xbdd242(0x216)]['world']['addActor'](_0x259e54);this[_0xbdd242(0x223)]&&(this[_0xbdd242(0x223)][_0xbdd242(0x1fb)](),this[_0xbdd242(0x223)]=null);const _0x1e70ac=this[_0xbdd242(0x218)];if(_0x1e70ac===_0x259e54)return;if(!_0x50d187||_0x50d187<=0x0){_0x1e70ac&&(_0x1e70ac[_0xbdd242(0x226)](),_0x1e70ac['enabled']=![]);this[_0xbdd242(0x218)]=_0x259e54,this[_0xbdd242(0x218)][_0xbdd242(0x25d)]=!![],this['_pawn'][_0xbdd242(0x2af)]();return;}const _0x413c25=this[_0xbdd242(0x264)][_0xbdd242(0x1fd)][_0xbdd242(0x2bb)](),_0x3d5ffe=this[_0xbdd242(0x264)][_0xbdd242(0x294)][_0xbdd242(0x2bb)]();_0x1e70ac&&(_0x1e70ac[_0xbdd242(0x226)](),_0x1e70ac[_0xbdd242(0x25d)]=![]);const {position:_0x21346a,quaternion:_0x25d4d0}=_0x259e54[_0xbdd242(0x28b)]();return this[_0xbdd242(0x218)]=_0x259e54,this[_0xbdd242(0x218)][_0xbdd242(0x25d)]=![],new Promise(_0x3d7e00=>{const _0x3d6384=_0xbdd242,_0x1ab6cc={'alpha':0x0};this['_switchPawnTween']=gsap.gsap['to'](_0x1ab6cc,{'alpha':0x1,'duration':_0x50d187,'ease':_0x3d6384(0x219),'onUpdate':()=>{const _0xdcd04f=_0x3d6384,_0x587062=_0x1ab6cc[_0xdcd04f(0x24c)];this[_0xdcd04f(0x264)][_0xdcd04f(0x1fd)]['lerpVectors'](_0x413c25,_0x21346a,_0x587062),this[_0xdcd04f(0x264)][_0xdcd04f(0x294)][_0xdcd04f(0x1fe)](_0x3d5ffe,_0x25d4d0,_0x587062);},'onComplete':()=>{const _0x32e1c3=_0x3d6384;this[_0x32e1c3(0x223)]=null,this[_0x32e1c3(0x218)]===_0x259e54&&(this[_0x32e1c3(0x218)]['possess'](),this[_0x32e1c3(0x218)][_0x32e1c3(0x25d)]=!![]),_0x3d7e00();}});});}[_0x5ef8fa(0x290)](_0x19bdf8){const _0x579c16=_0x5ef8fa;!this['pawn']['world']&&this['pawn'][_0x579c16(0x290)](_0x19bdf8);}[_0x5ef8fa(0x1ff)](){const _0x110290=_0x5ef8fa;this[_0x110290(0x203)](),this[_0x110290(0x2b5)]();const _0x1ddb8d=this[_0x110290(0x25c)][_0x110290(0x1fc)];_0x1ddb8d&&(_0x1ddb8d['removeEventListener'](_0x110290(0x29d),this[_0x110290(0x282)]),_0x1ddb8d[_0x110290(0x271)](_0x110290(0x234),this[_0x110290(0x2b4)]),_0x1ddb8d[_0x110290(0x271)](_0x110290(0x2a5),this[_0x110290(0x22c)]),_0x1ddb8d['removeEventListener']('wheel',this[_0x110290(0x205)]),_0x1ddb8d[_0x110290(0x271)](_0x110290(0x28e),this['onContextMenu']),_0x1ddb8d[_0x110290(0x271)]('click',this['onClick']),this[_0x110290(0x222)]()),document[_0x110290(0x271)](_0x110290(0x235),this[_0x110290(0x229)]),document[_0x110290(0x271)](_0x110290(0x2b8),this['onKeyDown']),document['removeEventListener'](_0x110290(0x28d),this['onKeyUp']),window[_0x110290(0x271)]('blur',this[_0x110290(0x20a)]),this[_0x110290(0x22e)]['unpossess'](),this[_0x110290(0x22e)]['destroy'](),this[_0x110290(0x218)]=null;}['onPointerMoveEvent'](_0x22e74a){const _0x2182a9=_0x5ef8fa;var _0x5da949,_0x419846;this[_0x2182a9(0x2a9)][_0x2182a9(0x224)](_0x22e74a);const _0x2bec41=this[_0x2182a9(0x25c)][_0x2182a9(0x1fc)];if(!_0x2bec41)throw Error('canvas\x20is\x20null');const _0x2ebdfc=_0x2bec41['getBoundingClientRect']();this['pointerPosition'][_0x2182a9(0x2ba)]((_0x22e74a[_0x2182a9(0x1f8)]-_0x2ebdfc[_0x2182a9(0x21c)])/_0x2bec41['clientWidth']*0x2-0x1,0x1-(_0x22e74a['clientY']-_0x2ebdfc['top'])/_0x2bec41[_0x2182a9(0x1f3)]*0x2);if(this[_0x2182a9(0x24b)][_0x2182a9(0x274)]>0x0)return;const _0x4f66a1=this['getHitResultUnderCursor'](),_0xe43bf6=(_0x5da949=_0x4f66a1===null||_0x4f66a1===void 0?void 0:_0x4f66a1[_0x2182a9(0x270)])!==null&&_0x5da949!==void 0?_0x5da949:null,_0x529a0e=(_0x419846=_0xe43bf6===null||_0xe43bf6===void 0?void 0:_0xe43bf6[_0x2182a9(0x207)])!==null&&_0x419846!==void 0?_0x419846:null;_0xe43bf6!==this['hoveringComponent']&&(this['hoveringComponent']&&this[_0x2182a9(0x262)](this[_0x2182a9(0x283)]),_0xe43bf6&&_0x4f66a1&&this[_0x2182a9(0x1fa)](_0xe43bf6,_0x4f66a1[_0x2182a9(0x238)])),_0x529a0e!==this[_0x2182a9(0x20d)]&&(this[_0x2182a9(0x20d)]&&this[_0x2182a9(0x283)]&&this[_0x2182a9(0x28a)](this[_0x2182a9(0x20d)],this[_0x2182a9(0x283)]),_0x529a0e&&_0xe43bf6&&_0x4f66a1&&this[_0x2182a9(0x23f)](_0x529a0e,_0xe43bf6,_0x4f66a1[_0x2182a9(0x238)])),this[_0x2182a9(0x283)]=_0xe43bf6,this[_0x2182a9(0x20d)]=_0x529a0e;}['clearHovering'](){const _0xef90f9=_0x5ef8fa;this[_0xef90f9(0x283)]&&this[_0xef90f9(0x262)](this[_0xef90f9(0x283)]),this[_0xef90f9(0x20d)]&&this[_0xef90f9(0x283)]&&this[_0xef90f9(0x28a)](this[_0xef90f9(0x20d)],this[_0xef90f9(0x283)]),this['hoveringComponent']=null,this[_0xef90f9(0x20d)]=null;}[_0x5ef8fa(0x23b)](_0x56734){const _0x243e1e=_0x5ef8fa;this[_0x243e1e(0x26d)]['broadcast'](_0x56734),this[_0x243e1e(0x24b)][_0x243e1e(0x252)](_0x56734['button']);if(_0x56734[_0x243e1e(0x2a7)]!==0x0)return;const _0x5e298b=this['_tempVec2'][_0x243e1e(0x214)](this[_0x243e1e(0x2b2)],this[_0x243e1e(0x28f)])[_0x243e1e(0x278)]();if(_0x5e298b>0.005){this[_0x243e1e(0x203)]();return;}this[_0x243e1e(0x242)]={'ctrlKey':_0x56734[_0x243e1e(0x261)],'shiftKey':_0x56734[_0x243e1e(0x1f4)],'altKey':_0x56734['altKey']},!this[_0x243e1e(0x295)]?this['handleFirstClick']():this[_0x243e1e(0x1f5)]();}[_0x5ef8fa(0x243)](){const _0x260e08=_0x5ef8fa,_0x47a5a6=this[_0x260e08(0x27a)](),_0x74d76e=_0x47a5a6===null||_0x47a5a6===void 0?void 0:_0x47a5a6[_0x260e08(0x270)];_0x74d76e instanceof SceneComponent&&_0x47a5a6?(this[_0x260e08(0x2b6)]=_0x74d76e,this[_0x260e08(0x279)]=_0x47a5a6['hit'],this[_0x260e08(0x295)]=window[_0x260e08(0x29e)](()=>{const _0x5c6e50=_0x260e08;this[_0x5c6e50(0x295)]=null,this[_0x5c6e50(0x2b6)]&&this['prepareClickHit']&&(this[_0x5c6e50(0x288)](this['prepareClickComponent'],this[_0x5c6e50(0x279)],![]),this[_0x5c6e50(0x2b6)]=null,this[_0x5c6e50(0x279)]=null);},this['doubleClickDelay'])):this[_0x260e08(0x266)][_0x260e08(0x224)]();}['handleDoubleClick'](){const _0x5ef75e=_0x5ef8fa;this[_0x5ef75e(0x203)](),this[_0x5ef75e(0x2b6)]&&this[_0x5ef75e(0x279)]?this[_0x5ef75e(0x288)](this['prepareClickComponent'],this['prepareClickHit'],!![]):this['_onClickNothingDelegate'][_0x5ef75e(0x224)](),this[_0x5ef75e(0x2b6)]=null,this[_0x5ef75e(0x279)]=null;}['onPointerDownEvent'](_0x2e80c3){const _0x4782c2=_0x5ef8fa;this[_0x4782c2(0x246)][_0x4782c2(0x224)](_0x2e80c3),this[_0x4782c2(0x24b)][_0x4782c2(0x27e)](_0x2e80c3[_0x4782c2(0x2a7)]);_0x2e80c3['button']===0x0&&this[_0x4782c2(0x2b2)][_0x4782c2(0x20f)](this[_0x4782c2(0x28f)]);const _0x1e2264=this['getHitResultUnderCursor'](),_0x3152ca=_0x1e2264===null||_0x1e2264===void 0?void 0:_0x1e2264[_0x4782c2(0x270)];_0x3152ca instanceof SceneComponent&&_0x1e2264&&this[_0x4782c2(0x29a)](_0x3152ca,_0x1e2264[_0x4782c2(0x238)],_0x2e80c3[_0x4782c2(0x2a7)]);}[_0x5ef8fa(0x24d)](_0x4b592a){this['addCorePointerListeners']();}[_0x5ef8fa(0x289)](_0x31c8d4){const _0x47478c=_0x5ef8fa;this[_0x47478c(0x222)]();}['onPointerCancelEvent'](_0x16e1c3){const _0x2a3cca=_0x5ef8fa;this['_onPointerCancelDelegate'][_0x2a3cca(0x224)](_0x16e1c3);}['onWheelEvent'](_0x3455d7){const _0x5d36af=_0x5ef8fa;this[_0x5d36af(0x26a)][_0x5d36af(0x224)](_0x3455d7);}['onKeyDownEvent'](_0x39b639){const _0x3097cb=_0x5ef8fa;this[_0x3097cb(0x26c)][_0x3097cb(0x224)](_0x39b639);}[_0x5ef8fa(0x21e)](_0xdaa05f){const _0x232544=_0x5ef8fa;this[_0x232544(0x213)][_0x232544(0x224)](_0xdaa05f);}['onContextMenuEvent'](_0xc2a32e){const _0x116b8d=_0x5ef8fa;this[_0x116b8d(0x25a)][_0x116b8d(0x224)](_0xc2a32e);}[_0x5ef8fa(0x20b)](_0x49ea33){const _0x54dadb=_0x5ef8fa;this[_0x54dadb(0x202)]['broadcast'](_0x49ea33);}[_0x5ef8fa(0x217)](_0x287199){const _0x330c19=_0x5ef8fa;this[_0x330c19(0x232)][_0x330c19(0x224)](_0x287199);}[_0x5ef8fa(0x293)](_0x4cffa1){const _0x125777=_0x5ef8fa;this[_0x125777(0x23a)][_0x125777(0x224)](_0x4cffa1);}[_0x5ef8fa(0x1fa)](_0x555e2c,_0x1681d8){const _0x430f83=_0x5ef8fa,_0x356137={'component':_0x555e2c,'hit':_0x1681d8,'handled':![]};this[_0x430f83(0x273)]['broadcast'](_0x356137),!_0x356137[_0x430f83(0x231)]&&_0x555e2c[_0x430f83(0x227)]();}[_0x5ef8fa(0x262)](_0x5e6d6c){const _0x2d67bb=_0x5ef8fa,_0x1e8a31={'component':_0x5e6d6c,'hit':null,'handled':![]};this[_0x2d67bb(0x1f6)][_0x2d67bb(0x224)](_0x1e8a31),!_0x1e8a31['handled']&&_0x5e6d6c[_0x2d67bb(0x245)]();}[_0x5ef8fa(0x27b)](_0xe26950,_0x58d163,_0x40e533){const _0x37c50a=_0x5ef8fa,_0xaba986=Object[_0x37c50a(0x275)]({'component':_0xe26950,'hit':_0x58d163,'handled':![]},this['prepareClickModifiers']);_0x40e533?(this[_0x37c50a(0x24a)][_0x37c50a(0x224)](_0xaba986),!_0xaba986[_0x37c50a(0x231)]&&_0xe26950['onDoubleClicked']()):(this[_0x37c50a(0x2b7)][_0x37c50a(0x224)](_0xaba986),!_0xaba986[_0x37c50a(0x231)]&&_0xe26950[_0x37c50a(0x26f)]());}['firePointerDownEvent'](_0x50609b,_0x52ef69,_0x4d063a){const _0x2b6b3b=_0x5ef8fa,_0x2b17f6={'component':_0x50609b,'hit':_0x52ef69,'button':_0x4d063a,'handled':![]};this[_0x2b6b3b(0x240)][_0x2b6b3b(0x224)](_0x2b17f6);}[_0x5ef8fa(0x23f)](_0x47e2c3,_0x1162c7,_0x47e00a){const _0x442ac7=_0x5ef8fa,_0x3c9b30={'actor':_0x47e2c3,'component':_0x1162c7,'hit':_0x47e00a,'handled':![]};this['_onActorHoverBeginDelegate'][_0x442ac7(0x224)](_0x3c9b30),!_0x3c9b30[_0x442ac7(0x231)]&&_0x47e2c3[_0x442ac7(0x212)](_0x1162c7);}[_0x5ef8fa(0x28a)](_0x14c700,_0x409ac1){const _0x337759=_0x5ef8fa,_0x547c7d={'actor':_0x14c700,'component':_0x409ac1,'hit':null,'handled':![]};this[_0x337759(0x25e)][_0x337759(0x224)](_0x547c7d),!_0x547c7d[_0x337759(0x231)]&&_0x14c700[_0x337759(0x276)](_0x409ac1);}[_0x5ef8fa(0x21b)](_0x4bfa6b,_0x2c70b2,_0x3f4b68,_0x487eb1){const _0x59f3be=_0x5ef8fa,_0x597d6c=Object[_0x59f3be(0x275)]({'actor':_0x4bfa6b,'component':_0x2c70b2,'hit':_0x3f4b68,'handled':![]},this[_0x59f3be(0x242)]);_0x487eb1?(this[_0x59f3be(0x210)][_0x59f3be(0x224)](_0x597d6c),!_0x597d6c[_0x59f3be(0x231)]&&_0x4bfa6b[_0x59f3be(0x2ae)](_0x2c70b2)):(this[_0x59f3be(0x22d)][_0x59f3be(0x224)](_0x597d6c),!_0x597d6c[_0x59f3be(0x231)]&&_0x4bfa6b[_0x59f3be(0x255)](_0x2c70b2));}['fireClickEvents'](_0x2cdd8b,_0x2a3498,_0xa5444){const _0x328530=_0x5ef8fa;this[_0x328530(0x27b)](_0x2cdd8b,_0x2a3498,_0xa5444);const _0x2c2991=_0x2cdd8b[_0x328530(0x207)];if(_0x2c2991){if(_0x2c2991['isClickEnabled'])this['fireActorClick'](_0x2c2991,_0x2cdd8b,_0x2a3498,_0xa5444);}}[_0x5ef8fa(0x203)](){const _0x317fe1=_0x5ef8fa;this[_0x317fe1(0x295)]&&(window[_0x317fe1(0x220)](this[_0x317fe1(0x295)]),this['leftClickTimer']=null);}[_0x5ef8fa(0x215)](){const _0x67b8=_0x5ef8fa,_0x1188a4=this[_0x67b8(0x25c)][_0x67b8(0x1fc)];if(!_0x1188a4)return;_0x1188a4[_0x67b8(0x248)](_0x67b8(0x25f),this[_0x67b8(0x285)]),_0x1188a4[_0x67b8(0x248)](_0x67b8(0x267),this[_0x67b8(0x23c)]),_0x1188a4['addEventListener'](_0x67b8(0x28c),this[_0x67b8(0x200)]);}[_0x5ef8fa(0x222)](){const _0x55ec9c=_0x5ef8fa,_0x426e83=this[_0x55ec9c(0x25c)]['canvas'];if(!_0x426e83)return;_0x426e83[_0x55ec9c(0x271)]('pointermove',this[_0x55ec9c(0x285)]),_0x426e83[_0x55ec9c(0x271)](_0x55ec9c(0x267),this[_0x55ec9c(0x23c)]),_0x426e83[_0x55ec9c(0x271)](_0x55ec9c(0x28c),this[_0x55ec9c(0x200)]);}[_0x5ef8fa(0x27a)](_0x53d0d0=!![]){const _0x65e604=_0x5ef8fa;return this['getHitResultFromScreenPoint'](this[_0x65e604(0x28f)]['x'],this[_0x65e604(0x28f)]['y'],_0x53d0d0);}[_0x5ef8fa(0x25b)](_0x196b1b,_0x558e53,_0x1cfe3f=!![]){const _0x19e25e=_0x5ef8fa;this[_0x19e25e(0x260)][_0x19e25e(0x2ba)](_0x196b1b,_0x558e53),this['raycaster'][_0x19e25e(0x27f)](this[_0x19e25e(0x260)],this[_0x19e25e(0x264)]);const _0x4bb68c=this[_0x19e25e(0x239)](_0x196b1b,_0x558e53);if(!_0x1cfe3f)return _0x4bb68c[0x0]||null;for(const _0x469b8a of _0x4bb68c){const _0x80b019=_0x469b8a[_0x19e25e(0x270)][_0x19e25e(0x21a)]||_0x469b8a[_0x19e25e(0x270)][_0x19e25e(0x22f)],_0xc86a1b=_0x469b8a['component'][_0x19e25e(0x207)],_0xa462e5=_0xc86a1b&&(_0xc86a1b['isHoverEnabled']||_0xc86a1b['isClickEnabled']);if(_0x80b019||_0xa462e5)return _0x469b8a;}return null;}[_0x5ef8fa(0x20e)](_0x2a17e7=!![]){const _0x53b0b9=_0x5ef8fa;return this[_0x53b0b9(0x239)](this[_0x53b0b9(0x28f)]['x'],this[_0x53b0b9(0x28f)]['y']);}['getAllHitResultFromScreenPoint'](_0x517f45,_0x207c4a){const _0x5632d9=_0x5ef8fa;this[_0x5632d9(0x260)][_0x5632d9(0x2ba)](_0x517f45,_0x207c4a),this[_0x5632d9(0x284)][_0x5632d9(0x27f)](this[_0x5632d9(0x260)],this['camera']);const _0x177a25=this[_0x5632d9(0x284)][_0x5632d9(0x209)][_0x5632d9(0x29c)],_0x23a702=this[_0x5632d9(0x284)][_0x5632d9(0x209)]['at'](0x2710,new webgpu.Vector3()),_0x2add29=this[_0x5632d9(0x27d)][_0x5632d9(0x2a8)][_0x5632d9(0x221)](_0x177a25,_0x23a702,exports.CollisionChannel[_0x5632d9(0x2b1)]),_0x64d1d9=[];for(const _0xc21f38 of _0x2add29){if(!_0xc21f38[_0x5632d9(0x2a1)]||!_0xc21f38[_0x5632d9(0x2a1)]['threeObject'])continue;if(this['camera']instanceof webgpu.PerspectiveCamera&&_0xc21f38[_0x5632d9(0x228)]<this[_0x5632d9(0x264)][_0x5632d9(0x201)])continue;const _0x36a148={'distance':_0xc21f38[_0x5632d9(0x228)],'point':_0xc21f38[_0x5632d9(0x257)],'object':_0xc21f38[_0x5632d9(0x2a1)]['threeObject'],'uv':new webgpu.Vector2(0x0,0x0)};_0x64d1d9[_0x5632d9(0x22a)]({'component':_0xc21f38[_0x5632d9(0x2a1)],'hit':_0x36a148});if(_0xc21f38[_0x5632d9(0x2a2)])break;}return _0x64d1d9;}[_0x5ef8fa(0x2aa)](_0x48f5db,_0x714457,_0x2d4d2c,_0x28e533,_0x5d97fe=null,_0x204427=null){const _0x2f5c24=_0x5ef8fa;this[_0x2f5c24(0x22e)][_0x2f5c24(0x2aa)](_0x48f5db,_0x714457,_0x2d4d2c,_0x28e533,_0x5d97fe,_0x204427);}[_0x5ef8fa(0x2a0)](_0x206670,_0x5c27c5,_0x5001a8=![],_0x598781=null,_0x5cdede=null){const _0x22b55c=_0x5ef8fa,_0x417891=new webgpu.Vector3(),_0x29abcb=new webgpu.Vector3();_0x206670[_0x22b55c(0x208)](_0x417891),_0x206670[_0x22b55c(0x2ab)](_0x29abcb);const _0x4e74f2=this['app'][_0x22b55c(0x264)];if(_0x4e74f2&&_0x4e74f2['isPerspectiveCamera']){const _0x89356=_0x4e74f2['fov']*(Math['PI']/0xb4),_0x399de9=Math[_0x22b55c(0x269)](0.5),_0x4393a1=_0x29abcb['length']()*0.5,_0x45b342=Math[_0x22b55c(0x26b)](_0x4393a1/_0x399de9/Math[_0x22b55c(0x2b3)](_0x89356/0x2),_0x4e74f2[_0x22b55c(0x201)]*0x2);let _0x1c829b=_0x4e74f2[_0x22b55c(0x294)][_0x22b55c(0x2bb)]();if(_0x5001a8){const _0x3ade23=[new webgpu.Euler(-Math['PI']/0x6,Math['PI']/0x4,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x6,Math['PI']/0x2,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x6,-Math['PI']/0x2,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x6,0x0,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x6,Math['PI'],0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x4,Math['PI']/0x4,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x4,Math['PI']/0x2,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x4,-Math['PI']/0x2,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x4,0x0,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x4,Math['PI'],0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x2,0x0,0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x3,0x0,0x0,'YXZ'),new webgpu.Euler(-Math['PI']/0x3,Math['PI']/0x2,0x0,'YXZ'),new webgpu.Euler(-Math['PI']/0x3,Math['PI'],0x0,_0x22b55c(0x225)),new webgpu.Euler(-Math['PI']/0x3,-Math['PI']/0x2,0x0,_0x22b55c(0x225))];let _0x19c59a=-1;for(const _0x3bcae6 of _0x3ade23){const _0x1c3b44=new webgpu.Quaternion()[_0x22b55c(0x253)](_0x3bcae6),_0x449555=new webgpu.Vector3(0x0,0x0,0x1)[_0x22b55c(0x233)](_0x1c3b44),_0x41a690=_0x417891['clone']()[_0x22b55c(0x27e)](_0x449555[_0x22b55c(0x29f)](_0x45b342)),_0x311bd4=this[_0x22b55c(0x27d)][_0x22b55c(0x2a8)][_0x22b55c(0x204)](_0x41a690,_0x417891,exports.CollisionChannel[_0x22b55c(0x2b1)]);let _0x137882=![],_0x6735a7=_0x45b342;_0x311bd4&&_0x311bd4['blocking']&&(_0x311bd4[_0x22b55c(0x228)]<_0x45b342-_0x4393a1*1.2&&(_0x137882=!![],_0x6735a7=_0x311bd4[_0x22b55c(0x228)]));if(!_0x137882){_0x1c829b=_0x1c3b44;break;}else _0x6735a7>_0x19c59a&&(_0x19c59a=_0x6735a7,_0x1c829b=_0x1c3b44);}}const _0x5c83af=_0x1c829b;this['focusTo'](_0x417891,_0x5c83af,_0x45b342,_0x5c27c5,_0x598781,_0x5cdede);}else {const _0x26f684=_0x29abcb[_0x22b55c(0x278)]()*1.5,_0x1e960c=new webgpu.Quaternion()['setFromAxisAngle'](new webgpu.Vector3(0x1,0x0,0x0),-Math['PI']/0x4);this[_0x22b55c(0x2aa)](_0x417891,_0x1e960c,_0x26f684,_0x5c27c5,_0x598781,_0x5cdede);}}[_0x5ef8fa(0x24f)](_0x361ff6,_0x2f87dd,_0x5e28dd=![],_0x516b85=null,_0x3441d4=null){const _0x3ed067=_0x5ef8fa,_0x110ecc=new webgpu.Box3()[_0x3ed067(0x1f9)](_0x361ff6);this[_0x3ed067(0x2a0)](_0x110ecc,_0x2f87dd,_0x5e28dd,_0x516b85,_0x3441d4);}}
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
const _0x2004a0=_0x1d14;(function(_0x25392b,_0x37c477){const _0xe45635=_0x1d14,_0x445f57=_0x25392b();while(!![]){try{const _0x20f4cf=-parseInt(_0xe45635(0xf3))/0x1+parseInt(_0xe45635(0xde))/0x2*(-parseInt(_0xe45635(0xe4))/0x3)+parseInt(_0xe45635(0xdc))/0x4*(-parseInt(_0xe45635(0xf1))/0x5)+parseInt(_0xe45635(0xf0))/0x6+-parseInt(_0xe45635(0xeb))/0x7+parseInt(_0xe45635(0xdd))/0x8*(-parseInt(_0xe45635(0xef))/0x9)+parseInt(_0xe45635(0xee))/0xa*(parseInt(_0xe45635(0xd9))/0xb);if(_0x20f4cf===_0x37c477)break;else _0x445f57['push'](_0x445f57['shift']());}catch(_0x2baf4a){_0x445f57['push'](_0x445f57['shift']());}}}(_0x2178,0xa1de4));function _0x1d14(_0x2a0815,_0x145429){_0x2a0815=_0x2a0815-0xd7;const _0x217820=_0x2178();let _0x1d1465=_0x217820[_0x2a0815];return _0x1d1465;}class CameraFactory{static['createCamera'](_0x5c65fd){const _0x5c9a76=_0x1d14;try{switch(_0x5c65fd[_0x5c9a76(0xe8)]){case _0x5c9a76(0xe1):{let _0x1572da=_0x5c65fd;return new webgpu.PerspectiveCamera(_0x1572da[_0x5c9a76(0xe2)],_0x1572da['aspect'],_0x1572da[_0x5c9a76(0xf2)],_0x1572da['far']);}case _0x5c9a76(0xd7):{let _0x2e4f43=_0x5c65fd;return new webgpu.OrthographicCamera(_0x2e4f43['left'],_0x2e4f43[_0x5c9a76(0xea)],_0x2e4f43[_0x5c9a76(0xe6)],_0x2e4f43[_0x5c9a76(0xe9)],_0x2e4f43[_0x5c9a76(0xf2)],_0x2e4f43[_0x5c9a76(0xd8)]);}default:{throw new Error('Invalid\x20camera\x20type');}}}catch(_0x358206){return console['warn'](_0x5c9a76(0xec),_0x358206),console[_0x5c9a76(0xe0)](_0x5c9a76(0xdf)),new webgpu.PerspectiveCamera(0x32,0x1,0.1,0x3e8);}}static[_0x2004a0(0xe5)](_0x45967c,_0x3b646c){const _0x50dfe7=_0x2004a0;try{switch(_0x45967c['type']){case 'Perspective':{let _0x334eba=_0x45967c;if(_0x3b646c instanceof webgpu.PerspectiveCamera)return _0x3b646c['near']=_0x334eba[_0x50dfe7(0xf2)],_0x3b646c[_0x50dfe7(0xd8)]=_0x334eba[_0x50dfe7(0xd8)],_0x3b646c[_0x50dfe7(0xe2)]=_0x334eba[_0x50dfe7(0xe2)],_0x3b646c[_0x50dfe7(0xe3)]=_0x334eba[_0x50dfe7(0xe3)],_0x3b646c;return new webgpu.PerspectiveCamera(_0x334eba[_0x50dfe7(0xe2)],_0x334eba[_0x50dfe7(0xe3)],_0x334eba[_0x50dfe7(0xf2)],_0x334eba[_0x50dfe7(0xd8)]);}case _0x50dfe7(0xd7):{let _0x3f4822=_0x45967c;if(_0x3b646c instanceof webgpu.OrthographicCamera)return _0x3b646c['near']=_0x3f4822['near'],_0x3b646c[_0x50dfe7(0xd8)]=_0x3f4822[_0x50dfe7(0xd8)],_0x3b646c['left']=_0x3f4822['left'],_0x3b646c[_0x50dfe7(0xea)]=_0x3f4822[_0x50dfe7(0xea)],_0x3b646c[_0x50dfe7(0xe6)]=_0x3f4822['top'],_0x3b646c[_0x50dfe7(0xe9)]=_0x3f4822[_0x50dfe7(0xe9)],_0x3b646c;return new webgpu.OrthographicCamera(_0x3f4822[_0x50dfe7(0xdb)],_0x3f4822[_0x50dfe7(0xea)],_0x3f4822['top'],_0x3f4822['bottom'],_0x3f4822['near'],_0x3f4822[_0x50dfe7(0xd8)]);}default:{throw new Error(_0x50dfe7(0xed));}}}catch(_0x27b4ad){return console[_0x50dfe7(0xe0)](_0x50dfe7(0xda),_0x27b4ad),console[_0x50dfe7(0xe0)](_0x50dfe7(0xe7)),_0x3b646c;}}}function _0x2178(){const _0xe54e96=['far','44QDwvxe','[CameraFactory]Error\x20occurred\x20while\x20updating\x20camera:\x20','left','4AeEMru','8PWvMjR','2IBPVtM','[CameraFactory]Create\x20default\x20perspective\x20camera\x20instead','warn','Perspective','fov','aspect','2035503hftGNi','updataCamera','top','[CameraFactory]Update\x20Failed.\x20Return\x20old\x20camera\x20instead','type','bottom','right','4478516idkKnk','[CameraFactory]Error\x20occurred\x20while\x20creating\x20camera:\x20','Invalid\x20camera\x20type','8832610NzYUjA','4028490oJPlWB','5034504HzHabx','6401425MQkmas','near','662932Wmjvgs','Orthographic'];_0x2178=function(){return _0xe54e96;};return _0x2178();}
|
|
95
95
|
|
|
96
|
-
const
|
|
96
|
+
const _0x4f17c9=_0x3ed1;(function(_0x3d6e29,_0x1492ee){const _0x349aa4=_0x3ed1,_0x5cd387=_0x3d6e29();while(!![]){try{const _0x3b355c=parseInt(_0x349aa4(0xa4))/0x1*(parseInt(_0x349aa4(0xa6))/0x2)+parseInt(_0x349aa4(0xa1))/0x3+-parseInt(_0x349aa4(0xab))/0x4*(parseInt(_0x349aa4(0xa5))/0x5)+-parseInt(_0x349aa4(0xa0))/0x6*(-parseInt(_0x349aa4(0x9f))/0x7)+parseInt(_0x349aa4(0xac))/0x8+parseInt(_0x349aa4(0xa2))/0x9*(parseInt(_0x349aa4(0xa3))/0xa)+-parseInt(_0x349aa4(0xaa))/0xb;if(_0x3b355c===_0x1492ee)break;else _0x5cd387['push'](_0x5cd387['shift']());}catch(_0x2aa3f5){_0x5cd387['push'](_0x5cd387['shift']());}}}(_0x56a6,0xce92f));function _0x3ed1(_0x4744e7,_0x584235){_0x4744e7=_0x4744e7-0x9f;const _0x56a6d0=_0x56a6();let _0x3ed1ac=_0x56a6d0[_0x4744e7];return _0x3ed1ac;}const DefaultPerspectiveCameraParam={'near':0.1,'far':0x3e8,'type':_0x4f17c9(0xa9),'fov':0x32,'aspect':0x1};function _0x56a6(){const _0x130f54=['26027562knWYjp','2728504oyojwL','13411104JBGcvm','91ROrrjA','479244Ohuowc','1004112YOXAOD','523683kUYkIt','100BcrDFI','263071ZbJDDH','5XVlNIn','2IDLtij','Orthographic','parse','Perspective'];_0x56a6=function(){return _0x130f54;};return _0x56a6();}const DefaultOrthographicCameraParam={'type':_0x4f17c9(0xa7),'near':0.1,'far':0x3e8,'left':-1,'right':0x1,'top':0x1,'bottom':-1};const DefaultCameraParam=JSON[_0x4f17c9(0xa8)](JSON['stringify'](DefaultPerspectiveCameraParam));
|
|
97
97
|
|
|
98
|
-
(function(
|
|
98
|
+
(function(_0x1bf235,_0x5bc0f5){const _0x425583=_0x12cb,_0x33350f=_0x1bf235();while(!![]){try{const _0x5479f5=parseInt(_0x425583(0xb6))/0x1*(-parseInt(_0x425583(0xb4))/0x2)+-parseInt(_0x425583(0xba))/0x3+parseInt(_0x425583(0xbb))/0x4+-parseInt(_0x425583(0xbc))/0x5*(parseInt(_0x425583(0xb8))/0x6)+-parseInt(_0x425583(0xb5))/0x7*(parseInt(_0x425583(0xb7))/0x8)+-parseInt(_0x425583(0xbd))/0x9+parseInt(_0x425583(0xb9))/0xa;if(_0x5479f5===_0x5bc0f5)break;else _0x33350f['push'](_0x33350f['shift']());}catch(_0xd55e64){_0x33350f['push'](_0x33350f['shift']());}}}(_0x5576,0xe33b0));function _0x5576(){const _0x1ce406=['866EgpOOg','57470GPSirT','1865NVWQvC','1608qbhukX','144198GAiSnh','44192860rLQsYr','649320nMdlFc','4048996MSXNqQ','75zgpItx','13194981CbphCC'];_0x5576=function(){return _0x1ce406;};return _0x5576();}function _0x12cb(_0x321c24,_0x2d2094){_0x321c24=_0x321c24-0xb4;const _0x5576b7=_0x5576();let _0x12cbea=_0x5576b7[_0x321c24];return _0x12cbea;}const DefaultAppParam={'dracoPath':'','cameraParam':DefaultCameraParam,'postProcessParam':DefaultPostProcessParam,'viewportParam':DefaultViewportParam,'classes':{'assetManagerClass':AssetManager,'controllerClass':Controller,'worldClass':World,'viewportClass':Viewport}};
|
|
99
99
|
|
|
100
|
-
function
|
|
100
|
+
function _0x48b0(_0x30ef55,_0x3d0716){_0x30ef55=_0x30ef55-0xb1;const _0x7ce6db=_0x7ce6();let _0x48b033=_0x7ce6db[_0x30ef55];return _0x48b033;}function _0x7ce6(){const _0x48de68=['isMesh','object','disposeMeshMaterial','traverse','262528ohkmLj','forEach','geometry','material','9149WULUDb','disposeMeshResource','add','5645453kBvBbe','isArray','8082DaVnqO','children','11995erENCx','54aYzEfb','1773296LYsXHY','isScene','keys','9ZDtoYM','dispose','source','has','isTexture','2690DRmmsm','parent','12ONlcNz','disposeMaterialTextures','disposeObject3DResource','18186JTocAT','148ZBiwcb'];_0x7ce6=function(){return _0x48de68;};return _0x7ce6();}const _0x3e7479=_0x48b0;(function(_0x565a79,_0x3f93aa){const _0x38541c=_0x48b0,_0xd59e87=_0x565a79();while(!![]){try{const _0x2096db=-parseInt(_0x38541c(0xbb))/0x1+-parseInt(_0x38541c(0xb5))/0x2*(-parseInt(_0x38541c(0xcb))/0x3)+parseInt(_0x38541c(0xb6))/0x4*(-parseInt(_0x38541c(0xc6))/0x5)+-parseInt(_0x38541c(0xc7))/0x6*(parseInt(_0x38541c(0xbf))/0x7)+parseInt(_0x38541c(0xc8))/0x8+parseInt(_0x38541c(0xc4))/0x9*(-parseInt(_0x38541c(0xd0))/0xa)+-parseInt(_0x38541c(0xc2))/0xb*(-parseInt(_0x38541c(0xb2))/0xc);if(_0x2096db===_0x3f93aa)break;else _0xd59e87['push'](_0xd59e87['shift']());}catch(_0xd83a42){_0xd59e87['push'](_0xd59e87['shift']());}}}(_0x7ce6,0x2676c));class ThreeObjectLibrary{static[_0x3e7479(0xb3)](_0x1fe7cf){const _0x49f2c2=_0x3e7479,_0x5ad700=new Set(),_0x14e66d=new Set([_0x49f2c2(0xb1),_0x49f2c2(0xc5),_0x49f2c2(0xbd),_0x49f2c2(0xcd)]),_0x1a986d=_0x31a6bd=>{const _0xe7da37=_0x49f2c2;if(!_0x31a6bd||typeof _0x31a6bd!==_0xe7da37(0xb8)||_0x5ad700[_0xe7da37(0xce)](_0x31a6bd))return;if(_0x31a6bd['isObject3D']||_0x31a6bd[_0xe7da37(0xc9)]||_0x31a6bd[_0xe7da37(0xb7)]||_0x31a6bd['isBufferGeometry'])return;_0x5ad700[_0xe7da37(0xc1)](_0x31a6bd);if(_0xe7da37(0xcf)in _0x31a6bd){_0x31a6bd[_0xe7da37(0xcc)]();return;}Object[_0xe7da37(0xca)](_0x31a6bd)[_0xe7da37(0xbc)](_0x5312fb=>{const _0x53277b=_0xe7da37;if(_0x14e66d[_0x53277b(0xce)](_0x5312fb))return;_0x1a986d(_0x31a6bd[_0x5312fb]);});};Object[_0x49f2c2(0xca)](_0x1fe7cf)[_0x49f2c2(0xbc)](_0x957a3a=>{_0x1a986d(_0x1fe7cf[_0x957a3a]);});}static['disposeMeshMaterial'](_0xfdddaf){const _0x4c6f47=_0x3e7479;let _0x1c3fd5=Array[_0x4c6f47(0xc3)](_0xfdddaf['material'])?_0xfdddaf[_0x4c6f47(0xbe)]:[_0xfdddaf[_0x4c6f47(0xbe)]];_0x1c3fd5[_0x4c6f47(0xbc)](_0xac5685=>{const _0x236dbc=_0x4c6f47;ThreeObjectLibrary[_0x236dbc(0xb3)](_0xac5685),_0xac5685[_0x236dbc(0xcc)]();});}static['disposeMeshResource'](_0x472a5e,_0x361b1e=![]){const _0x13eb29=_0x3e7479;ThreeObjectLibrary[_0x13eb29(0xb9)](_0x472a5e),_0x472a5e['geometry'][_0x13eb29(0xcc)](),_0x361b1e&&_0x472a5e[_0x13eb29(0xc5)][_0x13eb29(0xbc)](_0x2b6cbe=>{const _0x2ae790=_0x13eb29;_0x2b6cbe instanceof webgpu.Mesh&&ThreeObjectLibrary[_0x2ae790(0xc0)](_0x2b6cbe,!![]);});}static[_0x3e7479(0xb4)](_0x5b33aa){const _0x43bb32=_0x3e7479;_0x5b33aa[_0x43bb32(0xba)](_0x3e05dc=>{_0x3e05dc instanceof webgpu.Mesh&&ThreeObjectLibrary['disposeMeshResource'](_0x3e05dc);});}}
|
|
101
101
|
|
|
102
|
-
function
|
|
102
|
+
function _0x1f30(){var _0x34c436=['8910027GGGcmH','33015eIJuIr','obj','2446158AunDWl','userData','createDefaultObject','6668976KjQCDV','threeObject','LYObject','596379AbTOFt','304KUytzd','545001GSTXIe','30iiVgwQ','36SvjuQJ','868444IPFzjz','three\x20object\x20is\x20invalid'];_0x1f30=function(){return _0x34c436;};return _0x1f30();}var _0x6d8eba=_0x44e8;function _0x44e8(_0x5b2441,_0x2d3955){_0x5b2441=_0x5b2441-0xd3;var _0x1f300e=_0x1f30();var _0x44e8d6=_0x1f300e[_0x5b2441];return _0x44e8d6;}(function(_0x4b839b,_0x54d540){var _0x3cdcba=_0x44e8,_0x410e2a=_0x4b839b();while(!![]){try{var _0x4d71be=parseInt(_0x3cdcba(0xd3))/0x1+-parseInt(_0x3cdcba(0xd6))/0x2+-parseInt(_0x3cdcba(0xdb))/0x3+parseInt(_0x3cdcba(0xe2))/0x4*(-parseInt(_0x3cdcba(0xd9))/0x5)+-parseInt(_0x3cdcba(0xd5))/0x6*(parseInt(_0x3cdcba(0xe1))/0x7)+-parseInt(_0x3cdcba(0xde))/0x8+parseInt(_0x3cdcba(0xd8))/0x9*(parseInt(_0x3cdcba(0xd4))/0xa);if(_0x4d71be===_0x54d540)break;else _0x410e2a['push'](_0x410e2a['shift']());}catch(_0x6bca8b){_0x410e2a['push'](_0x410e2a['shift']());}}}(_0x1f30,0x663d2));class LevelComponent extends SceneComponent{get[_0x6d8eba(0xdf)](){var _0x400ddd=_0x6d8eba;if(!this[_0x400ddd(0xda)])throw Error(_0x400ddd(0xd7));return this[_0x400ddd(0xda)];}set[_0x6d8eba(0xdf)](_0x14b66d){var _0x200908=_0x6d8eba;this[_0x200908(0xda)]=_0x14b66d,this[_0x200908(0xda)]&&(this[_0x200908(0xda)][_0x200908(0xdc)][_0x200908(0xe0)]=this);}constructor(_0x21bcf2,_0x1dcbdc){super(_0x21bcf2,_0x1dcbdc);}[_0x6d8eba(0xdd)](){return new three.Scene();}}
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _0x4b87f6=_0x305d;(function(_0x3eb594,_0x132303){var _0x3824ae=_0x305d,_0x29c282=_0x3eb594();while(!![]){try{var _0x1b8f85=parseInt(_0x3824ae(0x12b))/0x1+-parseInt(_0x3824ae(0x126))/0x2*(-parseInt(_0x3824ae(0x137))/0x3)+parseInt(_0x3824ae(0x128))/0x4+-parseInt(_0x3824ae(0x135))/0x5+-parseInt(_0x3824ae(0x130))/0x6+parseInt(_0x3824ae(0x12e))/0x7*(-parseInt(_0x3824ae(0x138))/0x8)+parseInt(_0x3824ae(0x125))/0x9*(-parseInt(_0x3824ae(0x129))/0xa);if(_0x1b8f85===_0x132303)break;else _0x29c282['push'](_0x29c282['shift']());}catch(_0x6f7b74){_0x29c282['push'](_0x29c282['shift']());}}}(_0x171d,0x9a795));function _0x305d(_0x51ef04,_0x1cdfb6){_0x51ef04=_0x51ef04-0x124;var _0x171d8=_0x171d();var _0x305d1c=_0x171d8[_0x51ef04];return _0x305d1c;}function _0x171d(){var _0x13ec67=['isTickEnabled','1946904EAUoew','10CAEvMU','tick','54806Nrfnir','constructRootComponent','childActors','7vvRirI','_scene','812874UaBjtC','scene','clearLevel','forEach','destroy','1002915NLyTzC','threeObject','25017RhiwWG','3591632lAEmvZ','traverse','app','uuid','1720647kGCliW','256XcwoPy'];_0x171d=function(){return _0x13ec67;};return _0x171d();}class LevelActor extends Actor{get[_0x4b87f6(0x131)](){var _0x329249=_0x4b87f6;if(!this[_0x329249(0x12f)])throw new Error('scene\x20is\x20null');return this[_0x329249(0x12f)];}constructor(_0x52e859,_0x2ffc45){var _0x388d75=_0x4b87f6;super(_0x52e859,_0x2ffc45),this[_0x388d75(0x12f)]=null,this['_scene']=this['rootComponent'][_0x388d75(0x136)],this[_0x388d75(0x127)]=![];}[_0x4b87f6(0x12c)](){var _0x2df1c4=_0x4b87f6;return new LevelComponent(this[_0x2df1c4(0x13a)],this[_0x2df1c4(0x124)]);}[_0x4b87f6(0x12a)](_0x138c57){var _0x200e21=_0x4b87f6;if(!this[_0x200e21(0x127)])return;super[_0x200e21(0x12a)](_0x138c57);}[_0x4b87f6(0x134)](){var _0x22e3dc=_0x4b87f6;this[_0x22e3dc(0x132)](),super[_0x22e3dc(0x134)]();}[_0x4b87f6(0x132)](){var _0x15f220=_0x4b87f6;this[_0x15f220(0x12d)][_0x15f220(0x133)](_0x39f8d6=>{var _0x557a24=_0x15f220;_0x39f8d6[_0x557a24(0x134)]();}),this['scene'][_0x15f220(0x139)](_0x4e8636=>{_0x4e8636 instanceof webgpu.Mesh&&ThreeObjectLibrary['disposeMeshResource'](_0x4e8636);});}}
|
|
105
105
|
|
|
106
|
-
function
|
|
106
|
+
function _0x5830(_0x1c833d,_0x58eecb){_0x1c833d=_0x1c833d-0x146;const _0x2f9b6e=_0x2f9b();let _0x58303e=_0x2f9b6e[_0x1c833d];return _0x58303e;}function _0x2f9b(){const _0x505f34=['3638877GIsDIM','1756048BiWLdG','5WRvdVl','208084bvhYHm','8010eiXOLa','9ZaGyxE','193341kZPKxN','82059kyEXdL','12XUEkuf','2867430PTKRVw','2UiRIPk','819lfWtwL'];_0x2f9b=function(){return _0x505f34;};return _0x2f9b();}(function(_0xf3681d,_0x241f6e){const _0x2a4198=_0x5830,_0xff93a3=_0xf3681d();while(!![]){try{const _0x192b29=-parseInt(_0x2a4198(0x14f))/0x1+-parseInt(_0x2a4198(0x146))/0x2*(-parseInt(_0x2a4198(0x14e))/0x3)+parseInt(_0x2a4198(0x14b))/0x4*(-parseInt(_0x2a4198(0x14a))/0x5)+-parseInt(_0x2a4198(0x14c))/0x6*(parseInt(_0x2a4198(0x147))/0x7)+-parseInt(_0x2a4198(0x149))/0x8+parseInt(_0x2a4198(0x14d))/0x9*(parseInt(_0x2a4198(0x151))/0xa)+-parseInt(_0x2a4198(0x148))/0xb*(-parseInt(_0x2a4198(0x150))/0xc);if(_0x192b29===_0x241f6e)break;else _0xff93a3['push'](_0xff93a3['shift']());}catch(_0x404ba3){_0xff93a3['push'](_0xff93a3['shift']());}}}(_0x2f9b,0x2a0b8));const DefaultWorldParam={'levelActorClass':LevelActor};
|
|
107
107
|
|
|
108
|
-
function
|
|
108
|
+
function _0x4fc2(){const _0x4d9775=['9390lYyBbe','4rFIhSe','2458398gksLhf','postConstruct','push','100bYhuNu','404568NZQmUT','573231uGpHXo','setAnimationLoop','tick','splice','aspect','dracoPath','markRenderStateDirty','controller','world','966ifDEWT','destroy','updateProjectionMatrix','994WRtNdY','91641eTXFhk','viewportClass','_viewport','68744NNbhNf','assetManagerClass','addTickingFunction','_onCameraChangedDelegate','log','viewport','_controller','clock','onCameraChangedDelegate','clear','removeTickingFunction','_camera','camera','getDelta','renderAsImage','1371520EqcSHu','_tickingFunctions','updateCamera','updataCamera','init','_world','assetManager','_assetManager','forEach','viewportParam','cameraParam','_clock','classes','broadcast','onWindowResize','createCamera','_isTickPaused'];_0x4fc2=function(){return _0x4d9775;};return _0x4fc2();}const _0x496092=_0x3a85;(function(_0x3fd102,_0x1d027c){const _0x1e5583=_0x3a85,_0x23b7fe=_0x3fd102();while(!![]){try{const _0x2de69a=-parseInt(_0x1e5583(0x170))/0x1+-parseInt(_0x1e5583(0x18f))/0x2+-parseInt(_0x1e5583(0x16b))/0x3*(-parseInt(_0x1e5583(0x16a))/0x4)+parseInt(_0x1e5583(0x169))/0x5*(parseInt(_0x1e5583(0x179))/0x6)+parseInt(_0x1e5583(0x17c))/0x7*(parseInt(_0x1e5583(0x180))/0x8)+-parseInt(_0x1e5583(0x16f))/0x9*(parseInt(_0x1e5583(0x16e))/0xa)+-parseInt(_0x1e5583(0x17d))/0xb;if(_0x2de69a===_0x1d027c)break;else _0x23b7fe['push'](_0x23b7fe['shift']());}catch(_0x5a8b72){_0x23b7fe['push'](_0x23b7fe['shift']());}}}(_0x4fc2,0x98a24));function _0x3a85(_0x2c9f2c,_0x4a2ab8){_0x2c9f2c=_0x2c9f2c-0x166;const _0x4fc293=_0x4fc2();let _0x3a85d6=_0x4fc293[_0x2c9f2c];return _0x3a85d6;}class ThreeJsApp{get[_0x496092(0x18c)](){const _0x3fa0d5=_0x496092;return this[_0x3fa0d5(0x18b)];}get[_0x496092(0x187)](){const _0xb1f596=_0x496092;return this[_0xb1f596(0x19a)];}get[_0x496092(0x178)](){const _0x143453=_0x496092;return this[_0x143453(0x194)];}get['viewport'](){const _0x238a9f=_0x496092;return this[_0x238a9f(0x17f)];}get[_0x496092(0x177)](){const _0x50f596=_0x496092;return this[_0x50f596(0x186)];}get[_0x496092(0x195)](){const _0x381592=_0x496092;return this[_0x381592(0x196)];}get['onCameraChangedDelegate'](){return this['_onCameraChangedDelegate'];}constructor(_0x304513=DefaultAppParam){const _0x2c9e52=_0x496092;var _0x157154,_0x5a9d44,_0x4060b1,_0x336084;this[_0x2c9e52(0x190)]=[],this[_0x2c9e52(0x168)]=![],this[_0x2c9e52(0x183)]=new Delegate();const _0x33669=(_0x157154=_0x304513[_0x2c9e52(0x199)])!==null&&_0x157154!==void 0?_0x157154:DefaultCameraParam,_0x41cdf8=(_0x5a9d44=_0x304513['worldParam'])!==null&&_0x5a9d44!==void 0?_0x5a9d44:DefaultWorldParam,_0x31a86d=(_0x4060b1=_0x304513[_0x2c9e52(0x198)])!==null&&_0x4060b1!==void 0?_0x4060b1:DefaultViewportParam,_0x253777=(_0x336084=_0x304513[_0x2c9e52(0x19b)])!==null&&_0x336084!==void 0?_0x336084:{'assetManagerClass':AssetManager,'controllerClass':Controller,'worldClass':World,'viewportClass':Viewport};this[_0x2c9e52(0x19a)]=new webgpu.Timer(),this['_camera']=CameraFactory[_0x2c9e52(0x167)](_0x33669),this[_0x2c9e52(0x194)]=new _0x253777['worldClass'](this,_0x41cdf8),this['_viewport']=new _0x253777[(_0x2c9e52(0x17e))](this,_0x31a86d),this[_0x2c9e52(0x186)]=new _0x253777['controllerClass'](this),this[_0x2c9e52(0x196)]=new _0x253777[(_0x2c9e52(0x181))](this,_0x304513[_0x2c9e52(0x175)]),this[_0x2c9e52(0x185)]['renderer'][_0x2c9e52(0x171)](()=>{const _0x5f43dc=_0x2c9e52;this[_0x5f43dc(0x19a)]['update']();const _0xf4eaab=this['_clock'][_0x5f43dc(0x18d)]();this['tick'](_0xf4eaab);}),this[_0x2c9e52(0x16c)]();}[_0x496092(0x16c)](){const _0x31161a=_0x496092;this[_0x31161a(0x177)]['init'](),this[_0x31161a(0x178)]['init'](),this[_0x31161a(0x185)][_0x31161a(0x193)]();}[_0x496092(0x193)](){}['tick'](_0x514f48){const _0x35a36e=_0x496092;if(this['_isTickPaused'])return;this['_controller'][_0x35a36e(0x172)](_0x514f48),this['world'][_0x35a36e(0x172)](_0x514f48),this[_0x35a36e(0x190)][_0x35a36e(0x197)](_0x2e5dc6=>{_0x2e5dc6(_0x514f48);}),this['viewport']['markRenderStateDirty'](),this[_0x35a36e(0x185)]['render']();}['setTickPaused'](_0x49eabc){const _0x2c4642=_0x496092;console[_0x2c4642(0x184)]('setTickPaused',_0x49eabc),this[_0x2c4642(0x168)]=_0x49eabc;}[_0x496092(0x182)](_0x1dbecc){const _0x28149e=_0x496092;this['_tickingFunctions'][_0x28149e(0x16d)](_0x1dbecc);}[_0x496092(0x18a)](_0x3fcee2){const _0x48b3c7=_0x496092,_0x12dcc5=this[_0x48b3c7(0x190)]['indexOf'](_0x3fcee2);_0x12dcc5>=0x0&&this[_0x48b3c7(0x190)][_0x48b3c7(0x173)](_0x12dcc5,0x1);}['destroy'](){const _0x40200b=_0x496092;this[_0x40200b(0x188)][_0x40200b(0x189)](),this[_0x40200b(0x177)][_0x40200b(0x17a)](),this[_0x40200b(0x178)][_0x40200b(0x17a)](),this[_0x40200b(0x196)]['dispose'](),this['viewport'][_0x40200b(0x17a)]();}[_0x496092(0x191)](_0x5f1cda){const _0xc1bc8d=_0x496092,_0x46c34d=this[_0xc1bc8d(0x18c)];this[_0xc1bc8d(0x18b)]=CameraFactory[_0xc1bc8d(0x192)](_0x5f1cda,this[_0xc1bc8d(0x18c)]),_0x46c34d!==this[_0xc1bc8d(0x18c)]&&(this[_0xc1bc8d(0x183)][_0xc1bc8d(0x19c)](),this['controller']['updateCamera']()),this[_0xc1bc8d(0x18b)][_0xc1bc8d(0x17b)](),this['viewport'][_0xc1bc8d(0x176)]();}[_0x496092(0x166)](_0x208fef,_0x332dab){const _0x3c713b=_0x496092;this[_0x3c713b(0x18c)]instanceof webgpu.PerspectiveCamera&&(this[_0x3c713b(0x18c)][_0x3c713b(0x174)]=_0x208fef/_0x332dab),this['camera']['updateProjectionMatrix']();}async[_0x496092(0x18e)](_0x224ac6=0x400,_0x2454a4=0x400){const _0x34be28=_0x496092;return await this['viewport'][_0x34be28(0x18e)](_0x224ac6,_0x2454a4);}}
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
function _0x6d71(){var _0x376b7a=['506981EuUkPK','3805dbZwzN','4064tzrbxt','5512347TQLcvV','set','intensity','three\x20object\x20is\x20invalid','81578aGQpEX','300naLVZz','223768nFZVXD','color','459396qKOwkL','threeObject','obj','getHex','6039864DSLnhC'];_0x6d71=function(){return _0x376b7a;};return _0x6d71();}var _0x5e5d91=_0x47bf;(function(_0x2114b5,_0x169333){var _0x5eacdf=_0x47bf,_0x33942f=_0x2114b5();while(!![]){try{var _0x784b27=-parseInt(_0x5eacdf(0xe6))/0x1+-parseInt(_0x5eacdf(0xef))/0x2+-parseInt(_0x5eacdf(0xf1))/0x3+-parseInt(_0x5eacdf(0xe8))/0x4*(parseInt(_0x5eacdf(0xe7))/0x5)+parseInt(_0x5eacdf(0xee))/0x6*(parseInt(_0x5eacdf(0xed))/0x7)+parseInt(_0x5eacdf(0xe5))/0x8+parseInt(_0x5eacdf(0xe9))/0x9;if(_0x784b27===_0x169333)break;else _0x33942f['push'](_0x33942f['shift']());}catch(_0x8110f){_0x33942f['push'](_0x33942f['shift']());}}}(_0x6d71,0x62e01));function _0x47bf(_0x5a472f,_0x36f65e){_0x5a472f=_0x5a472f-0xe4;var _0x6d7158=_0x6d71();var _0x47bf2b=_0x6d7158[_0x5a472f];return _0x47bf2b;}class LightComponent extends SceneComponent{get[_0x5e5d91(0xf2)](){var _0x1f68a4=_0x5e5d91;if(!this[_0x1f68a4(0xf3)])throw Error(_0x1f68a4(0xec));return this[_0x1f68a4(0xf3)];}set[_0x5e5d91(0xf2)](_0xf75ccc){var _0x234d48=_0x5e5d91;this['obj']=_0xf75ccc,this[_0x234d48(0xf3)]&&(this['obj']['userData']['LYObject']=this);}get['color'](){var _0x3c6367=_0x5e5d91;return this[_0x3c6367(0xf2)][_0x3c6367(0xf0)][_0x3c6367(0xe4)]();}set['color'](_0x4bf6c5){var _0xfb5474=_0x5e5d91;this[_0xfb5474(0xf2)][_0xfb5474(0xf0)][_0xfb5474(0xea)](_0x4bf6c5);}get[_0x5e5d91(0xeb)](){var _0x524c83=_0x5e5d91;return this[_0x524c83(0xf2)][_0x524c83(0xeb)];}set[_0x5e5d91(0xeb)](_0x453fad){var _0x280f44=_0x5e5d91;this['threeObject'][_0x280f44(0xeb)]=_0x453fad;}constructor(_0x4f1e51,_0x474d59){super(_0x4f1e51,_0x474d59);}}
|
|
111
111
|
|
|
112
|
-
function
|
|
112
|
+
function _0x14ea(){var _0x29f8c8=['6ZtmjTw','755618JUgfaC','1507668wsMbjx','userData','845663hGCSWN','4ckSHpk','onAddedToWorld','world','10421160zICJjg','setPosition','1048170SALpUT','threeObject','27ZrnYZc','castShadow','889144sjRyRn','obj','set','length','destroy','1827550tYAgac','update','color','three\x20object\x20is\x20invalid'];_0x14ea=function(){return _0x29f8c8;};return _0x14ea();}var _0x4e31d6=_0x4edf;(function(_0x2471d4,_0x40e15e){var _0x1c6d93=_0x4edf,_0xf5e825=_0x2471d4();while(!![]){try{var _0x3929ae=-parseInt(_0x1c6d93(0x10b))/0x1+-parseInt(_0x1c6d93(0xfd))/0x2+parseInt(_0x1c6d93(0x10c))/0x3+parseInt(_0x1c6d93(0xf8))/0x4*(parseInt(_0x1c6d93(0x106))/0x5)+parseInt(_0x1c6d93(0x10a))/0x6*(parseInt(_0x1c6d93(0xf7))/0x7)+parseInt(_0x1c6d93(0x101))/0x8*(-parseInt(_0x1c6d93(0xff))/0x9)+parseInt(_0x1c6d93(0xfb))/0xa;if(_0x3929ae===_0x40e15e)break;else _0xf5e825['push'](_0xf5e825['shift']());}catch(_0x4f0d0d){_0xf5e825['push'](_0xf5e825['shift']());}}}(_0x14ea,0x66043));function _0x4edf(_0x578326,_0x33264b){_0x578326=_0x578326-0xf7;var _0x14ea45=_0x14ea();var _0x4edf26=_0x14ea45[_0x578326];return _0x4edf26;}class DirectionalLightComponent extends LightComponent{get[_0x4e31d6(0xfe)](){var _0x2bf311=_0x4e31d6;if(!this[_0x2bf311(0x102)])throw Error(_0x2bf311(0x109));return this[_0x2bf311(0x102)];}set['threeObject'](_0x1f09ef){var _0x7d27b1=_0x4e31d6;this['obj']=_0x1f09ef,this[_0x7d27b1(0x102)]&&(this[_0x7d27b1(0x102)][_0x7d27b1(0x10d)]['LYObject']=this);}get[_0x4e31d6(0x100)](){var _0x57b582=_0x4e31d6;return this[_0x57b582(0xfe)][_0x57b582(0x100)];}set['castShadow'](_0x811225){var _0x30450a=_0x4e31d6;this['threeObject'][_0x30450a(0x100)]=_0x811225;}constructor(_0x2b0b5c,_0x4e5ff3=0xffffff,_0x3c8eb4=0xa,_0x4edde9){var _0x4c52f9=_0x4e31d6;super(_0x2b0b5c,_0x4edde9),this[_0x4c52f9(0xfe)][_0x4c52f9(0x108)][_0x4c52f9(0x103)](_0x4e5ff3),this[_0x4c52f9(0xfe)]['intensity']=_0x3c8eb4;}['createDefaultObject'](){return new webgpu.DirectionalLight(0xffffff,0xa);}['setPosition'](..._0x385274){var _0x354eca=_0x4e31d6;_0x385274[_0x354eca(0x104)]===0x1?super[_0x354eca(0xfc)](_0x385274[0x0]):super['setPosition'](_0x385274[0x0],_0x385274[0x1],_0x385274[0x2]),this[_0x354eca(0x107)]();}[_0x4e31d6(0x107)](){var _0x579dfc=_0x4e31d6;if(this[_0x579dfc(0xfa)])this[_0x579dfc(0xfa)]['viewport']['markRenderStateDirty']();}[_0x4e31d6(0xf9)](_0x35fc50){var _0x51e81b=_0x4e31d6;if(!this[_0x51e81b(0xfe)])throw Error('three\x20object\x20is\x20invalid');super[_0x51e81b(0xf9)](_0x35fc50);}[_0x4e31d6(0x105)](){var _0x58b522=_0x4e31d6;super[_0x58b522(0x105)]();}}
|
|
113
113
|
|
|
114
|
-
function
|
|
114
|
+
function _0x4dcc(_0x5885d6,_0x1955f5){_0x5885d6=_0x5885d6-0x106;var _0x21b61e=_0x21b6();var _0x4dcc0d=_0x21b61e[_0x5885d6];return _0x4dcc0d;}var _0x430c00=_0x4dcc;function _0x21b6(){var _0x21999a=['1gwabfm','constructRootComponent','5595534keToyg','2791392UiSjVh','castShadow','4404296jRXIes','color','5170326TjrrYx','lightComponent','422665BKkbtJ','1708774UMlgLe','10eyUFTA','24pgQRfY','35652591PYRSdq'];_0x21b6=function(){return _0x21999a;};return _0x21b6();}(function(_0x4941e2,_0x155403){var _0x48d567=_0x4dcc,_0x263a97=_0x4941e2();while(!![]){try{var _0x5bc10d=-parseInt(_0x48d567(0x111))/0x1*(parseInt(_0x48d567(0x10d))/0x2)+-parseInt(_0x48d567(0x106))/0x3+parseInt(_0x48d567(0x10f))/0x4*(parseInt(_0x48d567(0x10c))/0x5)+-parseInt(_0x48d567(0x10a))/0x6+-parseInt(_0x48d567(0x113))/0x7+-parseInt(_0x48d567(0x108))/0x8+parseInt(_0x48d567(0x110))/0x9*(parseInt(_0x48d567(0x10e))/0xa);if(_0x5bc10d===_0x155403)break;else _0x263a97['push'](_0x263a97['shift']());}catch(_0x28ceb4){_0x263a97['push'](_0x263a97['shift']());}}}(_0x21b6,0x7343e));class DirectionalLightActor extends Actor{constructor(_0x3d4a24,_0x58c5a3=0xffffff,_0x101a14=0x1,_0x53a2a2){var _0x10dc76=_0x4dcc;super(_0x3d4a24,_0x53a2a2),this[_0x10dc76(0x10b)]=null,this[_0x10dc76(0x10b)]=this['rootComponent'],this[_0x10dc76(0x10b)]&&(this[_0x10dc76(0x10b)][_0x10dc76(0x109)]=_0x58c5a3,this[_0x10dc76(0x10b)]['intensity']=_0x101a14,this['lightComponent'][_0x10dc76(0x107)]=!![]),this['lightComponent'][_0x10dc76(0x107)]=!![];}[_0x430c00(0x112)](){return new DirectionalLightComponent(this['app']);}}
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _0x22407f=_0x2d4a;function _0x4d3c(){var _0x4dd324=['createDefaultObject','obj','threeObject','2178OubFEN','2110276NKbiyi','1tUxfLF','3414180iBrDxj','update','LYObject','4nrpARr','25550kEeEFB','userData','world','castShadow','set','4099020hCUADs','destroy','length','23618969STGQWN','intensity','markRenderStateDirty','setPosition','1486422VfuEbW','three\x20object\x20is\x20invalid','11757936tStipL','onAddedToWorld','7bRIKFN','viewport'];_0x4d3c=function(){return _0x4dd324;};return _0x4d3c();}(function(_0x2f6f9c,_0x3be976){var _0x207dfb=_0x2d4a,_0xdcde0a=_0x2f6f9c();while(!![]){try{var _0x954bd=parseInt(_0x207dfb(0xd2))/0x1*(-parseInt(_0x207dfb(0xd1))/0x2)+-parseInt(_0x207dfb(0xc7))/0x3*(-parseInt(_0x207dfb(0xd6))/0x4)+parseInt(_0x207dfb(0xd3))/0x5+parseInt(_0x207dfb(0xc0))/0x6+parseInt(_0x207dfb(0xcb))/0x7*(-parseInt(_0x207dfb(0xc9))/0x8)+parseInt(_0x207dfb(0xd0))/0x9*(-parseInt(_0x207dfb(0xd7))/0xa)+parseInt(_0x207dfb(0xc3))/0xb;if(_0x954bd===_0x3be976)break;else _0xdcde0a['push'](_0xdcde0a['shift']());}catch(_0x4d723f){_0xdcde0a['push'](_0xdcde0a['shift']());}}}(_0x4d3c,0xd34bd));function _0x2d4a(_0x42220b,_0x4545d7){_0x42220b=_0x42220b-0xbe;var _0x4d3c3c=_0x4d3c();var _0x2d4ac9=_0x4d3c3c[_0x42220b];return _0x2d4ac9;}class AmbientLightComponent extends LightComponent{get[_0x22407f(0xcf)](){var _0x214425=_0x22407f;if(!this[_0x214425(0xce)])throw Error(_0x214425(0xc8));return this[_0x214425(0xce)];}set[_0x22407f(0xcf)](_0x1900d4){var _0x188726=_0x22407f;this[_0x188726(0xce)]=_0x1900d4,this[_0x188726(0xce)]&&(this[_0x188726(0xce)][_0x188726(0xd8)][_0x188726(0xd5)]=this);}get[_0x22407f(0xbe)](){var _0x3fe90b=_0x22407f;return this[_0x3fe90b(0xcf)][_0x3fe90b(0xbe)];}set[_0x22407f(0xbe)](_0x5af0b7){var _0x6f2232=_0x22407f;this[_0x6f2232(0xcf)][_0x6f2232(0xbe)]=_0x5af0b7;}constructor(_0x5a7f67,_0x1af8d7=0xffffff,_0xf6c739=0xa,_0x52c624){var _0x31c445=_0x22407f;super(_0x5a7f67,_0x52c624),this[_0x31c445(0xcf)]['color'][_0x31c445(0xbf)](_0x1af8d7),this['threeObject'][_0x31c445(0xc4)]=_0xf6c739;}[_0x22407f(0xcd)](){return new webgpu.AmbientLight(0xffffff,0xa);}[_0x22407f(0xc6)](..._0x527a6c){var _0x29b8ba=_0x22407f;_0x527a6c[_0x29b8ba(0xc2)]===0x1?super['setPosition'](_0x527a6c[0x0]):super[_0x29b8ba(0xc6)](_0x527a6c[0x0],_0x527a6c[0x1],_0x527a6c[0x2]),this[_0x29b8ba(0xd4)]();}[_0x22407f(0xd4)](){var _0xa2be74=_0x22407f;if(this['world'])this[_0xa2be74(0xd9)][_0xa2be74(0xcc)][_0xa2be74(0xc5)]();}[_0x22407f(0xca)](_0x2a995b){var _0x2b71a7=_0x22407f;if(!this['threeObject'])throw Error(_0x2b71a7(0xc8));super[_0x2b71a7(0xca)](_0x2a995b);}[_0x22407f(0xc1)](){super['destroy']();}}
|
|
117
117
|
|
|
118
|
-
(function(
|
|
118
|
+
var _0x3286c0=_0x1697;(function(_0x47eee4,_0x227f40){var _0x2b154a=_0x1697,_0x502416=_0x47eee4();while(!![]){try{var _0xb39d5e=-parseInt(_0x2b154a(0xbb))/0x1*(parseInt(_0x2b154a(0xc0))/0x2)+-parseInt(_0x2b154a(0xc4))/0x3+parseInt(_0x2b154a(0xb8))/0x4+-parseInt(_0x2b154a(0xc2))/0x5+parseInt(_0x2b154a(0xc3))/0x6+-parseInt(_0x2b154a(0xb9))/0x7*(parseInt(_0x2b154a(0xc6))/0x8)+-parseInt(_0x2b154a(0xbd))/0x9*(-parseInt(_0x2b154a(0xba))/0xa);if(_0xb39d5e===_0x227f40)break;else _0x502416['push'](_0x502416['shift']());}catch(_0x148e5c){_0x502416['push'](_0x502416['shift']());}}}(_0x2a67,0x6f210));function _0x2a67(){var _0x2bbb07=['color','52872TDzJpv','constructRootComponent','1852104VlTgzB','112EobbUK','827380KFSdIz','81038EMrSyH','app','72ArnxPP','rootComponent','lightComponent','8EBcLGk','intensity','540755btPvHW','1540866FqhFEY','1165530wVZAQt'];_0x2a67=function(){return _0x2bbb07;};return _0x2a67();}function _0x1697(_0x2bf33a,_0x44b50f){_0x2bf33a=_0x2bf33a-0xb8;var _0x2a670f=_0x2a67();var _0x16974c=_0x2a670f[_0x2bf33a];return _0x16974c;}class AmbientLightActor extends Actor{constructor(_0x57c316,_0x32eb46=0xffffff,_0x2e705e=0x1,_0x5f4ace){var _0x58a4af=_0x1697;super(_0x57c316,_0x5f4ace),this[_0x58a4af(0xbf)]=null,this[_0x58a4af(0xbf)]=this[_0x58a4af(0xbe)],this[_0x58a4af(0xbf)]&&(this[_0x58a4af(0xbf)][_0x58a4af(0xc5)]=_0x32eb46,this[_0x58a4af(0xbf)][_0x58a4af(0xc1)]=_0x2e705e,this['lightComponent']['castShadow']=!![]),this[_0x58a4af(0xbf)]['castShadow']=!![];}[_0x3286c0(0xc7)](){var _0x37029f=_0x3286c0;return new AmbientLightComponent(this[_0x37029f(0xbc)]);}}
|
|
119
119
|
|
|
120
|
-
(function(
|
|
120
|
+
function _0x3af8(){var _0x1eca1a=['154263xxWZDH','36cAaGQz','7tyyoIR','4220590unevLM','169225FizMov','2980140tGAxcp','455368dutZYY','2094552DEhLXR','8OTtlit','232243goCSZo','4gFkJWZ'];_0x3af8=function(){return _0x1eca1a;};return _0x3af8();}function _0x341e(_0x83b5c,_0x41acbd){_0x83b5c=_0x83b5c-0x15b;var _0x3af866=_0x3af8();var _0x341eb1=_0x3af866[_0x83b5c];return _0x341eb1;}(function(_0x4f3f52,_0xc7976c){var _0x237eea=_0x341e,_0x2006a2=_0x4f3f52();while(!![]){try{var _0x7967fa=parseInt(_0x237eea(0x162))/0x1*(parseInt(_0x237eea(0x163))/0x2)+-parseInt(_0x237eea(0x164))/0x3*(parseInt(_0x237eea(0x161))/0x4)+-parseInt(_0x237eea(0x15d))/0x5*(parseInt(_0x237eea(0x165))/0x6)+-parseInt(_0x237eea(0x15b))/0x7*(parseInt(_0x237eea(0x15f))/0x8)+parseInt(_0x237eea(0x160))/0x9+parseInt(_0x237eea(0x15e))/0xa+-parseInt(_0x237eea(0x15c))/0xb;if(_0x7967fa===_0xc7976c)break;else _0x2006a2['push'](_0x2006a2['shift']());}catch(_0x3a417d){_0x2006a2['push'](_0x2006a2['shift']());}}}(_0x3af8,0x3cb81));class BoxComponent extends MeshComponent{constructor(_0x261883,_0x3bf243=0x1,_0x2653fa=0x1,_0x388dd5=0x1,_0x43d01a=0x1,_0x302e18=0x1,_0x5ad1f6=0x1,_0x32d4f1=new webgpu.MeshStandardMaterial(),_0x4e4603){super(_0x261883,new webgpu.BoxGeometry(_0x3bf243,_0x2653fa,_0x388dd5,_0x43d01a,_0x302e18,_0x5ad1f6),_0x32d4f1,_0x4e4603);}}
|
|
121
121
|
|
|
122
|
-
function
|
|
122
|
+
function _0xcd86(_0x5b3eae,_0x1ce7b7){_0x5b3eae=_0x5b3eae-0x1a5;var _0x4281b4=_0x4281$1();var _0xcd8696=_0x4281b4[_0x5b3eae];return _0xcd8696;}var _0x3b44c2=_0xcd86;(function(_0x5ab2c5,_0x5a78d4){var _0x3f2d28=_0xcd86,_0x2c0ff1=_0x5ab2c5();while(!![]){try{var _0x39b24e=-parseInt(_0x3f2d28(0x1b3))/0x1*(parseInt(_0x3f2d28(0x1ae))/0x2)+-parseInt(_0x3f2d28(0x1a9))/0x3*(-parseInt(_0x3f2d28(0x1ab))/0x4)+parseInt(_0x3f2d28(0x1a5))/0x5*(parseInt(_0x3f2d28(0x1ac))/0x6)+-parseInt(_0x3f2d28(0x1a6))/0x7*(parseInt(_0x3f2d28(0x1af))/0x8)+-parseInt(_0x3f2d28(0x1b2))/0x9+parseInt(_0x3f2d28(0x1a7))/0xa+parseInt(_0x3f2d28(0x1b0))/0xb*(-parseInt(_0x3f2d28(0x1b1))/0xc);if(_0x39b24e===_0x5a78d4)break;else _0x2c0ff1['push'](_0x2c0ff1['shift']());}catch(_0x2c1fc8){_0x2c0ff1['push'](_0x2c0ff1['shift']());}}}(_0x4281$1,0x221cf));class BoxActor extends Actor{constructor(_0x571848,_0x2d74e5){super(_0x571848,_0x2d74e5);}[_0x3b44c2(0x1a8)](){var _0x536e75=_0x3b44c2;return new BoxComponent(this[_0x536e75(0x1aa)],0x1,0x1,0x1,0x1,0x1,0x1,new webgpu.MeshBasicMaterial(),this[_0x536e75(0x1ad)]);}}function _0x4281$1(){var _0x9f2d1=['app','518416NZnKMW','12QxmIqQ','uuid','4LAJrnk','1704ykdjsv','24431JCwrSY','1212YpnDXP','889992oRJegN','7529DZPoqv','282805ZwCOKQ','4697uKMImn','2485870hMXuow','constructRootComponent','6NKZWsV'];_0x4281$1=function(){return _0x9f2d1;};return _0x4281$1();}
|
|
123
123
|
|
|
124
|
-
const
|
|
124
|
+
const _0x2d9fee=_0x5d3f;function _0x1f61(){const _0x31a398=['30WRQlvL','mieCoefficient','userData','degToRad','LYObject','1948491qovDvM','three\x20object\x20is\x20invalid','markRenderStateDirty','viewport','turbidity','skyParam','destroyObject','sunPosition','217046QhYwuV','setFromSphericalCoords','2SvANIu','updateSky','30jZUIoh','2305261uIHFBa','rayleigh','3647240eKQONS','value','obj','2705020iVtEKH','1742400BObaFz','elevation','threeObject','azimuth','569292cWEdHf','copy','mieDirectionalG'];_0x1f61=function(){return _0x31a398;};return _0x1f61();}(function(_0x2f4696,_0x47f745){const _0x37292c=_0x5d3f,_0x3d9b6b=_0x2f4696();while(!![]){try{const _0x2ec635=-parseInt(_0x37292c(0x17f))/0x1*(parseInt(_0x37292c(0x17d))/0x2)+parseInt(_0x37292c(0x169))/0x3+-parseInt(_0x37292c(0x168))/0x4+-parseInt(_0x37292c(0x170))/0x5*(-parseInt(_0x37292c(0x16d))/0x6)+parseInt(_0x37292c(0x163))/0x7+parseInt(_0x37292c(0x165))/0x8+-parseInt(_0x37292c(0x175))/0x9*(parseInt(_0x37292c(0x162))/0xa);if(_0x2ec635===_0x47f745)break;else _0x3d9b6b['push'](_0x3d9b6b['shift']());}catch(_0x50c9c9){_0x3d9b6b['push'](_0x3d9b6b['shift']());}}}(_0x1f61,0x5fd4a));const DefaultSkyParam={'turbidity':0xa,'rayleigh':0x3,'mieCoefficient':0.005,'mieDirectionalG':0.7,'elevation':0x2,'azimuth':0x87};function _0x5d3f(_0x349742,_0x267155){_0x349742=_0x349742-0x162;const _0x1f616f=_0x1f61();let _0x5d3f78=_0x1f616f[_0x349742];return _0x5d3f78;}class SkyComponent extends SceneComponent{get[_0x2d9fee(0x16b)](){const _0x4e89c0=_0x2d9fee;if(!this['obj'])throw Error(_0x4e89c0(0x176));return this[_0x4e89c0(0x167)];}set[_0x2d9fee(0x16b)](_0x39f34b){const _0x472287=_0x2d9fee;this[_0x472287(0x167)]=_0x39f34b,this[_0x472287(0x167)]&&(this[_0x472287(0x167)][_0x472287(0x172)][_0x472287(0x174)]=this);}constructor(_0x223eb2,_0x4efb3b,_0xbd75b4){const _0x2fdee1=_0x2d9fee;super(_0x223eb2,_0xbd75b4),this[_0x2fdee1(0x17a)]=DefaultSkyParam,this[_0x2fdee1(0x17c)]=new webgpu.Vector3(),_0x4efb3b&&(this['skyParam']=_0x4efb3b),this[_0x2fdee1(0x180)]();}['createDefaultObject'](){return new SkyMesh_js.SkyMesh();}[_0x2d9fee(0x180)](){const _0x3cc749=_0x2d9fee;var _0x29927e,_0x2658d7;this[_0x3cc749(0x16b)][_0x3cc749(0x179)][_0x3cc749(0x166)]=this['skyParam'][_0x3cc749(0x179)],this[_0x3cc749(0x16b)][_0x3cc749(0x164)][_0x3cc749(0x166)]=this['skyParam']['rayleigh'],this[_0x3cc749(0x16b)][_0x3cc749(0x171)][_0x3cc749(0x166)]=this[_0x3cc749(0x17a)]['mieCoefficient'],this['threeObject'][_0x3cc749(0x16f)][_0x3cc749(0x166)]=this[_0x3cc749(0x17a)][_0x3cc749(0x16f)];const _0x47f3b4=webgpu.MathUtils[_0x3cc749(0x173)](0x5a-this[_0x3cc749(0x17a)][_0x3cc749(0x16a)]),_0x2a9ae4=webgpu.MathUtils[_0x3cc749(0x173)](this[_0x3cc749(0x17a)][_0x3cc749(0x16c)]);this[_0x3cc749(0x17c)][_0x3cc749(0x17e)](0x1,_0x47f3b4,_0x2a9ae4),this[_0x3cc749(0x16b)][_0x3cc749(0x17c)][_0x3cc749(0x166)][_0x3cc749(0x16e)](this[_0x3cc749(0x17c)]),(_0x2658d7=(_0x29927e=this['world'])===null||_0x29927e===void 0?void 0:_0x29927e[_0x3cc749(0x178)])===null||_0x2658d7===void 0?void 0:_0x2658d7[_0x3cc749(0x177)]();}[_0x2d9fee(0x17b)](){const _0x362a93=_0x2d9fee;this[_0x362a93(0x167)]&&ThreeObjectLibrary['disposeMeshResource'](this[_0x362a93(0x16b)]);}}
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
(function(_0x594dbf,_0x4a1cd5){var _0x2ac692=_0x4a30,_0x2c6276=_0x594dbf();while(!![]){try{var _0x3ef655=-parseInt(_0x2ac692(0x19a))/0x1*(-parseInt(_0x2ac692(0x19d))/0x2)+-parseInt(_0x2ac692(0x1a7))/0x3+-parseInt(_0x2ac692(0x1a2))/0x4+parseInt(_0x2ac692(0x1a8))/0x5*(parseInt(_0x2ac692(0x19e))/0x6)+parseInt(_0x2ac692(0x199))/0x7*(-parseInt(_0x2ac692(0x19f))/0x8)+-parseInt(_0x2ac692(0x197))/0x9*(-parseInt(_0x2ac692(0x1a3))/0xa)+-parseInt(_0x2ac692(0x1a0))/0xb*(-parseInt(_0x2ac692(0x1a4))/0xc);if(_0x3ef655===_0x4a1cd5)break;else _0x2c6276['push'](_0x2c6276['shift']());}catch(_0x5620f7){_0x2c6276['push'](_0x2c6276['shift']());}}}(_0x4a6d,0x835b3));function _0x4a30(_0x5845e4,_0x1dea90){_0x5845e4=_0x5845e4-0x196;var _0x4a6d9a=_0x4a6d();var _0x4a309e=_0x4a6d9a[_0x5845e4];return _0x4a309e;}function _0x4a6d(){var _0x1040d9=['94038PnjXXE','20949sTaRPx','rootComponent','_name','96vhVbpU','184794dwlgrC','80iXdTyH','12210djzvPK','skyComponent','2356668BtIyWI','1910SyQcsq','1248KsqCEu','SkyActor','(Root)','2916516LMIaWd','75SuXKEK','name','30663NKsOqE','setScale'];_0x4a6d=function(){return _0x1040d9;};return _0x4a6d();}class SkyActor extends Actor{constructor(_0x3113f4,_0xa8aa81){var _0x53e35e=_0x4a30;super(_0x3113f4,_0xa8aa81),this[_0x53e35e(0x19c)]=_0x53e35e(0x1a5),this[_0x53e35e(0x1a1)]=null,this['name']=_0x53e35e(0x1a5),this['skyComponent']=this[_0x53e35e(0x19b)],this[_0x53e35e(0x19b)][_0x53e35e(0x196)]=this[_0x53e35e(0x19b)][_0x53e35e(0x196)]+_0x53e35e(0x1a6),this[_0x53e35e(0x198)](0xafc8,0xafc8,0xafc8);}['constructRootComponent'](){return new SkyComponent(this['app']);}}
|
|
127
127
|
|
|
128
|
-
(function(
|
|
128
|
+
function _0xe357(){var _0x1f283c=['2534hlsTDZ','4Dqqonw','8730xQwggj','417396HuCpSp','63dbUZCB','45448bnojaD','900045UsndWU','9119670MdnNag','302051TcIvFp','252770lanKcr'];_0xe357=function(){return _0x1f283c;};return _0xe357();}(function(_0x53d180,_0x31685f){var _0x3ae0bd=_0x4281,_0xa19332=_0x53d180();while(!![]){try{var _0x517dc7=parseInt(_0x3ae0bd(0x15e))/0x1*(parseInt(_0x3ae0bd(0x161))/0x2)+parseInt(_0x3ae0bd(0x15c))/0x3+-parseInt(_0x3ae0bd(0x163))/0x4+-parseInt(_0x3ae0bd(0x15f))/0x5+-parseInt(_0x3ae0bd(0x162))/0x6*(-parseInt(_0x3ae0bd(0x160))/0x7)+parseInt(_0x3ae0bd(0x15b))/0x8*(-parseInt(_0x3ae0bd(0x15a))/0x9)+-parseInt(_0x3ae0bd(0x15d))/0xa;if(_0x517dc7===_0x31685f)break;else _0xa19332['push'](_0xa19332['shift']());}catch(_0x86bfaf){_0xa19332['push'](_0xa19332['shift']());}}}(_0xe357,0x4f25e));function _0x4281(_0x39a43d,_0x3d7ae0){_0x39a43d=_0x39a43d-0x15a;var _0xe35753=_0xe357();var _0x42816c=_0xe35753[_0x39a43d];return _0x42816c;}class PlaneComponent extends MeshComponent{constructor(_0x2e9239,_0x7c60ae,_0x204883,_0x1f915b,_0x297dc1=0x1,_0x1c7987=0x1,_0x4f951d){super(_0x2e9239,new webgpu.PlaneGeometry(_0x7c60ae,_0x204883,_0x297dc1,_0x1c7987),_0x1f915b,_0x4f951d);}}
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _0x5f2431=_0x457d;(function(_0x30947f,_0x53950d){var _0x4636ed=_0x457d,_0x16634a=_0x30947f();while(!![]){try{var _0x2adfe4=parseInt(_0x4636ed(0xad))/0x1+-parseInt(_0x4636ed(0xa9))/0x2*(parseInt(_0x4636ed(0xa6))/0x3)+-parseInt(_0x4636ed(0xa3))/0x4+-parseInt(_0x4636ed(0xa7))/0x5*(-parseInt(_0x4636ed(0xae))/0x6)+parseInt(_0x4636ed(0xab))/0x7*(parseInt(_0x4636ed(0xa4))/0x8)+parseInt(_0x4636ed(0xac))/0x9*(parseInt(_0x4636ed(0xa2))/0xa)+-parseInt(_0x4636ed(0xaa))/0xb;if(_0x2adfe4===_0x53950d)break;else _0x16634a['push'](_0x16634a['shift']());}catch(_0x56b84d){_0x16634a['push'](_0x16634a['shift']());}}}(_0x56d0,0x60b1d));function _0x457d(_0x1056f5,_0x3cb5bc){_0x1056f5=_0x1056f5-0xa1;var _0x56d0e8=_0x56d0();var _0x457de0=_0x56d0e8[_0x1056f5];return _0x457de0;}function _0x56d0(){var _0x2b5d82=['2513046aMcCws','uuid','constructRootComponent','29380AvCytd','74468RCLJxA','1280OkrXuo','destroy','86181ESYZVy','5oYryUE','app','14oMNqRW','22319616NhaPfu','31969RGcISF','2250RCNcpd','760762VkzRmQ'];_0x56d0=function(){return _0x2b5d82;};return _0x56d0();}class PlaneActor extends Actor{constructor(_0x2eacb4,_0x16d025){super(_0x2eacb4,_0x16d025);}[_0x5f2431(0xa1)](){var _0x214069=_0x5f2431;return new PlaneComponent(this[_0x214069(0xa8)],0x1,0x1,new webgpu.MeshBasicMaterial(),0x1,0x1,this[_0x214069(0xaf)]);}[_0x5f2431(0xa5)](){super['destroy']();}}
|
|
131
131
|
|
|
132
|
-
function _0x515a(_0x15e49e,_0x33fd74){_0x15e49e=_0x15e49e-0x154;const _0x4037f3=_0x4037();let _0x515aa3=_0x4037f3[_0x15e49e];return _0x515aa3;}const _0x3027e9=_0x515a;(function(_0x2eb76e,_0x13bb0c){const _0x5d50c1=_0x515a,_0x343cb4=_0x2eb76e();while(!![]){try{const _0x526701=parseInt(_0x5d50c1(0x182))/0x1*(parseInt(_0x5d50c1(0x16e))/0x2)+-parseInt(_0x5d50c1(0x164))/0x3*(-parseInt(_0x5d50c1(0x179))/0x4)+-parseInt(_0x5d50c1(0x154))/0x5+parseInt(_0x5d50c1(0x189))/0x6*(-parseInt(_0x5d50c1(0x162))/0x7)+-parseInt(_0x5d50c1(0x195))/0x8*(-parseInt(_0x5d50c1(0x175))/0x9)+-parseInt(_0x5d50c1(0x176))/0xa+parseInt(_0x5d50c1(0x15f))/0xb*(parseInt(_0x5d50c1(0x191))/0xc);if(_0x526701===_0x13bb0c)break;else _0x343cb4['push'](_0x343cb4['shift']());}catch(_0x36f204){_0x343cb4['push'](_0x343cb4['shift']());}}}(_0x4037,0x6f399));function _0x4037(){const _0x416529=['meshData','error','getBounds','getBoundsCenterPosition','removeFromParent','destroyObject','_geometryPtr','addGeometryAsset','11mIyzQq','map','push','7qpuwzr','geometryPtr\x20is\x20null','3AOKNww','material\x20is\x20null','_meshData','receiveShadow','computeVertexNormals','assetManager','addMaterialAsset','computeUVs','CustomMeshComponent:\x20Vertices\x20are\x20in\x20clockwise\x20order,\x20reversing...','CustomMeshComponent','386HRksts','color','_materialPtr','material','markRenderStateDirty','name','CustomMeshComponent:\x20Invalid\x20vertices\x20data','7862742kTvFVK','7412160cvBZSX','setAttribute','world','1637756GvJAJx','vertices','geometryPtr','app','materialPtr','length','max','getValue','threeObject','1663MMcwyk','warn','constructGeometry','clone','uvs','addRef','release','5013678PiAeqp','calculatePolygonArea','obj','geometry','LYObject','position','materialPtr\x20is\x20null','min','5727156hGbidv','indices','colors','normals','8klYSLi','244465YxjXZV','castShadow','getBoundsBottomCenterPosition'];_0x4037=function(){return _0x416529;};return _0x4037();}class CustomMeshComponent extends SceneComponent{get[_0x3027e9(0x181)](){const _0x19f6e9=_0x3027e9;if(!this['obj'])throw new Error('CustomMeshComponent:\x20threeObject\x20is\x20null');return this[_0x19f6e9(0x18b)];}set['threeObject'](_0x3abe5c){const _0x43f2f2=_0x3027e9;this[_0x43f2f2(0x18b)]=_0x3abe5c,this['obj']&&(this[_0x43f2f2(0x18b)]['userData'][_0x43f2f2(0x18d)]=this);}get[_0x3027e9(0x18c)](){const _0x1a6236=_0x3027e9;if(!this[_0x1a6236(0x15d)])throw new Error('geometryPtr\x20is\x20null');return this[_0x1a6236(0x15d)][_0x1a6236(0x180)]();}set[_0x3027e9(0x18c)](_0x23c08d){const _0x5c7192=_0x3027e9;let _0x4c42dc=this[_0x5c7192(0x17c)][_0x5c7192(0x169)][_0x5c7192(0x15e)](_0x23c08d);this['geometryPtr']=_0x4c42dc;}get[_0x3027e9(0x17b)](){const _0x10ea8f=_0x3027e9;if(!this[_0x10ea8f(0x15d)])throw new Error(_0x10ea8f(0x163));return this[_0x10ea8f(0x15d)];}set['geometryPtr'](_0x8f701c){const _0x5d2a98=_0x3027e9;this[_0x5d2a98(0x15d)]&&(this['_geometryPtr'][_0x5d2a98(0x188)](),this['_geometryPtr']=null);this[_0x5d2a98(0x15d)]=_0x8f701c;let _0x2a1051=_0x8f701c['getValue']();this['threeObject']&&_0x2a1051&&(this[_0x5d2a98(0x181)][_0x5d2a98(0x18c)]=_0x2a1051);}get['material'](){const _0x579559=_0x3027e9;if(!this[_0x579559(0x170)])throw new Error(_0x579559(0x18f));let _0x349c37=this[_0x579559(0x170)][_0x579559(0x180)]();if(!_0x349c37)throw new Error(_0x579559(0x165));return _0x349c37;}get[_0x3027e9(0x17d)](){const _0x11b0e6=_0x3027e9;if(!this['_materialPtr'])throw new Error(_0x11b0e6(0x18f));return this['_materialPtr'];}set[_0x3027e9(0x171)](_0x27153d){const _0x545489=_0x3027e9;let _0x51f2f2=this[_0x545489(0x17c)]['assetManager'][_0x545489(0x16a)](_0x27153d);this[_0x545489(0x17d)]=_0x51f2f2;}set['materialPtr'](_0xdb651a){const _0x41124d=_0x3027e9;this[_0x41124d(0x170)]&&(this[_0x41124d(0x170)][_0x41124d(0x188)](),this['_materialPtr']=null);this[_0x41124d(0x170)]=_0xdb651a;let _0x14fe85=_0xdb651a[_0x41124d(0x180)]();_0xdb651a[_0x41124d(0x187)](),this[_0x41124d(0x181)]&&_0x14fe85&&(this[_0x41124d(0x181)][_0x41124d(0x171)]=_0x14fe85);}constructor(_0x37d6f8,_0x69270e,_0x41f2f9,_0x1bbdc6){const _0x39c3e4=_0x3027e9;super(_0x37d6f8,_0x1bbdc6),this[_0x39c3e4(0x166)]=_0x69270e;let _0x127d30=_0x37d6f8['assetManager']['addMaterialAsset'](_0x41f2f9);this[_0x39c3e4(0x170)]=_0x127d30,_0x127d30['addRef']();const _0x199c2a=this[_0x39c3e4(0x184)](_0x69270e);this['_geometryPtr']=_0x37d6f8['assetManager'][_0x39c3e4(0x15e)](_0x199c2a),this[_0x39c3e4(0x181)][_0x39c3e4(0x171)]=_0x41f2f9,this[_0x39c3e4(0x181)][_0x39c3e4(0x18c)]=_0x199c2a,this[_0x39c3e4(0x173)]=_0x39c3e4(0x16d),this[_0x39c3e4(0x155)]=!![],this['receiveShadow']=!![];}[_0x3027e9(0x16b)](_0x151515){const _0x4f556d=_0x3027e9,_0x46999e=new Float32Array(_0x151515[_0x4f556d(0x17e)]*0x2);if(_0x151515[_0x4f556d(0x17e)]===0x0)return _0x46999e;let _0x2b06f1=Infinity,_0x241f63=-Infinity,_0x108d60=Infinity,_0x5f299e=-Infinity,_0x4b3255=Infinity,_0x13fa5d=-Infinity;for(const _0x4a83ef of _0x151515){_0x2b06f1=Math[_0x4f556d(0x190)](_0x2b06f1,_0x4a83ef['x']),_0x241f63=Math['max'](_0x241f63,_0x4a83ef['x']),_0x108d60=Math[_0x4f556d(0x190)](_0x108d60,_0x4a83ef['y']),_0x5f299e=Math[_0x4f556d(0x17f)](_0x5f299e,_0x4a83ef['y']),_0x4b3255=Math[_0x4f556d(0x190)](_0x4b3255,_0x4a83ef['z']),_0x13fa5d=Math[_0x4f556d(0x17f)](_0x13fa5d,_0x4a83ef['z']);}const _0x34a637=_0x241f63-_0x2b06f1,_0x362fd6=_0x5f299e-_0x108d60,_0x5b7e9b=_0x13fa5d-_0x4b3255;let _0x38f876,_0x19ca64,_0x98d741,_0x24cf04,_0x463b13,_0x57aa77;if(_0x34a637<=_0x362fd6&&_0x34a637<=_0x5b7e9b)_0x38f876='y',_0x19ca64='z',_0x98d741=_0x108d60,_0x24cf04=_0x362fd6,_0x463b13=_0x4b3255,_0x57aa77=_0x5b7e9b;else _0x362fd6<=_0x34a637&&_0x362fd6<=_0x5b7e9b?(_0x38f876='x',_0x19ca64='z',_0x98d741=_0x2b06f1,_0x24cf04=_0x34a637,_0x463b13=_0x4b3255,_0x57aa77=_0x5b7e9b):(_0x38f876='x',_0x19ca64='y',_0x98d741=_0x2b06f1,_0x24cf04=_0x34a637,_0x463b13=_0x108d60,_0x57aa77=_0x362fd6);if(_0x24cf04===0x0)_0x24cf04=0x1;if(_0x57aa77===0x0)_0x57aa77=0x1;for(let _0x2117e3=0x0;_0x2117e3<_0x151515[_0x4f556d(0x17e)];_0x2117e3++){const _0x1ab3f8=_0x151515[_0x2117e3],_0x22c1cb=(_0x1ab3f8[_0x38f876]-_0x98d741)/_0x24cf04,_0x205123=(_0x1ab3f8[_0x19ca64]-_0x463b13)/_0x57aa77;_0x46999e[_0x2117e3*0x2]=_0x22c1cb,_0x46999e[_0x2117e3*0x2+0x1]=_0x205123;}return _0x46999e;}[_0x3027e9(0x18a)](_0x25a770){const _0x3a45e9=_0x3027e9;let _0x187093=0x0;const _0xd8c391=_0x25a770[_0x3a45e9(0x17e)]/0x2;for(let _0x52e093=0x0;_0x52e093<_0xd8c391;_0x52e093++){const _0x52a1d8=(_0x52e093+0x1)%_0xd8c391,_0x4f05ed=_0x25a770[_0x52e093*0x2],_0x34393c=_0x25a770[_0x52e093*0x2+0x1],_0x2b5864=_0x25a770[_0x52a1d8*0x2],_0x13bdab=_0x25a770[_0x52a1d8*0x2+0x1];_0x187093+=_0x4f05ed*_0x13bdab-_0x2b5864*_0x34393c;}return _0x187093/0x2;}[_0x3027e9(0x184)](_0x2b745a){const _0x2fed80=_0x3027e9,_0x153704=new webgpu.BufferGeometry();if(!_0x2b745a[_0x2fed80(0x17a)]||_0x2b745a['vertices']['length']===0x0)return console[_0x2fed80(0x158)](_0x2fed80(0x174)),_0x153704;const _0x4fafc3=new Float32Array(_0x2b745a['vertices'][_0x2fed80(0x17e)]*0x3);for(let _0x3702d1=0x0;_0x3702d1<_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)];_0x3702d1++){_0x4fafc3[_0x3702d1*0x3]=_0x2b745a[_0x2fed80(0x17a)][_0x3702d1]['x'],_0x4fafc3[_0x3702d1*0x3+0x1]=_0x2b745a[_0x2fed80(0x17a)][_0x3702d1]['y'],_0x4fafc3[_0x3702d1*0x3+0x2]=_0x2b745a[_0x2fed80(0x17a)][_0x3702d1]['z'];}_0x153704[_0x2fed80(0x177)](_0x2fed80(0x18e),new webgpu.Float32BufferAttribute(_0x4fafc3,0x3));if(_0x2b745a['indices']&&_0x2b745a[_0x2fed80(0x192)][_0x2fed80(0x17e)]>0x0)_0x153704['setIndex'](_0x2b745a[_0x2fed80(0x192)]);else {const _0x278f42=[];let _0x4912f8=Infinity,_0x2588b8=-Infinity,_0x471120=Infinity,_0x2024bd=-Infinity,_0xc4b737=Infinity,_0x2c4ef6=-Infinity;for(let _0xb6384a=0x0;_0xb6384a<_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)];_0xb6384a++){const _0x2fe66d=_0x2b745a['vertices'][_0xb6384a];_0x471120=Math['min'](_0x471120,_0x2fe66d['x']),_0x2024bd=Math[_0x2fed80(0x17f)](_0x2024bd,_0x2fe66d['x']),_0x4912f8=Math['min'](_0x4912f8,_0x2fe66d['y']),_0x2588b8=Math[_0x2fed80(0x17f)](_0x2588b8,_0x2fe66d['y']),_0xc4b737=Math['min'](_0xc4b737,_0x2fe66d['z']),_0x2c4ef6=Math[_0x2fed80(0x17f)](_0x2c4ef6,_0x2fe66d['z']);}const _0x1532ef=_0x2024bd-_0x471120,_0x1be168=_0x2588b8-_0x4912f8,_0x14b989=_0x2c4ef6-_0xc4b737;if(_0x1be168<=_0x1532ef&&_0x1be168<=_0x14b989){for(let _0x5645e6=0x0;_0x5645e6<_0x2b745a[_0x2fed80(0x17a)]['length'];_0x5645e6++){_0x278f42[_0x2fed80(0x161)](_0x2b745a[_0x2fed80(0x17a)][_0x5645e6]['x']),_0x278f42[_0x2fed80(0x161)](_0x2b745a[_0x2fed80(0x17a)][_0x5645e6]['z']);}}else {if(_0x1532ef<=_0x1be168&&_0x1532ef<=_0x14b989){for(let _0x59962f=0x0;_0x59962f<_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)];_0x59962f++){_0x278f42[_0x2fed80(0x161)](_0x2b745a[_0x2fed80(0x17a)][_0x59962f]['y']),_0x278f42['push'](_0x2b745a[_0x2fed80(0x17a)][_0x59962f]['z']);}}else {for(let _0x3b613a=0x0;_0x3b613a<_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)];_0x3b613a++){_0x278f42[_0x2fed80(0x161)](_0x2b745a[_0x2fed80(0x17a)][_0x3b613a]['x']),_0x278f42[_0x2fed80(0x161)](_0x2b745a[_0x2fed80(0x17a)][_0x3b613a]['y']);}}}const _0x1c58fd=this['calculatePolygonArea'](_0x278f42),_0x36d9e2=_0x1c58fd<0x0;if(_0x36d9e2){console['warn'](_0x2fed80(0x16c)),_0x278f42['reverse']();const _0xbefa4a=[];for(let _0x1d0165=_0x278f42[_0x2fed80(0x17e)]-0x2;_0x1d0165>=0x0;_0x1d0165-=0x2){_0xbefa4a[_0x2fed80(0x161)](_0x278f42[_0x1d0165],_0x278f42[_0x1d0165+0x1]);}_0x278f42[_0x2fed80(0x17e)]=0x0,_0x278f42[_0x2fed80(0x161)](..._0xbefa4a);}try{const _0x3c96bb=_0x41fda6(_0x278f42,undefined,0x2);if(_0x3c96bb&&_0x3c96bb['length']>0x0){if(_0x36d9e2)for(let _0x561008=0x0;_0x561008<_0x3c96bb[_0x2fed80(0x17e)];_0x561008+=0x3){const _0x439a43=_0x3c96bb[_0x561008];_0x3c96bb[_0x561008]=_0x3c96bb[_0x561008+0x2],_0x3c96bb[_0x561008+0x2]=_0x439a43;}_0x153704['setIndex'](_0x3c96bb);}else console[_0x2fed80(0x183)]('CustomMeshComponent:\x20Earcut\x20triangulation\x20returned\x20empty\x20result');}catch(_0x41273c){console['error']('CustomMeshComponent:\x20Earcut\x20triangulation\x20failed:',_0x41273c);}}if(_0x2b745a[_0x2fed80(0x194)]&&_0x2b745a[_0x2fed80(0x194)]['length']===_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)]){const _0x2ef9ba=new Float32Array(_0x2b745a[_0x2fed80(0x194)]['length']*0x3);for(let _0x2a1d9a=0x0;_0x2a1d9a<_0x2b745a[_0x2fed80(0x194)]['length'];_0x2a1d9a++){_0x2ef9ba[_0x2a1d9a*0x3]=_0x2b745a['normals'][_0x2a1d9a]['x'],_0x2ef9ba[_0x2a1d9a*0x3+0x1]=_0x2b745a[_0x2fed80(0x194)][_0x2a1d9a]['y'],_0x2ef9ba[_0x2a1d9a*0x3+0x2]=_0x2b745a[_0x2fed80(0x194)][_0x2a1d9a]['z'];}_0x153704[_0x2fed80(0x177)]('normal',new webgpu.Float32BufferAttribute(_0x2ef9ba,0x3));}else _0x153704[_0x2fed80(0x168)]();if(_0x2b745a[_0x2fed80(0x186)]&&_0x2b745a[_0x2fed80(0x186)][_0x2fed80(0x17e)]>0x0){const _0x3617e2=new Float32Array(_0x2b745a['uvs'][_0x2fed80(0x17e)]*0x2);for(let _0x5a3d7e=0x0;_0x5a3d7e<_0x2b745a[_0x2fed80(0x186)][_0x2fed80(0x17e)];_0x5a3d7e++){_0x3617e2[_0x5a3d7e*0x2]=_0x2b745a['uvs'][_0x5a3d7e]['x'],_0x3617e2[_0x5a3d7e*0x2+0x1]=_0x2b745a['uvs'][_0x5a3d7e]['y'];}_0x153704[_0x2fed80(0x177)]('uv',new webgpu.Float32BufferAttribute(_0x3617e2,0x2));}else {const _0x20a306=this[_0x2fed80(0x16b)](_0x2b745a[_0x2fed80(0x17a)]);_0x153704[_0x2fed80(0x177)]('uv',new webgpu.Float32BufferAttribute(_0x20a306,0x2));}if(_0x2b745a['colors']&&_0x2b745a[_0x2fed80(0x193)][_0x2fed80(0x17e)]===_0x2b745a[_0x2fed80(0x17a)][_0x2fed80(0x17e)]){const _0x5589b0=new Float32Array(_0x2b745a[_0x2fed80(0x193)][_0x2fed80(0x17e)]*0x3);for(let _0x3e5c14=0x0;_0x3e5c14<_0x2b745a['colors']['length'];_0x3e5c14++){_0x5589b0[_0x3e5c14*0x3]=_0x2b745a['colors'][_0x3e5c14]['r'],_0x5589b0[_0x3e5c14*0x3+0x1]=_0x2b745a[_0x2fed80(0x193)][_0x3e5c14]['g'],_0x5589b0[_0x3e5c14*0x3+0x2]=_0x2b745a[_0x2fed80(0x193)][_0x3e5c14]['b'];}_0x153704[_0x2fed80(0x177)](_0x2fed80(0x16f),new webgpu.Float32BufferAttribute(_0x5589b0,0x3));}return _0x153704;}set[_0x3027e9(0x157)](_0x3cdd12){const _0x742519=_0x3027e9;var _0x4be2df,_0x1c9364,_0x241788;this['_geometryPtr']&&this[_0x742519(0x15d)][_0x742519(0x188)]();const _0x237c8d=this[_0x742519(0x184)](_0x3cdd12);this[_0x742519(0x15d)]=this[_0x742519(0x17c)]['assetManager']['addGeometryAsset'](_0x237c8d),this['threeObject'][_0x742519(0x18c)]=_0x237c8d,this['_meshData']={'vertices':_0x3cdd12[_0x742519(0x17a)][_0x742519(0x160)](_0x4e24c5=>_0x4e24c5['clone']()),'indices':_0x3cdd12[_0x742519(0x192)]?[..._0x3cdd12['indices']]:undefined,'normals':(_0x4be2df=_0x3cdd12[_0x742519(0x194)])===null||_0x4be2df===void 0?void 0:_0x4be2df[_0x742519(0x160)](_0x219d4e=>_0x219d4e[_0x742519(0x185)]()),'uvs':(_0x1c9364=_0x3cdd12['uvs'])===null||_0x1c9364===void 0?void 0:_0x1c9364['map'](_0x3cc072=>_0x3cc072['clone']()),'colors':(_0x241788=_0x3cdd12[_0x742519(0x193)])===null||_0x241788===void 0?void 0:_0x241788[_0x742519(0x160)](_0x1636f7=>_0x1636f7[_0x742519(0x185)]())},this[_0x742519(0x178)]&&this['world']['viewport'][_0x742519(0x172)]();}get[_0x3027e9(0x157)](){const _0x458c9c=_0x3027e9;return this[_0x458c9c(0x166)];}['createDefaultObject'](){return new webgpu.Mesh();}set[_0x3027e9(0x155)](_0x146546){const _0x3f75e2=_0x3027e9;if(this[_0x3f75e2(0x181)])this[_0x3f75e2(0x181)][_0x3f75e2(0x155)]=_0x146546;}get[_0x3027e9(0x155)](){const _0x532a0d=_0x3027e9;return this[_0x532a0d(0x181)]?this['threeObject'][_0x532a0d(0x155)]:![];}set['receiveShadow'](_0x401a55){const _0x5bec86=_0x3027e9;if(!this[_0x5bec86(0x181)])return;this[_0x5bec86(0x181)][_0x5bec86(0x167)]=_0x401a55;}get[_0x3027e9(0x167)](){const _0x17726a=_0x3027e9;return this[_0x17726a(0x181)]?this[_0x17726a(0x181)][_0x17726a(0x167)]:![];}[_0x3027e9(0x15a)](){const _0x258922=_0x3027e9;let _0x3b6aea=new webgpu.Vector3();return this[_0x258922(0x159)]()['getCenter'](_0x3b6aea),_0x3b6aea;}['getBoundsTopCenterPosition'](){const _0x2d4993=_0x3027e9;let _0x515810=new webgpu.Vector3(),_0x2c539f=this[_0x2d4993(0x159)]();return _0x2c539f['getCenter'](_0x515810),_0x515810['y']=_0x2c539f[_0x2d4993(0x17f)]['y'],_0x515810;}[_0x3027e9(0x156)](){const _0x1a731b=_0x3027e9;let _0x294d9d=new webgpu.Vector3(),_0x30e5d1=this[_0x1a731b(0x159)]();return _0x30e5d1['getCenter'](_0x294d9d),_0x294d9d['y']=_0x30e5d1[_0x1a731b(0x190)]['y'],_0x294d9d;}[_0x3027e9(0x15c)](){const _0xff3dc0=_0x3027e9;var _0x3bd102,_0x51496e;this['threeObject']&&this['threeObject'][_0xff3dc0(0x15b)](),(_0x3bd102=this['_geometryPtr'])===null||_0x3bd102===void 0?void 0:_0x3bd102[_0xff3dc0(0x188)](),(_0x51496e=this['_materialPtr'])===null||_0x51496e===void 0?void 0:_0x51496e[_0xff3dc0(0x188)](),super[_0xff3dc0(0x15c)]();}}
|
|
132
|
+
const _0x4ff19b=_0x299e;function _0x5b8c(){const _0x1a8c0e=['destroyObject','setIndex','computeVertexNormals','getValue','CustomMeshComponent:\x20Earcut\x20triangulation\x20returned\x20empty\x20result','2128ZTqqUC','app','world','geometryPtr\x20is\x20null','addGeometryAsset','geometryPtr','indices','15WOQbMY','getCenter','CustomMeshComponent:\x20Vertices\x20are\x20in\x20clockwise\x20order,\x20reversing...','min','_materialPtr','error','obj','vertices','length','assetManager','2055752YYQCbB','calculatePolygonArea','color','6327eBqtgM','uvs','6aMSPgr','normal','addMaterialAsset','setAttribute','2085762xygvBu','materialPtr','computeUVs','constructGeometry','position','2979852pPmDQO','viewport','removeFromParent','LYObject','_geometryPtr','131014MfQFVC','getBoundsBottomCenterPosition','CustomMeshComponent:\x20threeObject\x20is\x20null','push','userData','reverse','getBounds','release','addRef','colors','map','_meshData','createDefaultObject','geometry','CustomMeshComponent:\x20Invalid\x20vertices\x20data','10518910BlRsmg','getBoundsCenterPosition','materialPtr\x20is\x20null','material','material\x20is\x20null','normals','receiveShadow','max','11378626xXDcnm','meshData','getBoundsTopCenterPosition','castShadow','threeObject','warn','clone'];_0x5b8c=function(){return _0x1a8c0e;};return _0x5b8c();}function _0x299e(_0x4ceb12,_0x3f66e8){_0x4ceb12=_0x4ceb12-0xdb;const _0x5b8ccc=_0x5b8c();let _0x299ef5=_0x5b8ccc[_0x4ceb12];return _0x299ef5;}(function(_0x112405,_0x14c252){const _0xf3a41a=_0x299e,_0xb711e8=_0x112405();while(!![]){try{const _0x4d174c=parseInt(_0xf3a41a(0x107))/0x1+-parseInt(_0xf3a41a(0xfd))/0x2+parseInt(_0xf3a41a(0xf9))/0x3*(parseInt(_0xf3a41a(0xf4))/0x4)+-parseInt(_0xf3a41a(0xea))/0x5*(-parseInt(_0xf3a41a(0x102))/0x6)+-parseInt(_0xf3a41a(0x11e))/0x7+parseInt(_0xf3a41a(0xe3))/0x8*(-parseInt(_0xf3a41a(0xf7))/0x9)+parseInt(_0xf3a41a(0x116))/0xa;if(_0x4d174c===_0x14c252)break;else _0xb711e8['push'](_0xb711e8['shift']());}catch(_0x207847){_0xb711e8['push'](_0xb711e8['shift']());}}}(_0x5b8c,0xce5fe));class CustomMeshComponent extends SceneComponent{get[_0x4ff19b(0xdb)](){const _0x114e65=_0x4ff19b;if(!this[_0x114e65(0xf0)])throw new Error(_0x114e65(0x109));return this[_0x114e65(0xf0)];}set[_0x4ff19b(0xdb)](_0x5f038f){const _0x218e8b=_0x4ff19b;this[_0x218e8b(0xf0)]=_0x5f038f,this[_0x218e8b(0xf0)]&&(this[_0x218e8b(0xf0)][_0x218e8b(0x10b)][_0x218e8b(0x105)]=this);}get[_0x4ff19b(0x114)](){const _0x42a193=_0x4ff19b;if(!this[_0x42a193(0x106)])throw new Error('geometryPtr\x20is\x20null');return this[_0x42a193(0x106)][_0x42a193(0xe1)]();}set['geometry'](_0x267689){const _0x3cef37=_0x4ff19b;let _0x3b71d2=this[_0x3cef37(0xe4)][_0x3cef37(0xf3)][_0x3cef37(0xe7)](_0x267689);this[_0x3cef37(0xe8)]=_0x3b71d2;}get[_0x4ff19b(0xe8)](){const _0x283852=_0x4ff19b;if(!this[_0x283852(0x106)])throw new Error(_0x283852(0xe6));return this[_0x283852(0x106)];}set[_0x4ff19b(0xe8)](_0x14db7d){const _0x13dd39=_0x4ff19b;this['_geometryPtr']&&(this[_0x13dd39(0x106)][_0x13dd39(0x10e)](),this[_0x13dd39(0x106)]=null);this[_0x13dd39(0x106)]=_0x14db7d;let _0x5ef17f=_0x14db7d[_0x13dd39(0xe1)]();this['threeObject']&&_0x5ef17f&&(this['threeObject'][_0x13dd39(0x114)]=_0x5ef17f);}get[_0x4ff19b(0x119)](){const _0x146bb3=_0x4ff19b;if(!this[_0x146bb3(0xee)])throw new Error(_0x146bb3(0x118));let _0x553816=this[_0x146bb3(0xee)][_0x146bb3(0xe1)]();if(!_0x553816)throw new Error(_0x146bb3(0x11a));return _0x553816;}get[_0x4ff19b(0xfe)](){const _0x33c2d2=_0x4ff19b;if(!this[_0x33c2d2(0xee)])throw new Error(_0x33c2d2(0x118));return this['_materialPtr'];}set['material'](_0x1660f6){const _0x4495fd=_0x4ff19b;let _0x1193ea=this['app'][_0x4495fd(0xf3)][_0x4495fd(0xfb)](_0x1660f6);this['materialPtr']=_0x1193ea;}set[_0x4ff19b(0xfe)](_0x19f070){const _0x508dcf=_0x4ff19b;this[_0x508dcf(0xee)]&&(this['_materialPtr'][_0x508dcf(0x10e)](),this[_0x508dcf(0xee)]=null);this[_0x508dcf(0xee)]=_0x19f070;let _0x55d64a=_0x19f070['getValue']();_0x19f070[_0x508dcf(0x10f)](),this[_0x508dcf(0xdb)]&&_0x55d64a&&(this[_0x508dcf(0xdb)][_0x508dcf(0x119)]=_0x55d64a);}constructor(_0x3c2c26,_0x56354c,_0x79142c,_0x49923d){const _0xc1b6eb=_0x4ff19b;super(_0x3c2c26,_0x49923d),this[_0xc1b6eb(0x112)]=_0x56354c;let _0x1cb90a=_0x3c2c26[_0xc1b6eb(0xf3)][_0xc1b6eb(0xfb)](_0x79142c);this[_0xc1b6eb(0xee)]=_0x1cb90a,_0x1cb90a[_0xc1b6eb(0x10f)]();const _0x12219b=this[_0xc1b6eb(0x100)](_0x56354c);this[_0xc1b6eb(0x106)]=_0x3c2c26[_0xc1b6eb(0xf3)]['addGeometryAsset'](_0x12219b),this[_0xc1b6eb(0xdb)][_0xc1b6eb(0x119)]=_0x79142c,this['threeObject']['geometry']=_0x12219b,this['name']='CustomMeshComponent',this['castShadow']=!![],this[_0xc1b6eb(0x11c)]=!![];}[_0x4ff19b(0xff)](_0x579f02){const _0xbee58c=_0x4ff19b,_0x55ca97=new Float32Array(_0x579f02[_0xbee58c(0xf2)]*0x2);if(_0x579f02[_0xbee58c(0xf2)]===0x0)return _0x55ca97;let _0xebbec=Infinity,_0x30944a=-Infinity,_0x1decfd=Infinity,_0x4d888b=-Infinity,_0x1ab4f2=Infinity,_0xec2c6b=-Infinity;for(const _0x8be9df of _0x579f02){_0xebbec=Math[_0xbee58c(0xed)](_0xebbec,_0x8be9df['x']),_0x30944a=Math['max'](_0x30944a,_0x8be9df['x']),_0x1decfd=Math['min'](_0x1decfd,_0x8be9df['y']),_0x4d888b=Math[_0xbee58c(0x11d)](_0x4d888b,_0x8be9df['y']),_0x1ab4f2=Math[_0xbee58c(0xed)](_0x1ab4f2,_0x8be9df['z']),_0xec2c6b=Math[_0xbee58c(0x11d)](_0xec2c6b,_0x8be9df['z']);}const _0xe37c02=_0x30944a-_0xebbec,_0x40150b=_0x4d888b-_0x1decfd,_0x3e07ec=_0xec2c6b-_0x1ab4f2;let _0x54b778,_0x328627,_0x274c28,_0x4c6e19,_0x3a74ed,_0x5012d1;if(_0xe37c02<=_0x40150b&&_0xe37c02<=_0x3e07ec)_0x54b778='y',_0x328627='z',_0x274c28=_0x1decfd,_0x4c6e19=_0x40150b,_0x3a74ed=_0x1ab4f2,_0x5012d1=_0x3e07ec;else _0x40150b<=_0xe37c02&&_0x40150b<=_0x3e07ec?(_0x54b778='x',_0x328627='z',_0x274c28=_0xebbec,_0x4c6e19=_0xe37c02,_0x3a74ed=_0x1ab4f2,_0x5012d1=_0x3e07ec):(_0x54b778='x',_0x328627='y',_0x274c28=_0xebbec,_0x4c6e19=_0xe37c02,_0x3a74ed=_0x1decfd,_0x5012d1=_0x40150b);if(_0x4c6e19===0x0)_0x4c6e19=0x1;if(_0x5012d1===0x0)_0x5012d1=0x1;for(let _0x4935ae=0x0;_0x4935ae<_0x579f02[_0xbee58c(0xf2)];_0x4935ae++){const _0x4c3d19=_0x579f02[_0x4935ae],_0x285e00=(_0x4c3d19[_0x54b778]-_0x274c28)/_0x4c6e19,_0x5064d5=(_0x4c3d19[_0x328627]-_0x3a74ed)/_0x5012d1;_0x55ca97[_0x4935ae*0x2]=_0x285e00,_0x55ca97[_0x4935ae*0x2+0x1]=_0x5064d5;}return _0x55ca97;}['calculatePolygonArea'](_0x781502){const _0x43bdbc=_0x4ff19b;let _0x3aae0f=0x0;const _0x155f05=_0x781502[_0x43bdbc(0xf2)]/0x2;for(let _0x519c80=0x0;_0x519c80<_0x155f05;_0x519c80++){const _0x41c057=(_0x519c80+0x1)%_0x155f05,_0x5d9651=_0x781502[_0x519c80*0x2],_0x57b41d=_0x781502[_0x519c80*0x2+0x1],_0x4ea6e1=_0x781502[_0x41c057*0x2],_0x4231ae=_0x781502[_0x41c057*0x2+0x1];_0x3aae0f+=_0x5d9651*_0x4231ae-_0x4ea6e1*_0x57b41d;}return _0x3aae0f/0x2;}[_0x4ff19b(0x100)](_0x31d940){const _0x2b084b=_0x4ff19b,_0xc48fd1=new webgpu.BufferGeometry();if(!_0x31d940['vertices']||_0x31d940[_0x2b084b(0xf1)][_0x2b084b(0xf2)]===0x0)return console['error'](_0x2b084b(0x115)),_0xc48fd1;const _0x376fc9=new Float32Array(_0x31d940[_0x2b084b(0xf1)][_0x2b084b(0xf2)]*0x3);for(let _0x4825f2=0x0;_0x4825f2<_0x31d940['vertices']['length'];_0x4825f2++){_0x376fc9[_0x4825f2*0x3]=_0x31d940[_0x2b084b(0xf1)][_0x4825f2]['x'],_0x376fc9[_0x4825f2*0x3+0x1]=_0x31d940[_0x2b084b(0xf1)][_0x4825f2]['y'],_0x376fc9[_0x4825f2*0x3+0x2]=_0x31d940[_0x2b084b(0xf1)][_0x4825f2]['z'];}_0xc48fd1[_0x2b084b(0xfc)](_0x2b084b(0x101),new webgpu.Float32BufferAttribute(_0x376fc9,0x3));if(_0x31d940[_0x2b084b(0xe9)]&&_0x31d940[_0x2b084b(0xe9)][_0x2b084b(0xf2)]>0x0)_0xc48fd1[_0x2b084b(0xdf)](_0x31d940[_0x2b084b(0xe9)]);else {const _0x324c68=[];let _0x169b8e=Infinity,_0x3aff5a=-Infinity,_0x396e6a=Infinity,_0x5928af=-Infinity,_0x3bdeb7=Infinity,_0x1a6e0c=-Infinity;for(let _0x5b8908=0x0;_0x5b8908<_0x31d940[_0x2b084b(0xf1)][_0x2b084b(0xf2)];_0x5b8908++){const _0x55c402=_0x31d940[_0x2b084b(0xf1)][_0x5b8908];_0x396e6a=Math[_0x2b084b(0xed)](_0x396e6a,_0x55c402['x']),_0x5928af=Math[_0x2b084b(0x11d)](_0x5928af,_0x55c402['x']),_0x169b8e=Math[_0x2b084b(0xed)](_0x169b8e,_0x55c402['y']),_0x3aff5a=Math[_0x2b084b(0x11d)](_0x3aff5a,_0x55c402['y']),_0x3bdeb7=Math['min'](_0x3bdeb7,_0x55c402['z']),_0x1a6e0c=Math['max'](_0x1a6e0c,_0x55c402['z']);}const _0x291dfa=_0x5928af-_0x396e6a,_0xa9e1f2=_0x3aff5a-_0x169b8e,_0x4f705e=_0x1a6e0c-_0x3bdeb7;if(_0xa9e1f2<=_0x291dfa&&_0xa9e1f2<=_0x4f705e){for(let _0x37b6d8=0x0;_0x37b6d8<_0x31d940[_0x2b084b(0xf1)][_0x2b084b(0xf2)];_0x37b6d8++){_0x324c68['push'](_0x31d940[_0x2b084b(0xf1)][_0x37b6d8]['x']),_0x324c68[_0x2b084b(0x10a)](_0x31d940[_0x2b084b(0xf1)][_0x37b6d8]['z']);}}else {if(_0x291dfa<=_0xa9e1f2&&_0x291dfa<=_0x4f705e){for(let _0x2e3e67=0x0;_0x2e3e67<_0x31d940[_0x2b084b(0xf1)]['length'];_0x2e3e67++){_0x324c68[_0x2b084b(0x10a)](_0x31d940['vertices'][_0x2e3e67]['y']),_0x324c68[_0x2b084b(0x10a)](_0x31d940[_0x2b084b(0xf1)][_0x2e3e67]['z']);}}else {for(let _0x2b733d=0x0;_0x2b733d<_0x31d940[_0x2b084b(0xf1)][_0x2b084b(0xf2)];_0x2b733d++){_0x324c68[_0x2b084b(0x10a)](_0x31d940['vertices'][_0x2b733d]['x']),_0x324c68[_0x2b084b(0x10a)](_0x31d940[_0x2b084b(0xf1)][_0x2b733d]['y']);}}}const _0x437597=this[_0x2b084b(0xf5)](_0x324c68),_0x4d2d1e=_0x437597<0x0;if(_0x4d2d1e){console[_0x2b084b(0xdc)](_0x2b084b(0xec)),_0x324c68[_0x2b084b(0x10c)]();const _0x2545da=[];for(let _0x19e48e=_0x324c68[_0x2b084b(0xf2)]-0x2;_0x19e48e>=0x0;_0x19e48e-=0x2){_0x2545da['push'](_0x324c68[_0x19e48e],_0x324c68[_0x19e48e+0x1]);}_0x324c68[_0x2b084b(0xf2)]=0x0,_0x324c68['push'](..._0x2545da);}try{const _0x5e009f=_0x1193a9(_0x324c68,undefined,0x2);if(_0x5e009f&&_0x5e009f[_0x2b084b(0xf2)]>0x0){if(_0x4d2d1e)for(let _0x50f9f7=0x0;_0x50f9f7<_0x5e009f[_0x2b084b(0xf2)];_0x50f9f7+=0x3){const _0x52e001=_0x5e009f[_0x50f9f7];_0x5e009f[_0x50f9f7]=_0x5e009f[_0x50f9f7+0x2],_0x5e009f[_0x50f9f7+0x2]=_0x52e001;}_0xc48fd1['setIndex'](_0x5e009f);}else console[_0x2b084b(0xdc)](_0x2b084b(0xe2));}catch(_0x3f4dd0){console[_0x2b084b(0xef)]('CustomMeshComponent:\x20Earcut\x20triangulation\x20failed:',_0x3f4dd0);}}if(_0x31d940[_0x2b084b(0x11b)]&&_0x31d940['normals'][_0x2b084b(0xf2)]===_0x31d940[_0x2b084b(0xf1)]['length']){const _0x4750b6=new Float32Array(_0x31d940[_0x2b084b(0x11b)][_0x2b084b(0xf2)]*0x3);for(let _0x10dcaf=0x0;_0x10dcaf<_0x31d940['normals'][_0x2b084b(0xf2)];_0x10dcaf++){_0x4750b6[_0x10dcaf*0x3]=_0x31d940['normals'][_0x10dcaf]['x'],_0x4750b6[_0x10dcaf*0x3+0x1]=_0x31d940[_0x2b084b(0x11b)][_0x10dcaf]['y'],_0x4750b6[_0x10dcaf*0x3+0x2]=_0x31d940[_0x2b084b(0x11b)][_0x10dcaf]['z'];}_0xc48fd1['setAttribute'](_0x2b084b(0xfa),new webgpu.Float32BufferAttribute(_0x4750b6,0x3));}else _0xc48fd1[_0x2b084b(0xe0)]();if(_0x31d940[_0x2b084b(0xf8)]&&_0x31d940[_0x2b084b(0xf8)][_0x2b084b(0xf2)]>0x0){const _0x29ddae=new Float32Array(_0x31d940[_0x2b084b(0xf8)][_0x2b084b(0xf2)]*0x2);for(let _0x5ee625=0x0;_0x5ee625<_0x31d940[_0x2b084b(0xf8)][_0x2b084b(0xf2)];_0x5ee625++){_0x29ddae[_0x5ee625*0x2]=_0x31d940[_0x2b084b(0xf8)][_0x5ee625]['x'],_0x29ddae[_0x5ee625*0x2+0x1]=_0x31d940[_0x2b084b(0xf8)][_0x5ee625]['y'];}_0xc48fd1[_0x2b084b(0xfc)]('uv',new webgpu.Float32BufferAttribute(_0x29ddae,0x2));}else {const _0x2fd0e3=this['computeUVs'](_0x31d940[_0x2b084b(0xf1)]);_0xc48fd1[_0x2b084b(0xfc)]('uv',new webgpu.Float32BufferAttribute(_0x2fd0e3,0x2));}if(_0x31d940[_0x2b084b(0x110)]&&_0x31d940['colors'][_0x2b084b(0xf2)]===_0x31d940['vertices'][_0x2b084b(0xf2)]){const _0x18bdd8=new Float32Array(_0x31d940[_0x2b084b(0x110)][_0x2b084b(0xf2)]*0x3);for(let _0x31b9ef=0x0;_0x31b9ef<_0x31d940[_0x2b084b(0x110)]['length'];_0x31b9ef++){_0x18bdd8[_0x31b9ef*0x3]=_0x31d940[_0x2b084b(0x110)][_0x31b9ef]['r'],_0x18bdd8[_0x31b9ef*0x3+0x1]=_0x31d940[_0x2b084b(0x110)][_0x31b9ef]['g'],_0x18bdd8[_0x31b9ef*0x3+0x2]=_0x31d940['colors'][_0x31b9ef]['b'];}_0xc48fd1['setAttribute'](_0x2b084b(0xf6),new webgpu.Float32BufferAttribute(_0x18bdd8,0x3));}return _0xc48fd1;}set[_0x4ff19b(0x11f)](_0x3c00d4){const _0xecda6c=_0x4ff19b;var _0x332e9f,_0x1e7c29,_0x142654;this['_geometryPtr']&&this[_0xecda6c(0x106)][_0xecda6c(0x10e)]();const _0x3f92cf=this[_0xecda6c(0x100)](_0x3c00d4);this[_0xecda6c(0x106)]=this[_0xecda6c(0xe4)]['assetManager'][_0xecda6c(0xe7)](_0x3f92cf),this[_0xecda6c(0xdb)]['geometry']=_0x3f92cf,this[_0xecda6c(0x112)]={'vertices':_0x3c00d4[_0xecda6c(0xf1)][_0xecda6c(0x111)](_0x5d913b=>_0x5d913b[_0xecda6c(0xdd)]()),'indices':_0x3c00d4[_0xecda6c(0xe9)]?[..._0x3c00d4['indices']]:undefined,'normals':(_0x332e9f=_0x3c00d4['normals'])===null||_0x332e9f===void 0?void 0:_0x332e9f[_0xecda6c(0x111)](_0x394dde=>_0x394dde[_0xecda6c(0xdd)]()),'uvs':(_0x1e7c29=_0x3c00d4['uvs'])===null||_0x1e7c29===void 0?void 0:_0x1e7c29[_0xecda6c(0x111)](_0x360f21=>_0x360f21['clone']()),'colors':(_0x142654=_0x3c00d4[_0xecda6c(0x110)])===null||_0x142654===void 0?void 0:_0x142654['map'](_0x9df78d=>_0x9df78d[_0xecda6c(0xdd)]())},this[_0xecda6c(0xe5)]&&this[_0xecda6c(0xe5)][_0xecda6c(0x103)]['markRenderStateDirty']();}get[_0x4ff19b(0x11f)](){const _0x31fd43=_0x4ff19b;return this[_0x31fd43(0x112)];}[_0x4ff19b(0x113)](){return new webgpu.Mesh();}set[_0x4ff19b(0x121)](_0x5193b4){const _0x2b66f8=_0x4ff19b;if(this[_0x2b66f8(0xdb)])this[_0x2b66f8(0xdb)][_0x2b66f8(0x121)]=_0x5193b4;}get['castShadow'](){const _0xa1f46=_0x4ff19b;return this[_0xa1f46(0xdb)]?this[_0xa1f46(0xdb)][_0xa1f46(0x121)]:![];}set[_0x4ff19b(0x11c)](_0x499112){const _0x468d25=_0x4ff19b;if(!this[_0x468d25(0xdb)])return;this['threeObject'][_0x468d25(0x11c)]=_0x499112;}get[_0x4ff19b(0x11c)](){const _0x262b66=_0x4ff19b;return this[_0x262b66(0xdb)]?this[_0x262b66(0xdb)]['receiveShadow']:![];}[_0x4ff19b(0x117)](){const _0x244308=_0x4ff19b;let _0x574bfa=new webgpu.Vector3();return this[_0x244308(0x10d)]()['getCenter'](_0x574bfa),_0x574bfa;}[_0x4ff19b(0x120)](){const _0x91d29=_0x4ff19b;let _0x575c80=new webgpu.Vector3(),_0x1b401f=this[_0x91d29(0x10d)]();return _0x1b401f[_0x91d29(0xeb)](_0x575c80),_0x575c80['y']=_0x1b401f[_0x91d29(0x11d)]['y'],_0x575c80;}[_0x4ff19b(0x108)](){const _0x13bd55=_0x4ff19b;let _0x2d10f2=new webgpu.Vector3(),_0x1b932a=this[_0x13bd55(0x10d)]();return _0x1b932a[_0x13bd55(0xeb)](_0x2d10f2),_0x2d10f2['y']=_0x1b932a[_0x13bd55(0xed)]['y'],_0x2d10f2;}[_0x4ff19b(0xde)](){const _0x2a29eb=_0x4ff19b;var _0x51c91c,_0x37c9f;this[_0x2a29eb(0xdb)]&&this['threeObject'][_0x2a29eb(0x104)](),(_0x51c91c=this[_0x2a29eb(0x106)])===null||_0x51c91c===void 0?void 0:_0x51c91c[_0x2a29eb(0x10e)](),(_0x37c9f=this[_0x2a29eb(0xee)])===null||_0x37c9f===void 0?void 0:_0x37c9f['release'](),super[_0x2a29eb(0xde)]();}}
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
(function(_0x1eff07,_0x16753f){var _0x1125d3=_0x4163,_0x40b424=_0x1eff07();while(!![]){try{var _0x1696ed=-parseInt(_0x1125d3(0x13a))/0x1*(parseInt(_0x1125d3(0x13b))/0x2)+-parseInt(_0x1125d3(0x138))/0x3+parseInt(_0x1125d3(0x13c))/0x4*(parseInt(_0x1125d3(0x13e))/0x5)+-parseInt(_0x1125d3(0x140))/0x6+-parseInt(_0x1125d3(0x13f))/0x7*(-parseInt(_0x1125d3(0x139))/0x8)+-parseInt(_0x1125d3(0x13d))/0x9+parseInt(_0x1125d3(0x141))/0xa;if(_0x1696ed===_0x16753f)break;else _0x40b424['push'](_0x40b424['shift']());}catch(_0x2c3049){_0x40b424['push'](_0x40b424['shift']());}}}(_0x331e,0x1c00e));function _0x4163(_0x5a9ea8,_0x513e3a){_0x5a9ea8=_0x5a9ea8-0x138;var _0x331e13=_0x331e();var _0x41633=_0x331e13[_0x5a9ea8];return _0x41633;}function _0x331e(){var _0x582663=['2247600qPOXgd','264447TtsLVh','56tMgwXn','6iwzCBQ','1674McuPzO','15916iHuPVA','615267GFseUt','10NNmype','205198stZPan','970080QyvEUt'];_0x331e=function(){return _0x582663;};return _0x331e();}class SphereComponent extends MeshComponent{constructor(_0x4d68da,_0x219558,_0x3a7161=new webgpu.MeshBasicMaterial(),_0x2ff174=0x20,_0x586ab4=0x10,_0x118752){super(_0x4d68da,new webgpu.SphereGeometry(_0x219558,_0x2ff174,_0x586ab4),_0x3a7161,_0x118752);}}
|
|
135
135
|
|
|
136
|
-
const
|
|
136
|
+
const _0x354bbc=_0x1421;(function(_0x2eb4ff,_0x24abbf){const _0x5efa5d=_0x1421,_0x1c7b6c=_0x2eb4ff();while(!![]){try{const _0x3b5970=-parseInt(_0x5efa5d(0x1f3))/0x1*(parseInt(_0x5efa5d(0x1f4))/0x2)+-parseInt(_0x5efa5d(0x207))/0x3*(parseInt(_0x5efa5d(0x1f2))/0x4)+parseInt(_0x5efa5d(0x1fd))/0x5+parseInt(_0x5efa5d(0x205))/0x6*(-parseInt(_0x5efa5d(0x1f9))/0x7)+-parseInt(_0x5efa5d(0x201))/0x8*(-parseInt(_0x5efa5d(0x1f1))/0x9)+-parseInt(_0x5efa5d(0x1ff))/0xa+-parseInt(_0x5efa5d(0x200))/0xb*(-parseInt(_0x5efa5d(0x1fb))/0xc);if(_0x3b5970===_0x24abbf)break;else _0x1c7b6c['push'](_0x1c7b6c['shift']());}catch(_0x433828){_0x1c7b6c['push'](_0x1c7b6c['shift']());}}}(_0x3f17,0x4ef30));function _0x3f17(){const _0x2c636d=['innerHTML','remove','205074TepccK','68kiASrd','14821OuuaSi','50srkNXj','element','isHoverEnabled','parentNode','addEventListener','161vawUUO','copy','48nqLvdh','isClickEnabled','723745OVpkje','obj','3220670aXXjRj','4651427EoGmgE','56mJLIcZ','destroy','auto','setVisible','109566slfDHj','pointerEvents','98772gmFxDC','threeObject','pointerdown'];_0x3f17=function(){return _0x2c636d;};return _0x3f17();}function _0x1421(_0x9918e3,_0x3eeb33){_0x9918e3=_0x9918e3-0x1f0;const _0x3f179e=_0x3f17();let _0x1421da=_0x3f179e[_0x9918e3];return _0x1421da;}class LabelComponent extends SceneComponent{get[_0x354bbc(0x208)](){return this['obj'];}set[_0x354bbc(0x208)](_0xa1f668){const _0x5b77cd=_0x354bbc;this['obj']=_0xa1f668,this[_0x5b77cd(0x1fe)]&&(this[_0x5b77cd(0x1fe)]['userData']['LYObject']=this);}constructor(_0x14e814,_0x2d5abc,_0x11c8c1={},_0x35f59c){const _0x302293=_0x354bbc;super(_0x14e814,_0x35f59c),this['obj']=new CSS2DRenderer_js.CSS2DObject(_0x2d5abc);const _0x1e788b=_0x11c8c1['center']||new webgpu.Vector2(0.5,0x1);_0x11c8c1['enablePointerEvents']&&(_0x2d5abc['style'][_0x302293(0x206)]=_0x302293(0x203),_0x2d5abc[_0x302293(0x1f8)](_0x302293(0x209),_0x25d642=>{_0x25d642['stopPropagation']();})),this[_0x302293(0x1fe)]['center'][_0x302293(0x1fa)](_0x1e788b);}set[_0x354bbc(0x1f6)](_0x4848fd){return;}set[_0x354bbc(0x1fc)](_0x1353b2){return;}[_0x354bbc(0x204)](_0xd66224){super['setVisible'](_0xd66224);}[_0x354bbc(0x202)](){const _0x53cd76=_0x354bbc;this[_0x53cd76(0x208)][_0x53cd76(0x1f5)]&&this[_0x53cd76(0x208)][_0x53cd76(0x1f5)][_0x53cd76(0x1f7)]&&(this[_0x53cd76(0x208)][_0x53cd76(0x1f5)][_0x53cd76(0x20a)]='',this[_0x53cd76(0x208)][_0x53cd76(0x1f5)][_0x53cd76(0x1f0)]()),super['destroy']();}}
|
|
137
137
|
|
|
138
|
-
function _0x3bd1(){const _0x538e0b=['blendDstAlpha','fullscreen;\x20autoplay;\x20clipboard-read;\x20clipboard-write','3uoMyaS','occlusionCandidates','max','object','100%','none','div','name','opacity','dataset','needsUpdate','quaternion','obj','world','divideScalar','__depth_mask','tickFunc','sort','overflow','fromBufferAttribute','colorWrite','setupOcclusionTick','intersectObjects','remove','iframe','polygonOffset','isMesh','viewport','1143989pFgCfp','78XeXCrz','distance','blendDst','camera','app','traverse','409522iitSiJ','removeTickingFunction','getX','threeObject\x20is\x20null','blendSrcAlpha','hidden','width','floor','crossVectors','lazy','castShadow','blendSrc','getSize','1714168ZbQaqU','createDefaultObject','__alpha_punch','appendChild','true','95648nOzFbY','getWorldPosition','style','threeObject','rayIgnored','targetMesh','setAttribute','length','pointerEvents','102535EliJvY','depthTest','count','about:blank','outer','dispose','raycaster','abs','allow','subVectors','depthWrite','height','min','set','round','cameraWorldPos','backfaceVisibility','rayDir','removeFromParent','239114TTfCGb','getIndex','includes','push','isArray','14244494XDHjGX','63dbvXyt','meshes','geometry','receiveShadow','fog','polygonOffsetFactor','computeBoundingBox','createElement','lengthSq','getAttribute','material','parent','__css3d_web','add','destroy','auto','setupMasks','panelWorldPos','canvas','depthMaskMeshes','alphaPunchMeshes','src','userData','wrapper','wallboard','setFromUnitVectors','scene','transparent','border','10mosxkt','scale','test','position','blending','visible','renderOrder','toneMapped','boundingBox'];_0x3bd1=function(){return _0x538e0b;};return _0x3bd1();}const _0x205dd5=_0x1675;(function(_0x3dba26,_0x4820cd){const _0x5b760f=_0x1675,_0xd6be0a=_0x3dba26();while(!![]){try{const _0x248405=-parseInt(_0x5b760f(0x1d5))/0x1+-parseInt(_0x5b760f(0x184))/0x2*(-parseInt(_0x5b760f(0x1b2))/0x3)+-parseInt(_0x5b760f(0x1e2))/0x4+-parseInt(_0x5b760f(0x1f0))/0x5*(parseInt(_0x5b760f(0x1cf))/0x6)+parseInt(_0x5b760f(0x1ce))/0x7+parseInt(_0x5b760f(0x1e7))/0x8*(-parseInt(_0x5b760f(0x18a))/0x9)+parseInt(_0x5b760f(0x1a7))/0xa*(parseInt(_0x5b760f(0x189))/0xb);if(_0x248405===_0x4820cd)break;else _0xd6be0a['push'](_0xd6be0a['shift']());}catch(_0x42fca1){_0xd6be0a['push'](_0xd6be0a['shift']());}}}(_0x3bd1,0x5f1d7));function _0x1675(_0x24a0db,_0x2e3518){_0x24a0db=_0x24a0db-0x17f;const _0x3bd1eb=_0x3bd1();let _0x16754b=_0x3bd1eb[_0x24a0db];return _0x16754b;}function normalizeAssetUrl(_0x1a5732){const _0x4762fe=_0x1675,_0x36d98e=String(_0x1a5732!==null&&_0x1a5732!==void 0?_0x1a5732:'')['trim']();if(!_0x36d98e)return '';if(/^https?:\/\//i[_0x4762fe(0x1a9)](_0x36d98e))return _0x36d98e;if(_0x36d98e['startsWith']('/'))return _0x36d98e;return '/'+_0x36d98e;}function getMeshPlaneLocalSize(_0x12b83a){const _0x26f594=_0x1675,_0x16c70b=_0x12b83a[_0x26f594(0x18c)];if(!_0x16c70b)return {'width':0x1,'height':0x1};if(!_0x16c70b[_0x26f594(0x1af)])_0x16c70b[_0x26f594(0x190)]();const _0x54b10e=_0x16c70b[_0x26f594(0x1af)];if(!_0x54b10e)return {'width':0x1,'height':0x1};const _0x459695=_0x54b10e[_0x26f594(0x1e1)](new three.Vector3()),_0x5a31ad=[Math[_0x26f594(0x1f7)](_0x459695['x']),Math[_0x26f594(0x1f7)](_0x459695['y']),Math[_0x26f594(0x1f7)](_0x459695['z'])][_0x26f594(0x1c3)]((_0x4ff8e6,_0x287122)=>_0x287122-_0x4ff8e6),_0x2425d7=Math['max'](0.0001,_0x5a31ad[0x0]||0x1),_0x5c314d=Math['max'](0.0001,_0x5a31ad[0x1]||_0x2425d7);return {'width':_0x2425d7,'height':_0x5c314d};}function getMeshLocalNormal(_0x102da7){const _0x59e15d=_0x1675,_0x55e16f=_0x102da7['geometry'];if(!_0x55e16f)return new three.Vector3(0x0,0x0,0x1);const _0x4e957b=_0x55e16f[_0x59e15d(0x193)]('normal');if(_0x4e957b&&_0x4e957b['count']>0x0){const _0x1049e1=new three.Vector3(),_0x7e4ffb=new three.Vector3();for(let _0x1f3b44=0x0;_0x1f3b44<_0x4e957b['count'];_0x1f3b44++){_0x7e4ffb[_0x59e15d(0x1c5)](_0x4e957b,_0x1f3b44),_0x1049e1[_0x59e15d(0x197)](_0x7e4ffb);}if(_0x1049e1[_0x59e15d(0x192)]()>1e-12)return _0x1049e1['normalize']();}const _0x4b2edc=_0x55e16f['getAttribute']('position');if(!_0x4b2edc||_0x4b2edc[_0x59e15d(0x1f2)]<0x3)return new three.Vector3(0x0,0x0,0x1);const _0x337572=_0x55e16f[_0x59e15d(0x185)](),_0x48f5ea=new three.Vector3(),_0x529684=new three.Vector3(),_0x4c401f=new three.Vector3(),_0x9a8e23=new three.Vector3(),_0x110657=new three.Vector3(),_0x1c0162=new three.Vector3(),_0x648218=new three.Vector3(),_0x41e3ec=_0x337572?Math[_0x59e15d(0x1dc)](_0x337572[_0x59e15d(0x1f2)]/0x3):Math[_0x59e15d(0x1dc)](_0x4b2edc[_0x59e15d(0x1f2)]/0x3);for(let _0x56f3ae=0x0;_0x56f3ae<_0x41e3ec;_0x56f3ae++){const _0x53d4fc=_0x337572?_0x337572[_0x59e15d(0x1d7)](_0x56f3ae*0x3+0x0):_0x56f3ae*0x3+0x0,_0x56c152=_0x337572?_0x337572[_0x59e15d(0x1d7)](_0x56f3ae*0x3+0x1):_0x56f3ae*0x3+0x1,_0x40c6d5=_0x337572?_0x337572[_0x59e15d(0x1d7)](_0x56f3ae*0x3+0x2):_0x56f3ae*0x3+0x2;_0x48f5ea[_0x59e15d(0x1c5)](_0x4b2edc,_0x53d4fc),_0x529684[_0x59e15d(0x1c5)](_0x4b2edc,_0x56c152),_0x4c401f[_0x59e15d(0x1c5)](_0x4b2edc,_0x40c6d5),_0x9a8e23[_0x59e15d(0x1f9)](_0x529684,_0x48f5ea),_0x110657[_0x59e15d(0x1f9)](_0x4c401f,_0x48f5ea),_0x648218[_0x59e15d(0x1dd)](_0x9a8e23,_0x110657);if(_0x648218[_0x59e15d(0x192)]()<1e-14)continue;_0x1c0162[_0x59e15d(0x197)](_0x648218);}if(_0x1c0162[_0x59e15d(0x192)]()<1e-12)return new three.Vector3(0x0,0x0,0x1);return _0x1c0162['normalize']();}function collectOcclusionMeshes(_0x1a38f6){const _0xbafcb1=_0x1675,_0x2d5296=[];return _0x1a38f6[_0xbafcb1(0x1d4)](_0x1dd3d3=>{const _0x383d6b=_0xbafcb1;var _0x4afb65;const _0x581515=_0x1dd3d3;if(!(_0x581515===null||_0x581515===void 0?void 0:_0x581515[_0x383d6b(0x1cc)]))return;if(!_0x1dd3d3[_0x383d6b(0x1ac)])return;if((_0x4afb65=_0x1dd3d3['userData'])===null||_0x4afb65===void 0?void 0:_0x4afb65[_0x383d6b(0x1eb)])return;_0x2d5296[_0x383d6b(0x187)](_0x1dd3d3);}),_0x2d5296;}class CSS3DWebPanelComponent extends SceneComponent{get[_0x205dd5(0x1ea)](){const _0x41af70=_0x205dd5;if(!this[_0x41af70(0x1be)])throw new Error(_0x41af70(0x1d8));return this[_0x41af70(0x1be)];}set[_0x205dd5(0x1ea)](_0x2b38f5){const _0x4bca1f=_0x205dd5;this['obj']=_0x2b38f5,this[_0x4bca1f(0x1be)]&&(this['obj'][_0x4bca1f(0x1a0)]['LYObject']=this);}constructor(_0x4822cc,_0x552b67,_0x35c5b1,_0x534882){const _0x297625=_0x205dd5;super(_0x4822cc,_0x534882),this[_0x297625(0x1a1)]=null,this[_0x297625(0x1ca)]=null,this[_0x297625(0x1ec)]=null,this[_0x297625(0x19d)]=[],this['alphaPunchMeshes']=[],this[_0x297625(0x1c2)]=null,this[_0x297625(0x180)]=new three.Vector3(),this[_0x297625(0x19b)]=new three.Vector3(),this['rayDir']=new three.Vector3(),this[_0x297625(0x1f6)]=new three.Raycaster(),this['occlusionCandidates']=[],this['name']='CSS3DWebPanelComponent',this[_0x297625(0x18b)]=_0x552b67['filter'](_0x2e043a=>!!_0x2e043a);const _0x1780a2=normalizeAssetUrl(_0x35c5b1);if(!_0x1780a2||!this[_0x297625(0x18b)][_0x297625(0x1ee)])return;this[_0x297625(0x1ec)]=this['meshes'][0x0];const _0x56512e=getMeshPlaneLocalSize(this[_0x297625(0x1ec)]),_0x1a3aa0=0x4b0,_0x10b7f9=Math['max'](0x200,Math[_0x297625(0x1fc)](0x1000,Math[_0x297625(0x17f)](_0x56512e[_0x297625(0x1db)]*_0x1a3aa0))),_0x5a08a1=Math['max'](0x200,Math[_0x297625(0x1fc)](0x1000,Math[_0x297625(0x17f)](_0x56512e[_0x297625(0x1fb)]*_0x1a3aa0))),_0x414f19=document[_0x297625(0x191)](_0x297625(0x1b8));_0x414f19[_0x297625(0x1e9)][_0x297625(0x1db)]=_0x10b7f9+'px',_0x414f19[_0x297625(0x1e9)][_0x297625(0x1fb)]=_0x5a08a1+'px',_0x414f19[_0x297625(0x1e9)]['pointerEvents']=_0x297625(0x199),_0x414f19[_0x297625(0x1e9)][_0x297625(0x1c4)]=_0x297625(0x1da),_0x414f19[_0x297625(0x1e9)]['background']=_0x297625(0x1a5),_0x414f19[_0x297625(0x1e9)][_0x297625(0x181)]=_0x297625(0x1da),this['wrapper']=_0x414f19;const _0x59ef96=document[_0x297625(0x191)]('iframe');_0x59ef96[_0x297625(0x19f)]=_0x1780a2,_0x59ef96['style'][_0x297625(0x1db)]=_0x297625(0x1b6),_0x59ef96[_0x297625(0x1e9)][_0x297625(0x1fb)]=_0x297625(0x1b6),_0x59ef96['style'][_0x297625(0x1a6)]='0',_0x59ef96[_0x297625(0x1e9)]['background']=_0x297625(0x1a5),_0x59ef96[_0x297625(0x1e9)][_0x297625(0x1ef)]='auto',_0x59ef96['style'][_0x297625(0x181)]=_0x297625(0x1da),_0x59ef96[_0x297625(0x1ed)](_0x297625(0x1f8),_0x297625(0x1b1)),_0x59ef96[_0x297625(0x1ed)]('allowfullscreen',_0x297625(0x1e6)),_0x59ef96[_0x297625(0x1ed)]('loading',_0x297625(0x1de)),_0x414f19[_0x297625(0x1e5)](_0x59ef96),this['iframe']=_0x59ef96;const _0xc6e900=new Addons_js.CSS3DObject(_0x414f19);_0xc6e900[_0x297625(0x1b9)]=(this[_0x297625(0x1ec)][_0x297625(0x1b9)]||_0x297625(0x1a2))+_0x297625(0x196),_0xc6e900[_0x297625(0x1aa)]['set'](0x0,0x0,0.001),_0xc6e900[_0x297625(0x1bd)][_0x297625(0x1a3)](new three.Vector3(0x0,0x0,0x1),getMeshLocalNormal(this[_0x297625(0x1ec)])),_0xc6e900['scale']['set'](_0x56512e[_0x297625(0x1db)]/_0x10b7f9,_0x56512e[_0x297625(0x1fb)]/_0x5a08a1,0x1),this[_0x297625(0x1ea)]=_0xc6e900,this['targetMesh']['add'](_0xc6e900),this[_0x297625(0x19a)](),this['occlusionCandidates']=collectOcclusionMeshes(this[_0x297625(0x1d3)][_0x297625(0x1bf)][_0x297625(0x1a4)]),this[_0x297625(0x1c7)]();}[_0x205dd5(0x1e3)](){const _0x3da1e3=_0x205dd5;return new Addons_js.CSS3DObject(document[_0x3da1e3(0x191)](_0x3da1e3(0x1b8)));}[_0x205dd5(0x19a)](){const _0x140ab9=_0x205dd5;var _0x11a1b6;for(const _0x51aabd of this[_0x140ab9(0x18b)]){_0x51aabd['renderOrder']=Math[_0x140ab9(0x1fc)]((_0x11a1b6=_0x51aabd[_0x140ab9(0x1ad)])!==null&&_0x11a1b6!==void 0?_0x11a1b6:0x0,-1e3),_0x51aabd[_0x140ab9(0x1df)]=![],_0x51aabd[_0x140ab9(0x18d)]=![];const _0x11950e=Array[_0x140ab9(0x188)](_0x51aabd['material'])?_0x51aabd[_0x140ab9(0x194)]:[_0x51aabd[_0x140ab9(0x194)]];for(const _0x32cea3 of _0x11950e){const _0x5bcd2c=_0x32cea3;if(!_0x5bcd2c)continue;_0x5bcd2c['transparent']=!![],_0x5bcd2c[_0x140ab9(0x1ba)]=0x0,_0x5bcd2c[_0x140ab9(0x1c6)]=![],_0x5bcd2c[_0x140ab9(0x1f1)]=![],_0x5bcd2c[_0x140ab9(0x1fa)]=![],_0x5bcd2c[_0x140ab9(0x1bc)]=!![];}const _0x51faaf=_0x51aabd[_0x140ab9(0x18c)];if(!_0x51faaf)continue;const _0x15bd79=new three.MeshBasicMaterial({'color':0x0,'side':three.DoubleSide,'depthTest':!![],'depthWrite':!![],'transparent':![]});_0x15bd79[_0x140ab9(0x1c6)]=![],_0x15bd79[_0x140ab9(0x1ae)]=![],_0x15bd79[_0x140ab9(0x18e)]=![],_0x15bd79[_0x140ab9(0x1ab)]=three.NoBlending,_0x15bd79[_0x140ab9(0x1cb)]=!![],_0x15bd79[_0x140ab9(0x18f)]=-4,_0x15bd79['polygonOffsetUnits']=-4;const _0x4a636f=new three.Mesh(_0x51faaf,_0x15bd79);_0x4a636f[_0x140ab9(0x1b9)]=(_0x51aabd['name']||_0x140ab9(0x19c))+_0x140ab9(0x1c1),_0x4a636f['userData'][_0x140ab9(0x1eb)]=!![],_0x4a636f[_0x140ab9(0x1ad)]=Math[_0x140ab9(0x1fc)](_0x51aabd[_0x140ab9(0x1ad)]-0x1,-2e3),_0x4a636f['position']['set'](0x0,0x0,0x0),_0x4a636f[_0x140ab9(0x1bd)][_0x140ab9(0x1fd)](0x0,0x0,0x0,0x1),_0x4a636f[_0x140ab9(0x1a8)]['set'](0x1,0x1,0x1),_0x51aabd[_0x140ab9(0x197)](_0x4a636f),this[_0x140ab9(0x19d)][_0x140ab9(0x187)](_0x4a636f);const _0x34621f=new three.MeshBasicMaterial({'color':0x0,'side':three.DoubleSide,'depthTest':!![],'depthWrite':![],'transparent':!![],'opacity':0x1,'blending':three.CustomBlending});_0x34621f['toneMapped']=![],_0x34621f['fog']=![],_0x34621f['blendEquation']=three.AddEquation,_0x34621f[_0x140ab9(0x1e0)]=three.ZeroFactor,_0x34621f[_0x140ab9(0x1d1)]=three.OneFactor,_0x34621f[_0x140ab9(0x1d9)]=three.ZeroFactor,_0x34621f[_0x140ab9(0x1b0)]=three.ZeroFactor;const _0x7d8d90=new three.Mesh(_0x51faaf,_0x34621f);_0x7d8d90[_0x140ab9(0x1b9)]=(_0x51aabd['name']||'canvas')+_0x140ab9(0x1e4),_0x7d8d90[_0x140ab9(0x1a0)][_0x140ab9(0x1eb)]=!![],_0x7d8d90[_0x140ab9(0x1ad)]=Math[_0x140ab9(0x1b4)](_0x51aabd[_0x140ab9(0x1ad)]+0x3e8,0x3e8),_0x7d8d90['position'][_0x140ab9(0x1fd)](0x0,0x0,0x0),_0x7d8d90['quaternion'][_0x140ab9(0x1fd)](0x0,0x0,0x0,0x1),_0x7d8d90['scale'][_0x140ab9(0x1fd)](0x1,0x1,0x1),_0x51aabd[_0x140ab9(0x197)](_0x7d8d90),this[_0x140ab9(0x19e)][_0x140ab9(0x187)](_0x7d8d90);}}['setupOcclusionTick'](){const _0x54e5bd=_0x205dd5;let _0x21881f=0x0;this[_0x54e5bd(0x1c2)]=_0x2efb5e=>{const _0xeebe16=_0x54e5bd;var _0x91e221;if(!this[_0xeebe16(0x1ec)]||!this['wrapper']||!this['iframe'])return;_0x21881f+=_0x2efb5e;if(_0x21881f<0.05)return;_0x21881f=0x0;const _0x260352=this['app'][_0xeebe16(0x1d2)];_0x260352[_0xeebe16(0x1e8)](this[_0xeebe16(0x180)]),this[_0xeebe16(0x1ec)][_0xeebe16(0x1e8)](this[_0xeebe16(0x19b)]),this[_0xeebe16(0x182)][_0xeebe16(0x1f9)](this['panelWorldPos'],this[_0xeebe16(0x180)]);const _0x335ec8=this[_0xeebe16(0x182)][_0xeebe16(0x1ee)]();if(_0x335ec8<=0.00001)return;this['rayDir'][_0xeebe16(0x1c0)](_0x335ec8),this['raycaster'][_0xeebe16(0x1fd)](this[_0xeebe16(0x180)],this[_0xeebe16(0x182)]);const _0x4948cf=this['raycaster'][_0xeebe16(0x1c8)](this[_0xeebe16(0x1b3)],!![]);let _0x2f5928=![];const _0x3d6e44=_0x335ec8-0.02;for(const _0x94288d of _0x4948cf){if(_0x94288d[_0xeebe16(0x1d0)]>=_0x3d6e44)break;let _0x5cd241=_0x94288d[_0xeebe16(0x1b5)],_0x250d41=!![];while(_0x5cd241){if(!_0x5cd241[_0xeebe16(0x1ac)]){_0x250d41=![];break;}_0x5cd241=_0x5cd241[_0xeebe16(0x195)];}if(!_0x250d41)continue;_0x5cd241=_0x94288d['object'];let _0x45e3f5=![];while(_0x5cd241){if(this[_0xeebe16(0x18b)][_0xeebe16(0x186)](_0x5cd241)){_0x45e3f5=!![];break;}_0x5cd241=_0x5cd241['parent'];}if(_0x45e3f5)continue;_0x2f5928=!![];break;}const _0x11e51a=((_0x91e221=this[_0xeebe16(0x1d3)][_0xeebe16(0x1cd)][_0xeebe16(0x1f4)])===null||_0x91e221===void 0?void 0:_0x91e221[_0xeebe16(0x1bb)]['lyCameraDragging'])==='1',_0x47a8b9=_0x11e51a||_0x2f5928?_0xeebe16(0x1b7):_0xeebe16(0x199);this[_0xeebe16(0x1a1)][_0xeebe16(0x1e9)][_0xeebe16(0x1ef)]!==_0x47a8b9&&(this[_0xeebe16(0x1a1)][_0xeebe16(0x1e9)][_0xeebe16(0x1ef)]=_0x47a8b9),this[_0xeebe16(0x1ca)][_0xeebe16(0x1e9)]['pointerEvents']!==_0x47a8b9&&(this[_0xeebe16(0x1ca)][_0xeebe16(0x1e9)][_0xeebe16(0x1ef)]=_0x47a8b9);},this[_0x54e5bd(0x1d3)]['addTickingFunction'](this[_0x54e5bd(0x1c2)]);}[_0x205dd5(0x198)](){const _0x3655fa=_0x205dd5;this[_0x3655fa(0x1c2)]&&(this[_0x3655fa(0x1d3)][_0x3655fa(0x1d6)](this[_0x3655fa(0x1c2)]),this[_0x3655fa(0x1c2)]=null);for(const _0x51801d of this['depthMaskMeshes']){_0x51801d['removeFromParent']();const _0x2719c8=_0x51801d['material'];if(Array[_0x3655fa(0x188)](_0x2719c8)){for(const _0x46ad3d of _0x2719c8)_0x46ad3d===null||_0x46ad3d===void 0?void 0:_0x46ad3d[_0x3655fa(0x1f5)]();}else _0x2719c8===null||_0x2719c8===void 0?void 0:_0x2719c8['dispose']();}this[_0x3655fa(0x19d)][_0x3655fa(0x1ee)]=0x0;for(const _0x1790f0 of this[_0x3655fa(0x19e)]){_0x1790f0[_0x3655fa(0x183)]();const _0xddc078=_0x1790f0[_0x3655fa(0x194)];if(Array[_0x3655fa(0x188)](_0xddc078)){for(const _0x57af6a of _0xddc078)_0x57af6a===null||_0x57af6a===void 0?void 0:_0x57af6a[_0x3655fa(0x1f5)]();}else _0xddc078===null||_0xddc078===void 0?void 0:_0xddc078[_0x3655fa(0x1f5)]();}this[_0x3655fa(0x19e)]['length']=0x0,this[_0x3655fa(0x1ca)]&&(this[_0x3655fa(0x1ca)]['src']=_0x3655fa(0x1f3),this['iframe']=null),this['wrapper']&&(this[_0x3655fa(0x1a1)][_0x3655fa(0x1c9)](),this[_0x3655fa(0x1a1)]=null),this['targetMesh']=null,this[_0x3655fa(0x1b3)]=[],super[_0x3655fa(0x198)]();}}
|
|
138
|
+
function _0x4500(_0x5bb34c,_0xc41998){_0x5bb34c=_0x5bb34c-0x193;const _0x26e042=_0x26e0();let _0x450060=_0x26e042[_0x5bb34c];return _0x450060;}const _0x51d1bc=_0x4500;(function(_0x413cf8,_0x138367){const _0x5e7daa=_0x4500,_0x167767=_0x413cf8();while(!![]){try{const _0x4b9be0=parseInt(_0x5e7daa(0x19e))/0x1*(parseInt(_0x5e7daa(0x1d6))/0x2)+parseInt(_0x5e7daa(0x1dd))/0x3+-parseInt(_0x5e7daa(0x209))/0x4*(-parseInt(_0x5e7daa(0x1ba))/0x5)+parseInt(_0x5e7daa(0x199))/0x6*(parseInt(_0x5e7daa(0x1c2))/0x7)+parseInt(_0x5e7daa(0x1ee))/0x8+parseInt(_0x5e7daa(0x1c6))/0x9*(parseInt(_0x5e7daa(0x1d2))/0xa)+-parseInt(_0x5e7daa(0x1fb))/0xb*(parseInt(_0x5e7daa(0x201))/0xc);if(_0x4b9be0===_0x138367)break;else _0x167767['push'](_0x167767['shift']());}catch(_0x3181c4){_0x167767['push'](_0x167767['shift']());}}}(_0x26e0,0x8a755));function _0x26e0(){const _0x3f4b7b=['intersectObjects','setAttribute','none','createDefaultObject','backfaceVisibility','renderOrder','isArray','fromBufferAttribute','add','25570RcoldQ','allowfullscreen','background','max','14988zBpZlI','getX','true','pointerEvents','iframe','createElement','raycaster','969300RCzVqw','normalize','material','floor','polygonOffsetFactor','lyCameraDragging','overflow','polygonOffset','lengthSq','lazy','blendDstAlpha','min','name','__css3d_web','object','needsUpdate','CSS3DWebPanelComponent','2063680zqPsOE','fog','wrapper','dataset','removeFromParent','castShadow','setupMasks','cameraWorldPos','addTickingFunction','round','geometry','subVectors','world','11wDIGkc','removeTickingFunction','canvas','alphaPunchMeshes','distance','getAttribute','16103028Tqigky','colorWrite','viewport','crossVectors','rayIgnored','src','set','blending','206180wRAvIi','occlusionCandidates','setupOcclusionTick','filter','blendSrcAlpha','transparent','userData','getIndex','height','__alpha_punch','about:blank','rayDir','parent','150vaByIm','hidden','blendDst','blendEquation','boundingBox','41ZkZsfd','depthMaskMeshes','targetMesh','getWorldPosition','traverse','length','abs','width','push','toneMapped','wallboard','opacity','obj','destroy','loading','scale','border','__depth_mask','allow','count','style','quaternion','depthWrite','threeObject\x20is\x20null','includes','position','camera','appendChild','15YmRjLf','remove','panelWorldPos','normal','app','tickFunc','sort','meshes','217448HUjcog','auto','threeObject','100%','315HsyCzm','visible','dispose'];_0x26e0=function(){return _0x3f4b7b;};return _0x26e0();}function normalizeAssetUrl(_0x1f3a3f){const _0xe8a4c0=String(_0x1f3a3f!==null&&_0x1f3a3f!==void 0?_0x1f3a3f:'')['trim']();if(!_0xe8a4c0)return '';if(/^https?:\/\//i['test'](_0xe8a4c0))return _0xe8a4c0;if(_0xe8a4c0['startsWith']('/'))return _0xe8a4c0;return '/'+_0xe8a4c0;}function getMeshPlaneLocalSize(_0xf8236){const _0x223742=_0x4500,_0x2670c1=_0xf8236['geometry'];if(!_0x2670c1)return {'width':0x1,'height':0x1};if(!_0x2670c1[_0x223742(0x19d)])_0x2670c1['computeBoundingBox']();const _0x16c9a4=_0x2670c1[_0x223742(0x19d)];if(!_0x16c9a4)return {'width':0x1,'height':0x1};const _0x53acb3=_0x16c9a4['getSize'](new three.Vector3()),_0x3285bd=[Math[_0x223742(0x1a4)](_0x53acb3['x']),Math[_0x223742(0x1a4)](_0x53acb3['y']),Math[_0x223742(0x1a4)](_0x53acb3['z'])][_0x223742(0x1c0)]((_0x23e98e,_0x4b1251)=>_0x4b1251-_0x23e98e),_0x5c6140=Math['max'](0.0001,_0x3285bd[0x0]||0x1),_0x27ca09=Math['max'](0.0001,_0x3285bd[0x1]||_0x5c6140);return {'width':_0x5c6140,'height':_0x27ca09};}function getMeshLocalNormal(_0x1d2487){const _0x5f3d5c=_0x4500,_0x959c11=_0x1d2487[_0x5f3d5c(0x1f8)];if(!_0x959c11)return new three.Vector3(0x0,0x0,0x1);const _0x1decb8=_0x959c11[_0x5f3d5c(0x200)](_0x5f3d5c(0x1bd));if(_0x1decb8&&_0x1decb8[_0x5f3d5c(0x1b1)]>0x0){const _0x5de081=new three.Vector3(),_0x35d7fc=new three.Vector3();for(let _0x3fc6ed=0x0;_0x3fc6ed<_0x1decb8['count'];_0x3fc6ed++){_0x35d7fc[_0x5f3d5c(0x1d0)](_0x1decb8,_0x3fc6ed),_0x5de081[_0x5f3d5c(0x1d1)](_0x35d7fc);}if(_0x5de081[_0x5f3d5c(0x1e5)]()>1e-12)return _0x5de081['normalize']();}const _0x155b41=_0x959c11[_0x5f3d5c(0x200)](_0x5f3d5c(0x1b7));if(!_0x155b41||_0x155b41[_0x5f3d5c(0x1b1)]<0x3)return new three.Vector3(0x0,0x0,0x1);const _0x26fb0b=_0x959c11[_0x5f3d5c(0x193)](),_0x190592=new three.Vector3(),_0x539bff=new three.Vector3(),_0x27d546=new three.Vector3(),_0x33d01c=new three.Vector3(),_0x112e48=new three.Vector3(),_0x5196a2=new three.Vector3(),_0x2ddd69=new three.Vector3(),_0x119794=_0x26fb0b?Math[_0x5f3d5c(0x1e0)](_0x26fb0b['count']/0x3):Math['floor'](_0x155b41['count']/0x3);for(let _0x541a8b=0x0;_0x541a8b<_0x119794;_0x541a8b++){const _0x24b3e3=_0x26fb0b?_0x26fb0b[_0x5f3d5c(0x1d7)](_0x541a8b*0x3+0x0):_0x541a8b*0x3+0x0,_0x60689e=_0x26fb0b?_0x26fb0b['getX'](_0x541a8b*0x3+0x1):_0x541a8b*0x3+0x1,_0x47b269=_0x26fb0b?_0x26fb0b['getX'](_0x541a8b*0x3+0x2):_0x541a8b*0x3+0x2;_0x190592['fromBufferAttribute'](_0x155b41,_0x24b3e3),_0x539bff['fromBufferAttribute'](_0x155b41,_0x60689e),_0x27d546[_0x5f3d5c(0x1d0)](_0x155b41,_0x47b269),_0x33d01c[_0x5f3d5c(0x1f9)](_0x539bff,_0x190592),_0x112e48[_0x5f3d5c(0x1f9)](_0x27d546,_0x190592),_0x2ddd69[_0x5f3d5c(0x204)](_0x33d01c,_0x112e48);if(_0x2ddd69[_0x5f3d5c(0x1e5)]()<1e-14)continue;_0x5196a2['add'](_0x2ddd69);}if(_0x5196a2['lengthSq']()<1e-12)return new three.Vector3(0x0,0x0,0x1);return _0x5196a2[_0x5f3d5c(0x1de)]();}function collectOcclusionMeshes(_0x3f0fb7){const _0x1d46a8=_0x4500,_0x29d8a5=[];return _0x3f0fb7[_0x1d46a8(0x1a2)](_0x3b84cc=>{const _0x4ca22f=_0x1d46a8;var _0x205664;const _0x42a05e=_0x3b84cc;if(!(_0x42a05e===null||_0x42a05e===void 0?void 0:_0x42a05e['isMesh']))return;if(!_0x3b84cc['visible'])return;if((_0x205664=_0x3b84cc[_0x4ca22f(0x20f)])===null||_0x205664===void 0?void 0:_0x205664[_0x4ca22f(0x205)])return;_0x29d8a5[_0x4ca22f(0x1a6)](_0x3b84cc);}),_0x29d8a5;}class CSS3DWebPanelComponent extends SceneComponent{get['threeObject'](){const _0x3e9d6c=_0x4500;if(!this['obj'])throw new Error(_0x3e9d6c(0x1b5));return this[_0x3e9d6c(0x1aa)];}set[_0x51d1bc(0x1c4)](_0x7a73f3){const _0x236aaa=_0x51d1bc;this['obj']=_0x7a73f3,this[_0x236aaa(0x1aa)]&&(this['obj']['userData']['LYObject']=this);}constructor(_0x176e6a,_0xd6b026,_0x3e5602,_0x33fe9a){const _0x294967=_0x51d1bc;super(_0x176e6a,_0x33fe9a),this['wrapper']=null,this[_0x294967(0x1da)]=null,this['targetMesh']=null,this[_0x294967(0x19f)]=[],this[_0x294967(0x1fe)]=[],this[_0x294967(0x1bf)]=null,this[_0x294967(0x1f5)]=new three.Vector3(),this[_0x294967(0x1bc)]=new three.Vector3(),this[_0x294967(0x197)]=new three.Vector3(),this[_0x294967(0x1dc)]=new three.Raycaster(),this[_0x294967(0x20a)]=[],this[_0x294967(0x1e9)]=_0x294967(0x1ed),this['meshes']=_0xd6b026[_0x294967(0x20c)](_0x1355b6=>!!_0x1355b6);const _0x934ba7=normalizeAssetUrl(_0x3e5602);if(!_0x934ba7||!this[_0x294967(0x1c1)][_0x294967(0x1a3)])return;this[_0x294967(0x1a0)]=this[_0x294967(0x1c1)][0x0];const _0x51e570=getMeshPlaneLocalSize(this[_0x294967(0x1a0)]),_0x23d1c4=0x4b0,_0x3fb57c=Math[_0x294967(0x1d5)](0x200,Math[_0x294967(0x1e8)](0x1000,Math[_0x294967(0x1f7)](_0x51e570[_0x294967(0x1a5)]*_0x23d1c4))),_0x3a9f82=Math[_0x294967(0x1d5)](0x200,Math[_0x294967(0x1e8)](0x1000,Math[_0x294967(0x1f7)](_0x51e570[_0x294967(0x194)]*_0x23d1c4))),_0x549c2a=document[_0x294967(0x1db)]('div');_0x549c2a['style']['width']=_0x3fb57c+'px',_0x549c2a[_0x294967(0x1b2)][_0x294967(0x194)]=_0x3a9f82+'px',_0x549c2a['style']['pointerEvents']=_0x294967(0x1c3),_0x549c2a[_0x294967(0x1b2)][_0x294967(0x1e3)]='hidden',_0x549c2a[_0x294967(0x1b2)]['background']=_0x294967(0x20e),_0x549c2a[_0x294967(0x1b2)][_0x294967(0x1cd)]='hidden',this[_0x294967(0x1f0)]=_0x549c2a;const _0x14f25a=document[_0x294967(0x1db)]('iframe');_0x14f25a[_0x294967(0x206)]=_0x934ba7,_0x14f25a[_0x294967(0x1b2)]['width']=_0x294967(0x1c5),_0x14f25a['style']['height']=_0x294967(0x1c5),_0x14f25a[_0x294967(0x1b2)][_0x294967(0x1ae)]='0',_0x14f25a[_0x294967(0x1b2)][_0x294967(0x1d4)]=_0x294967(0x20e),_0x14f25a[_0x294967(0x1b2)][_0x294967(0x1d9)]='auto',_0x14f25a[_0x294967(0x1b2)][_0x294967(0x1cd)]=_0x294967(0x19a),_0x14f25a[_0x294967(0x1ca)](_0x294967(0x1b0),'fullscreen;\x20autoplay;\x20clipboard-read;\x20clipboard-write'),_0x14f25a['setAttribute'](_0x294967(0x1d3),_0x294967(0x1d8)),_0x14f25a[_0x294967(0x1ca)](_0x294967(0x1ac),_0x294967(0x1e6)),_0x549c2a[_0x294967(0x1b9)](_0x14f25a),this[_0x294967(0x1da)]=_0x14f25a;const _0x77093b=new Addons_js.CSS3DObject(_0x549c2a);_0x77093b[_0x294967(0x1e9)]=(this[_0x294967(0x1a0)]['name']||_0x294967(0x1a8))+_0x294967(0x1ea),_0x77093b['position']['set'](0x0,0x0,0.001),_0x77093b[_0x294967(0x1b3)]['setFromUnitVectors'](new three.Vector3(0x0,0x0,0x1),getMeshLocalNormal(this[_0x294967(0x1a0)])),_0x77093b['scale']['set'](_0x51e570[_0x294967(0x1a5)]/_0x3fb57c,_0x51e570[_0x294967(0x194)]/_0x3a9f82,0x1),this[_0x294967(0x1c4)]=_0x77093b,this[_0x294967(0x1a0)][_0x294967(0x1d1)](_0x77093b),this[_0x294967(0x1f4)](),this[_0x294967(0x20a)]=collectOcclusionMeshes(this[_0x294967(0x1be)][_0x294967(0x1fa)]['scene']),this[_0x294967(0x20b)]();}[_0x51d1bc(0x1cc)](){const _0x5722da=_0x51d1bc;return new Addons_js.CSS3DObject(document[_0x5722da(0x1db)]('div'));}[_0x51d1bc(0x1f4)](){const _0x253220=_0x51d1bc;var _0x136623;for(const _0x890433 of this[_0x253220(0x1c1)]){_0x890433[_0x253220(0x1ce)]=Math[_0x253220(0x1e8)]((_0x136623=_0x890433[_0x253220(0x1ce)])!==null&&_0x136623!==void 0?_0x136623:0x0,-1e3),_0x890433[_0x253220(0x1f3)]=![],_0x890433['receiveShadow']=![];const _0x48b07b=Array[_0x253220(0x1cf)](_0x890433['material'])?_0x890433[_0x253220(0x1df)]:[_0x890433['material']];for(const _0x5d6a7c of _0x48b07b){const _0x5e5176=_0x5d6a7c;if(!_0x5e5176)continue;_0x5e5176[_0x253220(0x20e)]=!![],_0x5e5176[_0x253220(0x1a9)]=0x0,_0x5e5176[_0x253220(0x202)]=![],_0x5e5176['depthTest']=![],_0x5e5176[_0x253220(0x1b4)]=![],_0x5e5176[_0x253220(0x1ec)]=!![];}const _0x2c7013=_0x890433[_0x253220(0x1f8)];if(!_0x2c7013)continue;const _0x49e184=new three.MeshBasicMaterial({'color':0x0,'side':three.DoubleSide,'depthTest':!![],'depthWrite':!![],'transparent':![]});_0x49e184[_0x253220(0x202)]=![],_0x49e184[_0x253220(0x1a7)]=![],_0x49e184['fog']=![],_0x49e184[_0x253220(0x208)]=three.NoBlending,_0x49e184[_0x253220(0x1e4)]=!![],_0x49e184[_0x253220(0x1e1)]=-4,_0x49e184['polygonOffsetUnits']=-4;const _0x5d7feb=new three.Mesh(_0x2c7013,_0x49e184);_0x5d7feb['name']=(_0x890433['name']||_0x253220(0x1fd))+_0x253220(0x1af),_0x5d7feb[_0x253220(0x20f)]['rayIgnored']=!![],_0x5d7feb[_0x253220(0x1ce)]=Math[_0x253220(0x1e8)](_0x890433['renderOrder']-0x1,-2e3),_0x5d7feb['position'][_0x253220(0x207)](0x0,0x0,0x0),_0x5d7feb['quaternion']['set'](0x0,0x0,0x0,0x1),_0x5d7feb[_0x253220(0x1ad)][_0x253220(0x207)](0x1,0x1,0x1),_0x890433[_0x253220(0x1d1)](_0x5d7feb),this['depthMaskMeshes'][_0x253220(0x1a6)](_0x5d7feb);const _0x18af8a=new three.MeshBasicMaterial({'color':0x0,'side':three.DoubleSide,'depthTest':!![],'depthWrite':![],'transparent':!![],'opacity':0x1,'blending':three.CustomBlending});_0x18af8a[_0x253220(0x1a7)]=![],_0x18af8a[_0x253220(0x1ef)]=![],_0x18af8a[_0x253220(0x19c)]=three.AddEquation,_0x18af8a['blendSrc']=three.ZeroFactor,_0x18af8a[_0x253220(0x19b)]=three.OneFactor,_0x18af8a[_0x253220(0x20d)]=three.ZeroFactor,_0x18af8a[_0x253220(0x1e7)]=three.ZeroFactor;const _0x25d5af=new three.Mesh(_0x2c7013,_0x18af8a);_0x25d5af['name']=(_0x890433[_0x253220(0x1e9)]||'canvas')+_0x253220(0x195),_0x25d5af['userData']['rayIgnored']=!![],_0x25d5af[_0x253220(0x1ce)]=Math[_0x253220(0x1d5)](_0x890433['renderOrder']+0x3e8,0x3e8),_0x25d5af[_0x253220(0x1b7)][_0x253220(0x207)](0x0,0x0,0x0),_0x25d5af[_0x253220(0x1b3)]['set'](0x0,0x0,0x0,0x1),_0x25d5af['scale'][_0x253220(0x207)](0x1,0x1,0x1),_0x890433[_0x253220(0x1d1)](_0x25d5af),this['alphaPunchMeshes']['push'](_0x25d5af);}}[_0x51d1bc(0x20b)](){const _0x43914d=_0x51d1bc;let _0x5735c2=0x0;this['tickFunc']=_0x359f91=>{const _0x1e07cb=_0x4500;var _0x35e60d;if(!this[_0x1e07cb(0x1a0)]||!this['wrapper']||!this[_0x1e07cb(0x1da)])return;_0x5735c2+=_0x359f91;if(_0x5735c2<0.05)return;_0x5735c2=0x0;const _0x48deeb=this[_0x1e07cb(0x1be)][_0x1e07cb(0x1b8)];_0x48deeb[_0x1e07cb(0x1a1)](this['cameraWorldPos']),this[_0x1e07cb(0x1a0)][_0x1e07cb(0x1a1)](this[_0x1e07cb(0x1bc)]),this[_0x1e07cb(0x197)][_0x1e07cb(0x1f9)](this['panelWorldPos'],this[_0x1e07cb(0x1f5)]);const _0x438f43=this[_0x1e07cb(0x197)][_0x1e07cb(0x1a3)]();if(_0x438f43<=0.00001)return;this[_0x1e07cb(0x197)]['divideScalar'](_0x438f43),this[_0x1e07cb(0x1dc)]['set'](this[_0x1e07cb(0x1f5)],this[_0x1e07cb(0x197)]);const _0x10c2f7=this[_0x1e07cb(0x1dc)][_0x1e07cb(0x1c9)](this[_0x1e07cb(0x20a)],!![]);let _0x56d1b9=![];const _0x553cfb=_0x438f43-0.02;for(const _0x505a96 of _0x10c2f7){if(_0x505a96[_0x1e07cb(0x1ff)]>=_0x553cfb)break;let _0x8b2f82=_0x505a96[_0x1e07cb(0x1eb)],_0x2aaf40=!![];while(_0x8b2f82){if(!_0x8b2f82[_0x1e07cb(0x1c7)]){_0x2aaf40=![];break;}_0x8b2f82=_0x8b2f82[_0x1e07cb(0x198)];}if(!_0x2aaf40)continue;_0x8b2f82=_0x505a96[_0x1e07cb(0x1eb)];let _0x3cdafc=![];while(_0x8b2f82){if(this[_0x1e07cb(0x1c1)][_0x1e07cb(0x1b6)](_0x8b2f82)){_0x3cdafc=!![];break;}_0x8b2f82=_0x8b2f82['parent'];}if(_0x3cdafc)continue;_0x56d1b9=!![];break;}const _0x210e1b=((_0x35e60d=this[_0x1e07cb(0x1be)][_0x1e07cb(0x203)]['outer'])===null||_0x35e60d===void 0?void 0:_0x35e60d[_0x1e07cb(0x1f1)][_0x1e07cb(0x1e2)])==='1',_0x52ad54=_0x210e1b||_0x56d1b9?_0x1e07cb(0x1cb):'auto';this['wrapper'][_0x1e07cb(0x1b2)][_0x1e07cb(0x1d9)]!==_0x52ad54&&(this[_0x1e07cb(0x1f0)][_0x1e07cb(0x1b2)][_0x1e07cb(0x1d9)]=_0x52ad54),this['iframe'][_0x1e07cb(0x1b2)]['pointerEvents']!==_0x52ad54&&(this[_0x1e07cb(0x1da)]['style']['pointerEvents']=_0x52ad54);},this['app'][_0x43914d(0x1f6)](this[_0x43914d(0x1bf)]);}['destroy'](){const _0x2776a4=_0x51d1bc;this[_0x2776a4(0x1bf)]&&(this['app'][_0x2776a4(0x1fc)](this[_0x2776a4(0x1bf)]),this['tickFunc']=null);for(const _0x55d246 of this['depthMaskMeshes']){_0x55d246['removeFromParent']();const _0x5497ff=_0x55d246[_0x2776a4(0x1df)];if(Array['isArray'](_0x5497ff)){for(const _0x3912b8 of _0x5497ff)_0x3912b8===null||_0x3912b8===void 0?void 0:_0x3912b8[_0x2776a4(0x1c8)]();}else _0x5497ff===null||_0x5497ff===void 0?void 0:_0x5497ff['dispose']();}this['depthMaskMeshes'][_0x2776a4(0x1a3)]=0x0;for(const _0x4dfd4e of this[_0x2776a4(0x1fe)]){_0x4dfd4e[_0x2776a4(0x1f2)]();const _0x4e663c=_0x4dfd4e[_0x2776a4(0x1df)];if(Array[_0x2776a4(0x1cf)](_0x4e663c)){for(const _0x22df51 of _0x4e663c)_0x22df51===null||_0x22df51===void 0?void 0:_0x22df51[_0x2776a4(0x1c8)]();}else _0x4e663c===null||_0x4e663c===void 0?void 0:_0x4e663c[_0x2776a4(0x1c8)]();}this[_0x2776a4(0x1fe)][_0x2776a4(0x1a3)]=0x0,this['iframe']&&(this['iframe']['src']=_0x2776a4(0x196),this[_0x2776a4(0x1da)]=null),this['wrapper']&&(this[_0x2776a4(0x1f0)][_0x2776a4(0x1bb)](),this[_0x2776a4(0x1f0)]=null),this[_0x2776a4(0x1a0)]=null,this[_0x2776a4(0x20a)]=[],super[_0x2776a4(0x1ab)]();}}
|
|
139
139
|
|
|
140
|
-
const
|
|
140
|
+
const _0x4c38a9=_0x5f2b;(function(_0x572daa,_0x257fe1){const _0x43cc7f=_0x5f2b,_0x5d7db3=_0x572daa();while(!![]){try{const _0x140317=parseInt(_0x43cc7f(0x12e))/0x1*(parseInt(_0x43cc7f(0x116))/0x2)+parseInt(_0x43cc7f(0x111))/0x3*(-parseInt(_0x43cc7f(0x14b))/0x4)+-parseInt(_0x43cc7f(0x13f))/0x5*(-parseInt(_0x43cc7f(0x13d))/0x6)+-parseInt(_0x43cc7f(0x12a))/0x7+-parseInt(_0x43cc7f(0x122))/0x8+-parseInt(_0x43cc7f(0x119))/0x9*(parseInt(_0x43cc7f(0x132))/0xa)+parseInt(_0x43cc7f(0x11c))/0xb;if(_0x140317===_0x257fe1)break;else _0x5d7db3['push'](_0x5d7db3['shift']());}catch(_0x18e2fe){_0x5d7db3['push'](_0x5d7db3['shift']());}}}(_0xc117,0x9715e));function _0xc117(){const _0x295d2a=['_sideColor','_bevelSegments','destroy','Text','dispose','_curveSegments','_size','_color','109044Kbenbu','has','createDefaultObject','size','_fontUrl','geometry','length','Failed\x20to\x20load\x20font\x20from\x20','_text','_fontLoader','markRenderStateDirty','bevelEnabled','bevelThickness','45Xqwckd','isArray','computeBoundingBox','curveSegments','sideColor','2rTtjPb','loadFontAndRefresh','forEach','9uDTakq','bevelOffset','remove','9870707AEmdZS','LYObject','isUnlit','refreshGeometry','_bevelOffset','#ffffff','295872bPWmgZ','obj','error','_font','color','_mesh','fontUrl','_bevelEnabled','1262338SKyaQs','height','_height','updateMaterial','775235eVyVZM','_isUnlit','_group','add','7544690rJJOLt','text','get','boundingBox','material','_fontCache','world','set','bevelSegments','max','bevelSize','144RvmfYM','_bevelThickness','68120tyMEaD','viewport','_bevelSize','min'];_0xc117=function(){return _0x295d2a;};return _0xc117();}function _0x5f2b(_0x80bc8d,_0x78d75c){_0x80bc8d=_0x80bc8d-0x108;const _0xc1177f=_0xc117();let _0x5f2bdf=_0xc1177f[_0x80bc8d];return _0x5f2bdf;}class Text3DComponent extends SceneComponent{constructor(_0x18f02b,_0x56cc14,_0x231a32){const _0x221e0b=_0x5f2b;super(_0x18f02b,_0x231a32),this['_text']=_0x221e0b(0x146),this[_0x221e0b(0x108)]='https://threejs.org/examples/fonts/helvetiker_regular.typeface.json',this['_size']=0x1,this['_height']=0.2,this['_curveSegments']=0xc,this['_bevelEnabled']=![],this['_bevelThickness']=0.03,this['_bevelSize']=0.02,this[_0x221e0b(0x120)]=0x0,this[_0x221e0b(0x144)]=0x5,this[_0x221e0b(0x14a)]=_0x221e0b(0x121),this[_0x221e0b(0x143)]=_0x221e0b(0x121),this[_0x221e0b(0x12f)]=!![],this['_font']=null,this[_0x221e0b(0x127)]=null,this[_0x221e0b(0x130)]=this[_0x221e0b(0x123)];if(_0x56cc14){if(_0x56cc14[_0x221e0b(0x133)]!==undefined)this[_0x221e0b(0x10c)]=_0x56cc14[_0x221e0b(0x133)];if(_0x56cc14[_0x221e0b(0x128)]!==undefined)this[_0x221e0b(0x108)]=_0x56cc14[_0x221e0b(0x128)];if(_0x56cc14[_0x221e0b(0x14e)]!==undefined)this['_size']=_0x56cc14[_0x221e0b(0x14e)];if(_0x56cc14[_0x221e0b(0x12b)]!==undefined)this[_0x221e0b(0x12c)]=_0x56cc14[_0x221e0b(0x12b)];if(_0x56cc14['curveSegments']!==undefined)this[_0x221e0b(0x148)]=_0x56cc14[_0x221e0b(0x114)];if(_0x56cc14[_0x221e0b(0x10f)]!==undefined)this[_0x221e0b(0x129)]=_0x56cc14[_0x221e0b(0x10f)];if(_0x56cc14[_0x221e0b(0x110)]!==undefined)this[_0x221e0b(0x13e)]=_0x56cc14[_0x221e0b(0x110)];if(_0x56cc14[_0x221e0b(0x13c)]!==undefined)this[_0x221e0b(0x141)]=_0x56cc14[_0x221e0b(0x13c)];if(_0x56cc14[_0x221e0b(0x11a)]!==undefined)this[_0x221e0b(0x120)]=_0x56cc14[_0x221e0b(0x11a)];if(_0x56cc14[_0x221e0b(0x13a)]!==undefined)this[_0x221e0b(0x144)]=_0x56cc14[_0x221e0b(0x13a)];_0x56cc14[_0x221e0b(0x126)]!==undefined&&(this['_color']=_0x56cc14[_0x221e0b(0x126)],this[_0x221e0b(0x143)]=_0x56cc14['color']);if(_0x56cc14[_0x221e0b(0x115)]!==undefined)this[_0x221e0b(0x143)]=_0x56cc14[_0x221e0b(0x115)];if(_0x56cc14['isUnlit']!==undefined)this[_0x221e0b(0x12f)]=_0x56cc14[_0x221e0b(0x11e)];}this['loadFontAndRefresh']();}[_0x4c38a9(0x14d)](){return new webgpu.Group();}get[_0x4c38a9(0x133)](){const _0x45855c=_0x4c38a9;return this[_0x45855c(0x10c)];}set['text'](_0x450722){const _0x3a72b1=_0x4c38a9;this['_text']!==_0x450722&&(this[_0x3a72b1(0x10c)]=_0x450722,this['refreshGeometry']());}get[_0x4c38a9(0x126)](){return this['_color'];}set[_0x4c38a9(0x126)](_0x2da0ea){const _0x4208d9=_0x4c38a9;this[_0x4208d9(0x14a)]!==_0x2da0ea&&(this[_0x4208d9(0x14a)]=_0x2da0ea,this[_0x4208d9(0x12d)]());}get['sideColor'](){return this['_sideColor'];}set[_0x4c38a9(0x115)](_0x11cf79){const _0x315cd9=_0x4c38a9;this['_sideColor']!==_0x11cf79&&(this[_0x315cd9(0x143)]=_0x11cf79,this[_0x315cd9(0x12d)]());}get[_0x4c38a9(0x14e)](){const _0x568682=_0x4c38a9;return this[_0x568682(0x149)];}set[_0x4c38a9(0x14e)](_0x273974){const _0x4f045f=_0x4c38a9;this[_0x4f045f(0x149)]!==_0x273974&&(this[_0x4f045f(0x149)]=_0x273974,this['refreshGeometry']());}get[_0x4c38a9(0x12b)](){return this['_height'];}set[_0x4c38a9(0x12b)](_0x493b2d){const _0x48cd52=_0x4c38a9;this['_height']!==_0x493b2d&&(this['_height']=_0x493b2d,this[_0x48cd52(0x11f)]());}get[_0x4c38a9(0x128)](){const _0x230f08=_0x4c38a9;return this[_0x230f08(0x108)];}set[_0x4c38a9(0x128)](_0x326d3d){const _0x4b20b2=_0x4c38a9;this[_0x4b20b2(0x108)]!==_0x326d3d&&(this['_fontUrl']=_0x326d3d,this[_0x4b20b2(0x117)]());}async[_0x4c38a9(0x117)](){const _0xd444de=_0x4c38a9;if(Text3DComponent[_0xd444de(0x137)][_0xd444de(0x14c)](this[_0xd444de(0x108)])){this[_0xd444de(0x125)]=Text3DComponent[_0xd444de(0x137)][_0xd444de(0x134)](this[_0xd444de(0x108)]),this[_0xd444de(0x11f)]();return;}try{const _0x53da2f=await Text3DComponent[_0xd444de(0x10d)]['loadAsync'](this[_0xd444de(0x108)]);Text3DComponent[_0xd444de(0x137)][_0xd444de(0x139)](this[_0xd444de(0x108)],_0x53da2f),this[_0xd444de(0x125)]=_0x53da2f,this[_0xd444de(0x11f)]();}catch(_0xbe04aa){console[_0xd444de(0x124)](_0xd444de(0x10b)+this[_0xd444de(0x108)]+':',_0xbe04aa);}}[_0x4c38a9(0x11f)](){const _0x69ede2=_0x4c38a9;if(!this['_font'])return;if(this[_0x69ede2(0x127)]){if(this['_mesh'][_0x69ede2(0x109)])this[_0x69ede2(0x127)][_0x69ede2(0x109)][_0x69ede2(0x147)]();this[_0x69ede2(0x130)][_0x69ede2(0x11b)](this['_mesh']);}const _0x6e2ad1=new Addons_js.TextGeometry(this[_0x69ede2(0x10c)],{'font':this[_0x69ede2(0x125)],'size':this[_0x69ede2(0x149)],'depth':this['_height'],'curveSegments':this[_0x69ede2(0x148)],'bevelEnabled':this[_0x69ede2(0x129)],'bevelThickness':this[_0x69ede2(0x13e)],'bevelSize':this['_bevelSize'],'bevelOffset':this[_0x69ede2(0x120)],'bevelSegments':this[_0x69ede2(0x144)]});_0x6e2ad1[_0x69ede2(0x113)]();if(_0x6e2ad1[_0x69ede2(0x135)]){const _0x1f5e7f=-0.5*(_0x6e2ad1[_0x69ede2(0x135)][_0x69ede2(0x13b)]['x']-_0x6e2ad1[_0x69ede2(0x135)][_0x69ede2(0x142)]['x']),_0x5ee7f9=-0.5*(_0x6e2ad1[_0x69ede2(0x135)][_0x69ede2(0x13b)]['y']-_0x6e2ad1['boundingBox'][_0x69ede2(0x142)]['y']);_0x6e2ad1['translate'](_0x1f5e7f,_0x5ee7f9,0x0);}let _0x115c75;this[_0x69ede2(0x12f)]?_0x115c75=[new webgpu.MeshBasicMaterial({'color':new webgpu.Color(this[_0x69ede2(0x14a)]),'side':webgpu.DoubleSide}),new webgpu.MeshBasicMaterial({'color':new webgpu.Color(this['_sideColor']),'side':webgpu.DoubleSide})]:_0x115c75=[new webgpu.MeshStandardMaterial({'color':new webgpu.Color(this[_0x69ede2(0x14a)]),'side':webgpu.DoubleSide}),new webgpu.MeshStandardMaterial({'color':new webgpu.Color(this[_0x69ede2(0x143)]),'side':webgpu.DoubleSide})],this[_0x69ede2(0x127)]=new webgpu.Mesh(_0x6e2ad1,_0x115c75),this[_0x69ede2(0x127)]['userData'][_0x69ede2(0x11d)]=this,this[_0x69ede2(0x130)][_0x69ede2(0x131)](this[_0x69ede2(0x127)]),this[_0x69ede2(0x138)]&&this[_0x69ede2(0x138)][_0x69ede2(0x140)][_0x69ede2(0x10e)]();}[_0x4c38a9(0x12d)](){const _0x48169c=_0x4c38a9;if(!this[_0x48169c(0x127)])return;if(Array[_0x48169c(0x112)](this[_0x48169c(0x127)][_0x48169c(0x136)])){const _0x92a669=this[_0x48169c(0x127)]['material'];_0x92a669[_0x48169c(0x10a)]>=0x2&&(_0x92a669[0x0][_0x48169c(0x126)][_0x48169c(0x139)](this['_color']),_0x92a669[0x1][_0x48169c(0x126)][_0x48169c(0x139)](this[_0x48169c(0x143)]));}else {const _0x1dba49=this[_0x48169c(0x127)][_0x48169c(0x136)];_0x1dba49[_0x48169c(0x126)][_0x48169c(0x139)](this[_0x48169c(0x14a)]);}this['world']&&this[_0x48169c(0x138)][_0x48169c(0x140)][_0x48169c(0x10e)]();}[_0x4c38a9(0x145)](){const _0x31b7b0=_0x4c38a9;if(this[_0x31b7b0(0x127)]){if(this[_0x31b7b0(0x127)][_0x31b7b0(0x109)])this['_mesh']['geometry']['dispose']();Array[_0x31b7b0(0x112)](this['_mesh'][_0x31b7b0(0x136)])?this[_0x31b7b0(0x127)][_0x31b7b0(0x136)][_0x31b7b0(0x118)](_0x55f5eb=>_0x55f5eb[_0x31b7b0(0x147)]()):this['_mesh'][_0x31b7b0(0x136)][_0x31b7b0(0x147)]();}super[_0x31b7b0(0x145)]();}}Text3DComponent['_fontLoader']=new Addons_js.FontLoader(),Text3DComponent[_0x4c38a9(0x137)]=new Map();
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
const _0x211f5a=_0xdd5b;(function(_0x3da770,_0x5983cb){const _0x3a7b28=_0xdd5b,_0x59db9e=_0x3da770();while(!![]){try{const _0x1cf66a=-parseInt(_0x3a7b28(0x138))/0x1*(parseInt(_0x3a7b28(0x13b))/0x2)+-parseInt(_0x3a7b28(0x13c))/0x3*(parseInt(_0x3a7b28(0x140))/0x4)+parseInt(_0x3a7b28(0x13d))/0x5+parseInt(_0x3a7b28(0x13a))/0x6*(parseInt(_0x3a7b28(0x139))/0x7)+parseInt(_0x3a7b28(0x137))/0x8+parseInt(_0x3a7b28(0x13f))/0x9+-parseInt(_0x3a7b28(0x13e))/0xa;if(_0x1cf66a===_0x5983cb)break;else _0x59db9e['push'](_0x59db9e['shift']());}catch(_0x49d50b){_0x59db9e['push'](_0x59db9e['shift']());}}}(_0x51ed,0x7706c));function _0x51ed(){const _0x45e929=['198ZqztFh','4402260HmrfyL','14532890gKjBRm','6011370fOioPq','35504asMjGm','ScreenSpaceReflection','4600384LbPNES','19922ZsATxa','49PMbCdw','379758xUvJdn','4MFAJkc'];_0x51ed=function(){return _0x45e929;};return _0x51ed();}function _0xdd5b(_0x289bf8,_0x17f0c0){_0x289bf8=_0x289bf8-0x137;const _0x51edfe=_0x51ed();let _0xdd5b22=_0x51edfe[_0x289bf8];return _0xdd5b22;}const DefaultSSRParam={'type':exports.PostProcessStepType[_0x211f5a(0x141)],'maxDistance':0.5,'opacity':0x1,'thickness':0.015};
|
|
143
143
|
|
|
144
|
-
const
|
|
144
|
+
const _0x2014a8=_0x5a59;function _0x5a59(_0x200fa0,_0x52cb48){_0x200fa0=_0x200fa0-0x67;const _0x1606e0=_0x1606();let _0x5a59cb=_0x1606e0[_0x200fa0];return _0x5a59cb;}(function(_0x53e3bc,_0x3f5ccf){const _0x2b24ea=_0x5a59,_0xcd2101=_0x53e3bc();while(!![]){try{const _0x43ecec=parseInt(_0x2b24ea(0x73))/0x1*(parseInt(_0x2b24ea(0x69))/0x2)+parseInt(_0x2b24ea(0x6a))/0x3*(-parseInt(_0x2b24ea(0x71))/0x4)+-parseInt(_0x2b24ea(0x6f))/0x5*(-parseInt(_0x2b24ea(0x6c))/0x6)+parseInt(_0x2b24ea(0x67))/0x7+-parseInt(_0x2b24ea(0x68))/0x8*(-parseInt(_0x2b24ea(0x6d))/0x9)+parseInt(_0x2b24ea(0x72))/0xa*(-parseInt(_0x2b24ea(0x6b))/0xb)+parseInt(_0x2b24ea(0x74))/0xc*(-parseInt(_0x2b24ea(0x70))/0xd);if(_0x43ecec===_0x3f5ccf)break;else _0xcd2101['push'](_0xcd2101['shift']());}catch(_0x49e4d7){_0xcd2101['push'](_0xcd2101['shift']());}}}(_0x1606,0x98fd0));function _0x1606(){const _0x40a662=['169IApGBZ','2596nLEZfT','48990fAVYEs','3lvGprD','1201908bXzuva','Antialiasing','925225vkBqOX','8zgEOQr','276038FrhBvX','669oTHXho','1529lefZuA','6TpSWgd','9737748dcuNiQ','fxaa','5630955FenxNv'];_0x1606=function(){return _0x40a662;};return _0x1606();}const DefaultAAParams={'type':exports.PostProcessStepType[_0x2014a8(0x75)],'method':_0x2014a8(0x6e)};
|
|
145
145
|
|
|
146
|
-
const
|
|
146
|
+
const _0x32a60c=_0x20df;(function(_0x1251b3,_0x4a6712){const _0x57f8ea=_0x20df,_0x38eb5a=_0x1251b3();while(!![]){try{const _0x237ef1=parseInt(_0x57f8ea(0x1a3))/0x1*(parseInt(_0x57f8ea(0x173))/0x2)+-parseInt(_0x57f8ea(0x1a2))/0x3+-parseInt(_0x57f8ea(0x168))/0x4+parseInt(_0x57f8ea(0x174))/0x5*(parseInt(_0x57f8ea(0x18a))/0x6)+parseInt(_0x57f8ea(0x16e))/0x7*(-parseInt(_0x57f8ea(0x18d))/0x8)+parseInt(_0x57f8ea(0x1a1))/0x9+parseInt(_0x57f8ea(0x19d))/0xa*(parseInt(_0x57f8ea(0x178))/0xb);if(_0x237ef1===_0x4a6712)break;else _0x38eb5a['push'](_0x38eb5a['shift']());}catch(_0x408422){_0x38eb5a['push'](_0x38eb5a['shift']());}}}(_0x2bcf,0x65e2c));class ColliderComponent extends SceneComponent{get[_0x32a60c(0x182)](){const _0x49f991=_0x32a60c;return this[_0x49f991(0x177)];}set[_0x32a60c(0x182)](_0x456030){const _0x2708ad=_0x32a60c;var _0x25a1f9,_0xfaef6c,_0x33f675;if(this[_0x2708ad(0x177)]===_0x456030)return;this[_0x2708ad(0x177)]=_0x456030,this[_0x2708ad(0x177)]?this['enableDebug']():this[_0x2708ad(0x18e)](),(_0x33f675=(_0xfaef6c=(_0x25a1f9=this[_0x2708ad(0x17f)])===null||_0x25a1f9===void 0?void 0:_0x25a1f9[_0x2708ad(0x189)])===null||_0xfaef6c===void 0?void 0:_0xfaef6c[_0x2708ad(0x179)])===null||_0x33f675===void 0?void 0:_0x33f675['call'](_0xfaef6c);}get[_0x32a60c(0x17e)](){const _0x121c6e=_0x32a60c;return this[_0x121c6e(0x17c)];}set[_0x32a60c(0x17e)](_0x56e489){const _0x4f0fa9=_0x32a60c;this[_0x4f0fa9(0x17c)]=_0x56e489,this['_debugEnabled']&&this['onDebugStyleChanged']();}get[_0x32a60c(0x187)](){return this['_debugOpacity'];}set[_0x32a60c(0x187)](_0xb97a67){const _0x2c7841=_0x32a60c;this[_0x2c7841(0x195)]=_0xb97a67,this[_0x2c7841(0x177)]&&this[_0x2c7841(0x17d)]();}get[_0x32a60c(0x194)](){const _0x4be67d=_0x32a60c;return this[_0x4be67d(0x183)];}set['collisionEnabled'](_0x56ecfa){const _0x6dfe13=_0x32a60c;this[_0x6dfe13(0x183)]=_0x56ecfa;}get[_0x32a60c(0x16c)](){return this['_generateOverlapEvents'];}set[_0x32a60c(0x16c)](_0x90c252){const _0x583f17=_0x32a60c;this[_0x583f17(0x186)]=_0x90c252;}get[_0x32a60c(0x19b)](){const _0x325f10=_0x32a60c;return this[_0x325f10(0x17b)];}set[_0x32a60c(0x19b)](_0x6f8b4a){const _0x58ff94=_0x32a60c;this[_0x58ff94(0x17b)]=_0x6f8b4a;}get[_0x32a60c(0x18c)](){return this['_objectType'];}set['objectType'](_0xc47556){const _0x233364=_0x32a60c;this[_0x233364(0x17a)]=_0xc47556;}get[_0x32a60c(0x167)](){const _0x47b381=_0x32a60c;return this[_0x47b381(0x185)];}get[_0x32a60c(0x199)](){const _0x308863=_0x32a60c;return this[_0x308863(0x1a0)];}get[_0x32a60c(0x190)](){const _0x34bbdd=_0x32a60c;return this[_0x34bbdd(0x16f)];}constructor(_0x38d5a7,_0x4f368c){const _0x19a16a=_0x32a60c;super(_0x38d5a7,_0x4f368c),this['_collisionEnabled']=!![],this['_generateOverlapEvents']=!![],this[_0x19a16a(0x17b)]=!![],this[_0x19a16a(0x17a)]=exports.CollisionChannel[_0x19a16a(0x171)],this['_responseMap']={},this[_0x19a16a(0x185)]=new Delegate(),this[_0x19a16a(0x1a0)]=new Delegate(),this[_0x19a16a(0x16f)]=new Delegate(),this[_0x19a16a(0x192)]=![],this[_0x19a16a(0x177)]=![],this[_0x19a16a(0x17c)]=0xff00,this['_debugOpacity']=0.25,this['_debugObject']=null,this[_0x19a16a(0x197)]=_0x19a16a(0x181);}[_0x32a60c(0x198)](_0x14b81b,_0x41b5a8){const _0x57121b=_0x32a60c;this[_0x57121b(0x169)][_0x14b81b]=_0x41b5a8;}[_0x32a60c(0x165)](_0x281b23){const _0x13b2e8=_0x32a60c;this[_0x13b2e8(0x169)]=Object[_0x13b2e8(0x196)]({},_0x281b23);}['getCollisionResponse'](_0x27b152){const _0x138dd7=_0x32a60c;var _0x68fab8;return (_0x68fab8=this['_responseMap'][_0x27b152])!==null&&_0x68fab8!==void 0?_0x68fab8:exports.CollisionResponse[_0x138dd7(0x18b)];}[_0x32a60c(0x180)](_0x4ba659){const _0x4e10e6=_0x32a60c,_0x424ab8=this['getCollisionResponse'](_0x4ba659[_0x4e10e6(0x18c)]),_0x35cdb9=_0x4ba659['getCollisionResponse'](this[_0x4e10e6(0x18c)]);if(_0x424ab8===exports.CollisionResponse['Ignore']||_0x35cdb9===exports.CollisionResponse['Ignore'])return exports.CollisionResponse['Ignore'];if(_0x424ab8===exports.CollisionResponse[_0x4e10e6(0x18b)]||_0x35cdb9===exports.CollisionResponse['Block'])return exports.CollisionResponse['Block'];return exports.CollisionResponse[_0x4e10e6(0x166)];}[_0x32a60c(0x184)](_0x952f41){const _0x299ad0=_0x32a60c;super[_0x299ad0(0x184)](_0x952f41),this[_0x299ad0(0x177)]&&this[_0x299ad0(0x19a)](_0x952f41);}[_0x32a60c(0x16b)](_0x351a6b){const _0x48e4be=_0x32a60c;super['onAddedToWorld'](_0x351a6b),!this[_0x48e4be(0x192)]&&(this['world'][_0x48e4be(0x191)][_0x48e4be(0x16d)](this),this[_0x48e4be(0x192)]=!![]);}[_0x32a60c(0x19e)](){const _0x7e0960=_0x32a60c;this[_0x7e0960(0x177)]&&(this[_0x7e0960(0x18e)](),this[_0x7e0960(0x177)]=![]),this[_0x7e0960(0x192)]&&(this[_0x7e0960(0x17f)]['physics'][_0x7e0960(0x188)](this),this[_0x7e0960(0x192)]=![]),super[_0x7e0960(0x19e)]();}['getDebugAttachParent'](){const _0xc6c0c5=_0x32a60c;return this[_0xc6c0c5(0x176)];}['createDebugObject'](){return null;}[_0x32a60c(0x19f)](_0x51f7da){return;}['onDebugTick'](_0x39e521){return;}[_0x32a60c(0x17d)](){return;}['enableDebug'](){const _0x4be365=_0x32a60c;if(this[_0x4be365(0x19c)])return;const _0x2f17c8=this[_0x4be365(0x172)](),_0x363dd5=this['createDebugObject']();if(!_0x363dd5)return;this[_0x4be365(0x19c)]=_0x363dd5,_0x363dd5['traverse'](_0x44254e=>{const _0x87de04=_0x4be365;_0x44254e[_0x87de04(0x175)][_0x87de04(0x16a)]=!![];}),_0x2f17c8&&_0x2f17c8[_0x4be365(0x18f)](_0x363dd5),this[_0x4be365(0x17d)]();}[_0x32a60c(0x18e)](){const _0x443490=_0x32a60c,_0x24f1da=this[_0x443490(0x19c)];if(!_0x24f1da)return;this[_0x443490(0x19f)](_0x24f1da),_0x24f1da[_0x443490(0x193)]&&_0x24f1da[_0x443490(0x193)][_0x443490(0x170)](_0x24f1da),this['_debugObject']=null;}}function _0x20df(_0x3bb8a9,_0x3f5fca){_0x3bb8a9=_0x3bb8a9-0x165;const _0x2bcf69=_0x2bcf();let _0x20dfad=_0x2bcf69[_0x3bb8a9];return _0x20dfad;}function _0x2bcf(){const _0xad0737=['onAddedToWorld','generateOverlapEvents','registerCollider','1778HHNlIn','_onHitDelegate','remove','WorldDynamic','getDebugAttachParent','5470TRjInB','85Ecqznu','userData','threeObject','_debugEnabled','2068pdYzVI','markRenderStateDirty','_objectType','_generateHitEvents','_debugColor','onDebugStyleChanged','debugColor','world','getMutualResponse','ColliderComponent','debugEnabled','_collisionEnabled','tick','_onBeginOverlapDelegate','_generateOverlapEvents','debugOpacity','unregisterCollider','viewport','262152CDEYpi','Block','objectType','11632kCHnhO','disableDebug','add','onHitDelegate','physics','_registeredInWorld','parent','collisionEnabled','_debugOpacity','assign','name','setCollisionResponse','onEndOverlapDelegate','onDebugTick','generateHitEvents','_debugObject','2270DxlIFZ','destroy','destroyDebugObject','_onEndOverlapDelegate','1760031cpIbBS','318531nZhLBt','73CyJxYh','setCollisionResponses','Overlap','onBeginOverlapDelegate','1151348VDsCCj','_responseMap','rayIgnored'];_0x2bcf=function(){return _0xad0737;};return _0x2bcf();}
|
|
147
147
|
|
|
148
|
-
const _0x3d06af=_0x214d;function _0x227c(){const _0xe36d55=['_debugRoot','abs','_halfHeight','setCollisionResponse','set','_debugCylinder','position','material','scale','color','getWorldAABB','multiplyScalar','point','normal','_radius','copy','onDebugTick','Overlap','CapsuleColliderDebug','766970HgojIW','2477364oqtztk','_tmpBA','Pawn','makeSphereHit','raycastSphere','traverse','_debugBottom','clone','getWorldScale','sqrt','createDebugObject','192cjXPPc','getWorldPosition','add','2347fIQVjf','debugColor','_tmpNormal','name','transparent','_tmpOA','CapsuleColliderComponent','580431EmJHpZ','needsUpdate','1518255hpdGmw','sub','opacity','542ZypZlq','destroyDebugObject','dot','distance','7968016cjAEyh','halfHeight','debugOpacity','Ignore','lengthSq','31612nEYKkM','radius','90eiZDEq','onDebugStyleChanged','_tmpA','max','setHex','_debugTop'];_0x227c=function(){return _0xe36d55;};return _0x227c();}(function(_0x5ef336,_0x1b976b){const _0x438f1f=_0x214d,_0x7e62b5=_0x5ef336();while(!![]){try{const _0x4e2286=-parseInt(_0x438f1f(0x164))/0x1*(-parseInt(_0x438f1f(0x170))/0x2)+-parseInt(_0x438f1f(0x16b))/0x3+-parseInt(_0x438f1f(0x195))/0x4+parseInt(_0x438f1f(0x16d))/0x5+-parseInt(_0x438f1f(0x1a0))/0x6*(-parseInt(_0x438f1f(0x179))/0x7)+parseInt(_0x438f1f(0x174))/0x8+-parseInt(_0x438f1f(0x17b))/0x9*(parseInt(_0x438f1f(0x194))/0xa);if(_0x4e2286===_0x1b976b)break;else _0x7e62b5['push'](_0x7e62b5['shift']());}catch(_0x391d9d){_0x7e62b5['push'](_0x7e62b5['shift']());}}}(_0x227c,0x7a2be));function _0x214d(_0x587491,_0x56e8fa){_0x587491=_0x587491-0x163;const _0x227c20=_0x227c();let _0x214dad=_0x227c20[_0x587491];return _0x214dad;}class CapsuleColliderComponent extends ColliderComponent{get[_0x3d06af(0x17a)](){const _0xa30386=_0x3d06af;return this[_0xa30386(0x18f)];}get[_0x3d06af(0x175)](){const _0x28cea9=_0x3d06af;return this[_0x28cea9(0x183)];}constructor(_0x4e1254,_0x9e48f3=0.35,_0x33dba0=0.5,_0x187408){const _0x1ad8a2=_0x3d06af;super(_0x4e1254,_0x187408),this[_0x1ad8a2(0x181)]=null,this['_debugCylinder']=null,this[_0x1ad8a2(0x180)]=null,this[_0x1ad8a2(0x19b)]=null,this[_0x1ad8a2(0x17d)]=new webgpu.Vector3(),this['_tmpB']=new webgpu.Vector3(),this[_0x1ad8a2(0x196)]=new webgpu.Vector3(),this[_0x1ad8a2(0x169)]=new webgpu.Vector3(),this['_tmpPoint']=new webgpu.Vector3(),this['_tmpNormal']=new webgpu.Vector3(),this[_0x1ad8a2(0x18f)]=Math['max'](0x0,_0x9e48f3),this[_0x1ad8a2(0x183)]=Math[_0x1ad8a2(0x17e)](0x0,_0x33dba0),this['objectType']=exports.CollisionChannel[_0x1ad8a2(0x197)],this[_0x1ad8a2(0x184)](exports.CollisionChannel[_0x1ad8a2(0x197)],exports.CollisionResponse[_0x1ad8a2(0x177)]),this[_0x1ad8a2(0x184)](exports.CollisionChannel['Trigger'],exports.CollisionResponse[_0x1ad8a2(0x192)]),this[_0x1ad8a2(0x167)]=_0x1ad8a2(0x16a);}[_0x3d06af(0x18b)](_0x44079e=new webgpu.Box3()){const _0x153b3b=_0x3d06af,_0x386ff3=this[_0x153b3b(0x1a1)](),_0x3a5a07=this['getWorldScale'](),_0x5925c6=Math[_0x153b3b(0x182)](_0x3a5a07['x'])>1e-8?Math[_0x153b3b(0x182)](_0x3a5a07['x']):0x1,_0x775055=Math['abs'](_0x3a5a07['y'])>1e-8?Math[_0x153b3b(0x182)](_0x3a5a07['y']):0x1,_0x47b5d2=Math[_0x153b3b(0x182)](_0x3a5a07['z'])>1e-8?Math[_0x153b3b(0x182)](_0x3a5a07['z']):0x1,_0x2fe035=this[_0x153b3b(0x18f)]*Math[_0x153b3b(0x17e)](_0x5925c6,_0x47b5d2),_0x4418fd=this[_0x153b3b(0x183)]*_0x775055,_0x4f897a=new webgpu.Vector3(_0x386ff3['x']-_0x2fe035,_0x386ff3['y']-_0x4418fd-_0x2fe035,_0x386ff3['z']-_0x2fe035),_0x56b063=new webgpu.Vector3(_0x386ff3['x']+_0x2fe035,_0x386ff3['y']+_0x4418fd+_0x2fe035,_0x386ff3['z']+_0x2fe035);return _0x44079e[_0x153b3b(0x185)](_0x4f897a,_0x56b063),_0x44079e;}['raycast'](_0x1232fb,_0x42ef47,_0x4fbbf2){const _0x118d07=_0x3d06af;if(_0x4fbbf2<=0.000001)return null;const _0x594483=this[_0x118d07(0x1a1)](),_0x35c8df=this[_0x118d07(0x19d)](),_0x4664c1=Math[_0x118d07(0x182)](_0x35c8df['x'])>1e-8?Math[_0x118d07(0x182)](_0x35c8df['x']):0x1,_0x30ea9d=Math[_0x118d07(0x182)](_0x35c8df['y'])>1e-8?Math[_0x118d07(0x182)](_0x35c8df['y']):0x1,_0x1cc68c=Math['abs'](_0x35c8df['z'])>1e-8?Math[_0x118d07(0x182)](_0x35c8df['z']):0x1,_0x54bf64=this[_0x118d07(0x18f)]*Math[_0x118d07(0x17e)](_0x4664c1,_0x1cc68c),_0xc2e4e6=this['_halfHeight']*_0x30ea9d,_0x1ce11b=this[_0x118d07(0x17d)][_0x118d07(0x190)](_0x594483)[_0x118d07(0x163)](new webgpu.Vector3(0x0,-_0xc2e4e6,0x0)),_0x37568d=this['_tmpB'][_0x118d07(0x190)](_0x594483)['add'](new webgpu.Vector3(0x0,_0xc2e4e6,0x0)),_0x407e61=this[_0x118d07(0x196)][_0x118d07(0x190)](_0x37568d)[_0x118d07(0x16e)](_0x1ce11b),_0x244f64=this[_0x118d07(0x169)][_0x118d07(0x190)](_0x1232fb)[_0x118d07(0x16e)](_0x1ce11b),_0xac25ef=_0x407e61[_0x118d07(0x172)](_0x407e61),_0x20ba38=_0x407e61[_0x118d07(0x172)](_0x42ef47),_0x39a3c7=_0x407e61['dot'](_0x244f64),_0x5c5530=_0x42ef47[_0x118d07(0x172)](_0x244f64),_0xd16654=_0x244f64[_0x118d07(0x172)](_0x244f64),_0x29ae42=_0x54bf64*_0x54bf64,_0x4e5801=_0xac25ef-_0x20ba38*_0x20ba38,_0x15a53d=_0xac25ef*_0x5c5530-_0x39a3c7*_0x20ba38,_0xb4e116=_0xac25ef*(_0xd16654-_0x29ae42)-_0x39a3c7*_0x39a3c7;let _0x278723=Infinity,_0x894775=null,_0x3673af=null;const _0x1cac79=1e-10;if(Math[_0x118d07(0x182)](_0x4e5801)>_0x1cac79){const _0x4bb382=_0x15a53d*_0x15a53d-_0x4e5801*_0xb4e116;if(_0x4bb382>=0x0){const _0x35b29e=(-_0x15a53d-Math[_0x118d07(0x19e)](_0x4bb382))/_0x4e5801,_0x5f3770=_0x39a3c7+_0x35b29e*_0x20ba38;if(_0x35b29e>=0x0&&_0x35b29e<=_0x4fbbf2&&_0x5f3770>0x0&&_0x5f3770<_0xac25ef){_0x278723=_0x35b29e,_0x894775=this['_tmpPoint']['copy'](_0x42ef47)['multiplyScalar'](_0x35b29e)['add'](_0x1232fb);const _0x3293fa=this['_tmpNormal'][_0x118d07(0x190)](_0x407e61)[_0x118d07(0x18c)](_0x5f3770/_0xac25ef)[_0x118d07(0x163)](_0x1ce11b);_0x3673af=this[_0x118d07(0x166)][_0x118d07(0x190)](_0x894775)[_0x118d07(0x16e)](_0x3293fa);const _0x2d4ba2=_0x3673af[_0x118d07(0x178)]();_0x2d4ba2>1e-12?_0x3673af[_0x118d07(0x18c)](0x1/Math[_0x118d07(0x19e)](_0x2d4ba2)):_0x3673af[_0x118d07(0x185)](0x0,0x1,0x0);}}}const _0x1ebd1b=this[_0x118d07(0x199)](_0x1232fb,_0x42ef47,_0x4fbbf2,_0x1ce11b,_0x54bf64);_0x1ebd1b&&_0x1ebd1b[_0x118d07(0x173)]<_0x278723&&(_0x278723=_0x1ebd1b['distance'],_0x894775=_0x1ebd1b[_0x118d07(0x18d)],_0x3673af=_0x1ebd1b['normal']);const _0xb55f62=this[_0x118d07(0x199)](_0x1232fb,_0x42ef47,_0x4fbbf2,_0x37568d,_0x54bf64);_0xb55f62&&_0xb55f62['distance']<_0x278723&&(_0x278723=_0xb55f62[_0x118d07(0x173)],_0x894775=_0xb55f62[_0x118d07(0x18d)],_0x3673af=_0xb55f62[_0x118d07(0x18e)]);if(!_0x894775||!_0x3673af||!Number['isFinite'](_0x278723))return null;return {'point':_0x894775['clone'](),'normal':_0x3673af[_0x118d07(0x19c)](),'distance':_0x278723};}[_0x3d06af(0x199)](_0x2613ac,_0x48dcf9,_0x30da1c,_0x3d6f1b,_0xf86b3c){const _0x93b5b0=_0x3d06af,_0x550694=_0x2613ac[_0x93b5b0(0x19c)]()['sub'](_0x3d6f1b),_0x3ee91e=_0x550694[_0x93b5b0(0x172)](_0x48dcf9),_0x56f741=_0x550694[_0x93b5b0(0x172)](_0x550694)-_0xf86b3c*_0xf86b3c,_0x18b667=_0x3ee91e*_0x3ee91e-_0x56f741;if(_0x18b667<0x0)return null;const _0x287cfe=Math[_0x93b5b0(0x19e)](_0x18b667),_0x14849b=-_0x3ee91e-_0x287cfe;if(_0x14849b<0x0||_0x14849b>_0x30da1c){const _0xe2d3ec=-_0x3ee91e+_0x287cfe;if(_0xe2d3ec<0x0||_0xe2d3ec>_0x30da1c)return null;return this['makeSphereHit'](_0x2613ac,_0x48dcf9,_0xe2d3ec,_0x3d6f1b);}return this[_0x93b5b0(0x198)](_0x2613ac,_0x48dcf9,_0x14849b,_0x3d6f1b);}[_0x3d06af(0x198)](_0x145daa,_0xdf7514,_0x2e032e,_0x5dd65c){const _0x1c6938=_0x3d06af,_0xc7a7df=_0x145daa[_0x1c6938(0x19c)]()[_0x1c6938(0x163)](_0xdf7514[_0x1c6938(0x19c)]()[_0x1c6938(0x18c)](_0x2e032e)),_0x154f08=_0xc7a7df[_0x1c6938(0x19c)]()[_0x1c6938(0x16e)](_0x5dd65c),_0xdaa725=_0x154f08[_0x1c6938(0x178)]();return _0xdaa725>1e-12?_0x154f08[_0x1c6938(0x18c)](0x1/Math[_0x1c6938(0x19e)](_0xdaa725)):_0x154f08[_0x1c6938(0x185)](0x0,0x1,0x0),{'point':_0xc7a7df,'normal':_0x154f08,'distance':_0x2e032e};}[_0x3d06af(0x19f)](){const _0x427129=_0x3d06af,_0x99be7c=new webgpu.Object3D();_0x99be7c[_0x427129(0x167)]=_0x427129(0x193);const _0x32ce2c=new webgpu.MeshBasicMaterial({'color':this[_0x427129(0x165)],'wireframe':!![],'transparent':!![],'opacity':this[_0x427129(0x176)]}),_0x1cba19=Math['max'](0.000001,this[_0x427129(0x18f)]),_0x54e796=Math[_0x427129(0x17e)](0.000001,this['_halfHeight']*0x2),_0x5e7125=new webgpu.Mesh(new webgpu.CylinderGeometry(_0x1cba19,_0x1cba19,_0x54e796,0xc,0x1,!![]),_0x32ce2c),_0x1bc1e8=new webgpu.Mesh(new webgpu.SphereGeometry(_0x1cba19,0xc,0x8),_0x32ce2c),_0x4318e2=new webgpu.Mesh(new webgpu.SphereGeometry(_0x1cba19,0xc,0x8),_0x32ce2c);return _0x1bc1e8[_0x427129(0x187)][_0x427129(0x185)](0x0,this['_halfHeight'],0x0),_0x4318e2[_0x427129(0x187)]['set'](0x0,-this['_halfHeight'],0x0),_0x99be7c[_0x427129(0x163)](_0x5e7125),_0x99be7c[_0x427129(0x163)](_0x1bc1e8),_0x99be7c[_0x427129(0x163)](_0x4318e2),this[_0x427129(0x181)]=_0x99be7c,this['_debugCylinder']=_0x5e7125,this[_0x427129(0x180)]=_0x1bc1e8,this['_debugBottom']=_0x4318e2,this[_0x427129(0x191)](0x0),_0x99be7c;}[_0x3d06af(0x171)](_0x175685){const _0x208ef4=_0x3d06af;this['_debugRoot']=null,this[_0x208ef4(0x186)]=null,this[_0x208ef4(0x180)]=null,this[_0x208ef4(0x19b)]=null;}[_0x3d06af(0x191)](_0x5c2ffa){const _0x21a6bd=_0x3d06af,_0x123b30=this[_0x21a6bd(0x186)],_0x3db10b=this[_0x21a6bd(0x180)],_0x275946=this['_debugBottom'];if(!_0x123b30||!_0x3db10b||!_0x275946)return;const _0x8ff766=this[_0x21a6bd(0x19d)](),_0x193ec1=Math[_0x21a6bd(0x182)](_0x8ff766['x'])>1e-8?_0x8ff766['x']:0x1,_0x37ef6d=Math['abs'](_0x8ff766['y'])>1e-8?_0x8ff766['y']:0x1,_0x1f180d=Math[_0x21a6bd(0x182)](_0x8ff766['z'])>1e-8?_0x8ff766['z']:0x1,_0x119a8d=Math[_0x21a6bd(0x17e)](0.000001,this[_0x21a6bd(0x18f)])*Math[_0x21a6bd(0x17e)](Math['abs'](_0x193ec1),Math[_0x21a6bd(0x182)](_0x1f180d)),_0x4cd341=Math[_0x21a6bd(0x17e)](0x0,this[_0x21a6bd(0x183)])*Math['abs'](_0x37ef6d);_0x123b30[_0x21a6bd(0x189)][_0x21a6bd(0x185)](_0x119a8d/_0x193ec1,_0x4cd341*0x2/_0x37ef6d,_0x119a8d/_0x1f180d),_0x3db10b['scale'][_0x21a6bd(0x185)](_0x119a8d/_0x193ec1,_0x119a8d/_0x37ef6d,_0x119a8d/_0x1f180d),_0x275946['scale'][_0x21a6bd(0x185)](_0x119a8d/_0x193ec1,_0x119a8d/_0x37ef6d,_0x119a8d/_0x1f180d),_0x3db10b[_0x21a6bd(0x187)][_0x21a6bd(0x185)](0x0,_0x4cd341/_0x37ef6d,0x0),_0x275946[_0x21a6bd(0x187)]['set'](0x0,-_0x4cd341/_0x37ef6d,0x0);}[_0x3d06af(0x17c)](){const _0x66bd2a=_0x3d06af,_0x4498de=this[_0x66bd2a(0x181)];if(!_0x4498de)return;_0x4498de[_0x66bd2a(0x19a)](_0x48ca64=>{const _0x25d3a7=_0x66bd2a,_0xbe2233=_0x48ca64,_0x4b0a75=_0xbe2233[_0x25d3a7(0x188)];if(!_0x4b0a75)return;_0x4b0a75[_0x25d3a7(0x18a)][_0x25d3a7(0x17f)](this['debugColor']),_0x4b0a75[_0x25d3a7(0x16f)]=this[_0x25d3a7(0x176)],_0x4b0a75[_0x25d3a7(0x168)]=this[_0x25d3a7(0x176)]<0x1,_0x4b0a75[_0x25d3a7(0x16c)]=!![];});}}
|
|
148
|
+
const _0x5465a3=_0x16e4;function _0x2eb1(){const _0x21b5be=['distance','raycastSphere','_radius','isFinite','2LaSOBY','copy','Pawn','Overlap','transparent','8BXuaGT','max','debugColor','add','_tmpOA','_halfHeight','getWorldScale','destroyDebugObject','position','sqrt','_debugBottom','objectType','name','_tmpA','traverse','needsUpdate','abs','_tmpBA','lengthSq','Ignore','_debugRoot','_debugTop','scale','dot','1562365bCXbAi','multiplyScalar','628TZbnDY','debugOpacity','88464UUYBCd','halfHeight','2661255rTpPZT','normal','1615nLODDN','set','getWorldPosition','7005690UgJykU','makeSphereHit','_tmpB','Trigger','_tmpPoint','setHex','151401agopgK','CapsuleColliderDebug','color','sub','_debugCylinder','setCollisionResponse','827421hsUBZR','clone','_tmpNormal'];_0x2eb1=function(){return _0x21b5be;};return _0x2eb1();}(function(_0x37193b,_0x37c64a){const _0xcb3a27=_0x16e4,_0x6951a=_0x37193b();while(!![]){try{const _0x437396=parseInt(_0xcb3a27(0x1af))/0x1+-parseInt(_0xcb3a27(0x1bc))/0x2*(-parseInt(_0xcb3a27(0x1b5))/0x3)+parseInt(_0xcb3a27(0x1db))/0x4*(-parseInt(_0xcb3a27(0x1e1))/0x5)+-parseInt(_0xcb3a27(0x1dd))/0x6+parseInt(_0xcb3a27(0x1d9))/0x7*(parseInt(_0xcb3a27(0x1c1))/0x8)+parseInt(_0xcb3a27(0x1df))/0x9+-parseInt(_0xcb3a27(0x1a9))/0xa;if(_0x437396===_0x37c64a)break;else _0x6951a['push'](_0x6951a['shift']());}catch(_0x2d519c){_0x6951a['push'](_0x6951a['shift']());}}}(_0x2eb1,0x2bf6a));function _0x16e4(_0x4d50ee,_0x31aa7c){_0x4d50ee=_0x4d50ee-0x1a9;const _0x2eb1b8=_0x2eb1();let _0x16e4e2=_0x2eb1b8[_0x4d50ee];return _0x16e4e2;}class CapsuleColliderComponent extends ColliderComponent{get['radius'](){const _0x59a911=_0x16e4;return this[_0x59a911(0x1ba)];}get[_0x5465a3(0x1de)](){const _0x5e0dc2=_0x5465a3;return this[_0x5e0dc2(0x1c6)];}constructor(_0x30713b,_0x43ad5e=0.35,_0x580bb1=0.5,_0x1dc6a2){const _0x4ea4cd=_0x5465a3;super(_0x30713b,_0x1dc6a2),this[_0x4ea4cd(0x1d5)]=null,this[_0x4ea4cd(0x1b3)]=null,this[_0x4ea4cd(0x1d6)]=null,this['_debugBottom']=null,this[_0x4ea4cd(0x1ce)]=new webgpu.Vector3(),this[_0x4ea4cd(0x1ab)]=new webgpu.Vector3(),this[_0x4ea4cd(0x1d2)]=new webgpu.Vector3(),this[_0x4ea4cd(0x1c5)]=new webgpu.Vector3(),this['_tmpPoint']=new webgpu.Vector3(),this[_0x4ea4cd(0x1b7)]=new webgpu.Vector3(),this['_radius']=Math[_0x4ea4cd(0x1c2)](0x0,_0x43ad5e),this[_0x4ea4cd(0x1c6)]=Math[_0x4ea4cd(0x1c2)](0x0,_0x580bb1),this[_0x4ea4cd(0x1cc)]=exports.CollisionChannel['Pawn'],this[_0x4ea4cd(0x1b4)](exports.CollisionChannel[_0x4ea4cd(0x1be)],exports.CollisionResponse[_0x4ea4cd(0x1d4)]),this[_0x4ea4cd(0x1b4)](exports.CollisionChannel[_0x4ea4cd(0x1ac)],exports.CollisionResponse[_0x4ea4cd(0x1bf)]),this[_0x4ea4cd(0x1cd)]='CapsuleColliderComponent';}['getWorldAABB'](_0x227cfe=new webgpu.Box3()){const _0x351ca7=_0x5465a3,_0x4db2e9=this['getWorldPosition'](),_0x9bd8f9=this[_0x351ca7(0x1c7)](),_0x10aab0=Math[_0x351ca7(0x1d1)](_0x9bd8f9['x'])>1e-8?Math['abs'](_0x9bd8f9['x']):0x1,_0xbf11b9=Math[_0x351ca7(0x1d1)](_0x9bd8f9['y'])>1e-8?Math[_0x351ca7(0x1d1)](_0x9bd8f9['y']):0x1,_0x51c95b=Math[_0x351ca7(0x1d1)](_0x9bd8f9['z'])>1e-8?Math[_0x351ca7(0x1d1)](_0x9bd8f9['z']):0x1,_0x3d1f88=this['_radius']*Math['max'](_0x10aab0,_0x51c95b),_0x31d2f5=this[_0x351ca7(0x1c6)]*_0xbf11b9,_0x576b83=new webgpu.Vector3(_0x4db2e9['x']-_0x3d1f88,_0x4db2e9['y']-_0x31d2f5-_0x3d1f88,_0x4db2e9['z']-_0x3d1f88),_0x6af1a5=new webgpu.Vector3(_0x4db2e9['x']+_0x3d1f88,_0x4db2e9['y']+_0x31d2f5+_0x3d1f88,_0x4db2e9['z']+_0x3d1f88);return _0x227cfe[_0x351ca7(0x1e2)](_0x576b83,_0x6af1a5),_0x227cfe;}['raycast'](_0x5a1997,_0x93895d,_0x56fe39){const _0x2e0c5d=_0x5465a3;if(_0x56fe39<=0.000001)return null;const _0x37ad42=this[_0x2e0c5d(0x1e3)](),_0x4e90da=this[_0x2e0c5d(0x1c7)](),_0x578e7b=Math[_0x2e0c5d(0x1d1)](_0x4e90da['x'])>1e-8?Math[_0x2e0c5d(0x1d1)](_0x4e90da['x']):0x1,_0x33a96a=Math[_0x2e0c5d(0x1d1)](_0x4e90da['y'])>1e-8?Math[_0x2e0c5d(0x1d1)](_0x4e90da['y']):0x1,_0x2dbc03=Math[_0x2e0c5d(0x1d1)](_0x4e90da['z'])>1e-8?Math[_0x2e0c5d(0x1d1)](_0x4e90da['z']):0x1,_0x11cac3=this[_0x2e0c5d(0x1ba)]*Math[_0x2e0c5d(0x1c2)](_0x578e7b,_0x2dbc03),_0x2d8014=this['_halfHeight']*_0x33a96a,_0x119d6e=this['_tmpA'][_0x2e0c5d(0x1bd)](_0x37ad42)['add'](new webgpu.Vector3(0x0,-_0x2d8014,0x0)),_0x5484e5=this[_0x2e0c5d(0x1ab)][_0x2e0c5d(0x1bd)](_0x37ad42)[_0x2e0c5d(0x1c4)](new webgpu.Vector3(0x0,_0x2d8014,0x0)),_0x46eda4=this[_0x2e0c5d(0x1d2)][_0x2e0c5d(0x1bd)](_0x5484e5)[_0x2e0c5d(0x1b2)](_0x119d6e),_0x3b79ab=this[_0x2e0c5d(0x1c5)]['copy'](_0x5a1997)[_0x2e0c5d(0x1b2)](_0x119d6e),_0x29b296=_0x46eda4[_0x2e0c5d(0x1d8)](_0x46eda4),_0x1f7b17=_0x46eda4[_0x2e0c5d(0x1d8)](_0x93895d),_0x389c4c=_0x46eda4['dot'](_0x3b79ab),_0x513dd5=_0x93895d[_0x2e0c5d(0x1d8)](_0x3b79ab),_0x39599c=_0x3b79ab[_0x2e0c5d(0x1d8)](_0x3b79ab),_0xf36828=_0x11cac3*_0x11cac3,_0x3d0541=_0x29b296-_0x1f7b17*_0x1f7b17,_0x42f52c=_0x29b296*_0x513dd5-_0x389c4c*_0x1f7b17,_0x58cb2d=_0x29b296*(_0x39599c-_0xf36828)-_0x389c4c*_0x389c4c;let _0x247d27=Infinity,_0x5067a0=null,_0x157834=null;const _0x10ff28=1e-10;if(Math[_0x2e0c5d(0x1d1)](_0x3d0541)>_0x10ff28){const _0x3bbfa2=_0x42f52c*_0x42f52c-_0x3d0541*_0x58cb2d;if(_0x3bbfa2>=0x0){const _0x4870da=(-_0x42f52c-Math['sqrt'](_0x3bbfa2))/_0x3d0541,_0x4f7112=_0x389c4c+_0x4870da*_0x1f7b17;if(_0x4870da>=0x0&&_0x4870da<=_0x56fe39&&_0x4f7112>0x0&&_0x4f7112<_0x29b296){_0x247d27=_0x4870da,_0x5067a0=this[_0x2e0c5d(0x1ad)]['copy'](_0x93895d)[_0x2e0c5d(0x1da)](_0x4870da)[_0x2e0c5d(0x1c4)](_0x5a1997);const _0x5a271c=this[_0x2e0c5d(0x1b7)][_0x2e0c5d(0x1bd)](_0x46eda4)['multiplyScalar'](_0x4f7112/_0x29b296)[_0x2e0c5d(0x1c4)](_0x119d6e);_0x157834=this[_0x2e0c5d(0x1b7)][_0x2e0c5d(0x1bd)](_0x5067a0)[_0x2e0c5d(0x1b2)](_0x5a271c);const _0x476c1c=_0x157834[_0x2e0c5d(0x1d3)]();_0x476c1c>1e-12?_0x157834[_0x2e0c5d(0x1da)](0x1/Math[_0x2e0c5d(0x1ca)](_0x476c1c)):_0x157834[_0x2e0c5d(0x1e2)](0x0,0x1,0x0);}}}const _0x22315c=this[_0x2e0c5d(0x1b9)](_0x5a1997,_0x93895d,_0x56fe39,_0x119d6e,_0x11cac3);_0x22315c&&_0x22315c['distance']<_0x247d27&&(_0x247d27=_0x22315c[_0x2e0c5d(0x1b8)],_0x5067a0=_0x22315c['point'],_0x157834=_0x22315c[_0x2e0c5d(0x1e0)]);const _0x29f71b=this[_0x2e0c5d(0x1b9)](_0x5a1997,_0x93895d,_0x56fe39,_0x5484e5,_0x11cac3);_0x29f71b&&_0x29f71b[_0x2e0c5d(0x1b8)]<_0x247d27&&(_0x247d27=_0x29f71b[_0x2e0c5d(0x1b8)],_0x5067a0=_0x29f71b['point'],_0x157834=_0x29f71b['normal']);if(!_0x5067a0||!_0x157834||!Number[_0x2e0c5d(0x1bb)](_0x247d27))return null;return {'point':_0x5067a0['clone'](),'normal':_0x157834[_0x2e0c5d(0x1b6)](),'distance':_0x247d27};}[_0x5465a3(0x1b9)](_0x5b0c93,_0xc56b69,_0x1e67a1,_0x4659e2,_0xfbe077){const _0x7f1601=_0x5465a3,_0x2237c1=_0x5b0c93[_0x7f1601(0x1b6)]()[_0x7f1601(0x1b2)](_0x4659e2),_0x4a16a0=_0x2237c1[_0x7f1601(0x1d8)](_0xc56b69),_0xedcf9b=_0x2237c1[_0x7f1601(0x1d8)](_0x2237c1)-_0xfbe077*_0xfbe077,_0x2f2b7c=_0x4a16a0*_0x4a16a0-_0xedcf9b;if(_0x2f2b7c<0x0)return null;const _0x26628d=Math[_0x7f1601(0x1ca)](_0x2f2b7c),_0x232dcc=-_0x4a16a0-_0x26628d;if(_0x232dcc<0x0||_0x232dcc>_0x1e67a1){const _0x449ca7=-_0x4a16a0+_0x26628d;if(_0x449ca7<0x0||_0x449ca7>_0x1e67a1)return null;return this[_0x7f1601(0x1aa)](_0x5b0c93,_0xc56b69,_0x449ca7,_0x4659e2);}return this[_0x7f1601(0x1aa)](_0x5b0c93,_0xc56b69,_0x232dcc,_0x4659e2);}[_0x5465a3(0x1aa)](_0x302d33,_0x4421d7,_0x3e33fb,_0x2b19bc){const _0x27d769=_0x5465a3,_0x5dc529=_0x302d33[_0x27d769(0x1b6)]()[_0x27d769(0x1c4)](_0x4421d7[_0x27d769(0x1b6)]()['multiplyScalar'](_0x3e33fb)),_0x58a816=_0x5dc529[_0x27d769(0x1b6)]()[_0x27d769(0x1b2)](_0x2b19bc),_0x44d4ed=_0x58a816['lengthSq']();return _0x44d4ed>1e-12?_0x58a816[_0x27d769(0x1da)](0x1/Math['sqrt'](_0x44d4ed)):_0x58a816[_0x27d769(0x1e2)](0x0,0x1,0x0),{'point':_0x5dc529,'normal':_0x58a816,'distance':_0x3e33fb};}['createDebugObject'](){const _0x318807=_0x5465a3,_0x1c0bc8=new webgpu.Object3D();_0x1c0bc8[_0x318807(0x1cd)]=_0x318807(0x1b0);const _0xe446de=new webgpu.MeshBasicMaterial({'color':this[_0x318807(0x1c3)],'wireframe':!![],'transparent':!![],'opacity':this[_0x318807(0x1dc)]}),_0x321b38=Math[_0x318807(0x1c2)](0.000001,this[_0x318807(0x1ba)]),_0x7ad38d=Math[_0x318807(0x1c2)](0.000001,this[_0x318807(0x1c6)]*0x2),_0x222367=new webgpu.Mesh(new webgpu.CylinderGeometry(_0x321b38,_0x321b38,_0x7ad38d,0xc,0x1,!![]),_0xe446de),_0x13e576=new webgpu.Mesh(new webgpu.SphereGeometry(_0x321b38,0xc,0x8),_0xe446de),_0x451324=new webgpu.Mesh(new webgpu.SphereGeometry(_0x321b38,0xc,0x8),_0xe446de);return _0x13e576[_0x318807(0x1c9)]['set'](0x0,this[_0x318807(0x1c6)],0x0),_0x451324['position'][_0x318807(0x1e2)](0x0,-this[_0x318807(0x1c6)],0x0),_0x1c0bc8[_0x318807(0x1c4)](_0x222367),_0x1c0bc8[_0x318807(0x1c4)](_0x13e576),_0x1c0bc8['add'](_0x451324),this[_0x318807(0x1d5)]=_0x1c0bc8,this[_0x318807(0x1b3)]=_0x222367,this[_0x318807(0x1d6)]=_0x13e576,this['_debugBottom']=_0x451324,this['onDebugTick'](0x0),_0x1c0bc8;}[_0x5465a3(0x1c8)](_0x36a3e3){const _0x7c8511=_0x5465a3;this['_debugRoot']=null,this[_0x7c8511(0x1b3)]=null,this[_0x7c8511(0x1d6)]=null,this[_0x7c8511(0x1cb)]=null;}['onDebugTick'](_0x3a5e8a){const _0x1193d1=_0x5465a3,_0x2833d8=this['_debugCylinder'],_0x1d8819=this[_0x1193d1(0x1d6)],_0x34afdf=this[_0x1193d1(0x1cb)];if(!_0x2833d8||!_0x1d8819||!_0x34afdf)return;const _0x45e7ea=this[_0x1193d1(0x1c7)](),_0x579908=Math[_0x1193d1(0x1d1)](_0x45e7ea['x'])>1e-8?_0x45e7ea['x']:0x1,_0x39d6b1=Math['abs'](_0x45e7ea['y'])>1e-8?_0x45e7ea['y']:0x1,_0x1282a0=Math[_0x1193d1(0x1d1)](_0x45e7ea['z'])>1e-8?_0x45e7ea['z']:0x1,_0x2ab1ce=Math[_0x1193d1(0x1c2)](0.000001,this[_0x1193d1(0x1ba)])*Math[_0x1193d1(0x1c2)](Math[_0x1193d1(0x1d1)](_0x579908),Math[_0x1193d1(0x1d1)](_0x1282a0)),_0x561998=Math[_0x1193d1(0x1c2)](0x0,this[_0x1193d1(0x1c6)])*Math[_0x1193d1(0x1d1)](_0x39d6b1);_0x2833d8[_0x1193d1(0x1d7)][_0x1193d1(0x1e2)](_0x2ab1ce/_0x579908,_0x561998*0x2/_0x39d6b1,_0x2ab1ce/_0x1282a0),_0x1d8819[_0x1193d1(0x1d7)][_0x1193d1(0x1e2)](_0x2ab1ce/_0x579908,_0x2ab1ce/_0x39d6b1,_0x2ab1ce/_0x1282a0),_0x34afdf[_0x1193d1(0x1d7)][_0x1193d1(0x1e2)](_0x2ab1ce/_0x579908,_0x2ab1ce/_0x39d6b1,_0x2ab1ce/_0x1282a0),_0x1d8819[_0x1193d1(0x1c9)][_0x1193d1(0x1e2)](0x0,_0x561998/_0x39d6b1,0x0),_0x34afdf[_0x1193d1(0x1c9)][_0x1193d1(0x1e2)](0x0,-_0x561998/_0x39d6b1,0x0);}['onDebugStyleChanged'](){const _0x18c209=_0x5465a3,_0x38d117=this[_0x18c209(0x1d5)];if(!_0x38d117)return;_0x38d117[_0x18c209(0x1cf)](_0x4e2d94=>{const _0x2d040b=_0x18c209,_0x492713=_0x4e2d94,_0xa26782=_0x492713['material'];if(!_0xa26782)return;_0xa26782[_0x2d040b(0x1b1)][_0x2d040b(0x1ae)](this['debugColor']),_0xa26782['opacity']=this[_0x2d040b(0x1dc)],_0xa26782[_0x2d040b(0x1c0)]=this[_0x2d040b(0x1dc)]<0x1,_0xa26782[_0x2d040b(0x1d0)]=!![];});}}
|
|
149
149
|
|
|
150
|
-
const _0x27daab=_0x5c52;(function(_0x1fc24a,_0x34c5dc){const _0x265c64=_0x5c52,_0x2d0243=_0x1fc24a();while(!![]){try{const _0x962996=-parseInt(_0x265c64(0x18c))/0x1+-parseInt(_0x265c64(0x19f))/0x2*(-parseInt(_0x265c64(0x157))/0x3)+-parseInt(_0x265c64(0x15a))/0x4+-parseInt(_0x265c64(0x148))/0x5+-parseInt(_0x265c64(0x165))/0x6+parseInt(_0x265c64(0x1a3))/0x7*(-parseInt(_0x265c64(0x185))/0x8)+parseInt(_0x265c64(0x194))/0x9;if(_0x962996===_0x34c5dc)break;else _0x2d0243['push'](_0x2d0243['shift']());}catch(_0x31acbc){_0x2d0243['push'](_0x2d0243['shift']());}}}(_0x1d65,0xbcb78));function _0x1d65(){const _0xc558a6=['invert','onMouseDown','left','Pawn','lyCameraDragging','code','setRotation','height','onClick','possess','clamp','blocking','visible','parentActor','copy','landToGround','YXZ','includes','onBlur','setFromEuler','length','_moveDown','sub','applyQuaternion','Ignore','_verticalVelocity','button','_clickMarker','3252960PDGGET','onRawClickDelegate','clientY','ArrowDown','inputFilter','constructRootComponent','physics','setPosition','unpossess','eyeHeight','atan2','exitPointerLock','add','_moveLeft','app','1786485ZDuyPA','ArrowRight','KeyS','4855164ItdWSS','preventDefault','getPosition','clientX','point','lengthSq','gravity','outer','onPointerLockChangeDelegate','remove','direction','3446328iALWSo','ShiftRight','clone','setFromAxisAngle','Visibility','lineTraceMulti','max','lineTraceSingle','ray','onKeyDownDelegate','_yaw','setCameraDraggingState','setFromCamera','onPointerDownDelegate','onMouseMove','onContextMenuDelegate','distance','onPointerLockChange','asin','find','normal','multiply','enableGravity','ArrowUp','Space','multiplyScalar','normalize','rotation','syncRotation','movementY','camera','isClickEnabled','16DjTYAE','halfHeight','near','pointerLockElement','_targetPos','updateCameraFromPawn','canvas','1061229BnQydq','onKeyDown','KeyA','_isRightDragging','_moveForward','_pitch','KeyW','collider','38901663nvNidb','viewport','ArrowLeft','movementX','dataset','radius','setQuaternion','onMouseUp','world','_moveUp','getQuaternion','2MaDPia','KeyD','_moveRight','getTargetCameraState','2257213IPIZLH','controller','threeObject','onKeyUpDelegate','onPointerMoveDelegate','moveSpeed','position','rootComponent','onKeyUp','onContextMenu','onWindowBlurDelegate','ShiftLeft','_moveBackward','getBoundingClientRect','enabled','lookSpeed'];_0x1d65=function(){return _0xc558a6;};return _0x1d65();}function _0x5c52(_0x4cee55,_0x293469){_0x4cee55=_0x4cee55-0x11f;const _0x1d65cf=_0x1d65();let _0x5c528f=_0x1d65cf[_0x4cee55];return _0x5c528f;}class FirstPerson extends Pawn{constructor(_0x29489f){const _0x1996ca=_0x5c52;super(_0x29489f),this[_0x1996ca(0x121)]=0xa,this[_0x1996ca(0x12b)]=0.002,this[_0x1996ca(0x17b)]=!![],this['gravity']=0x1e,this[_0x1996ca(0x151)]=0.7,this[_0x1996ca(0x145)]=0x0,this['_yaw']=0x0,this[_0x1996ca(0x191)]=0x0,this[_0x1996ca(0x189)]=null,this[_0x1996ca(0x147)]=null,this[_0x1996ca(0x190)]=![],this['_moveBackward']=![],this[_0x1996ca(0x155)]=![],this[_0x1996ca(0x1a1)]=![],this[_0x1996ca(0x19d)]=![],this[_0x1996ca(0x141)]=![],this['_isRightDragging']=![],this[_0x1996ca(0x125)]=_0x902d60=>{const _0x1958e0=_0x1996ca;if(!Pawn[_0x1958e0(0x14c)]())return;_0x902d60[_0x1958e0(0x15b)]();},this['onBlur']=()=>{const _0x5ab52a=_0x1996ca;this[_0x5ab52a(0x190)]=![],this[_0x5ab52a(0x128)]=![],this[_0x5ab52a(0x155)]=![],this['_moveRight']=![],this[_0x5ab52a(0x19d)]=![],this[_0x5ab52a(0x141)]=![],this['_isRightDragging']=![],this[_0x5ab52a(0x170)](![]);},this[_0x1996ca(0x12d)]=_0x5bae2e=>{const _0x23d71e=_0x1996ca;if(!this['enabled']||!Pawn[_0x23d71e(0x14c)]())return;if(_0x5bae2e[_0x23d71e(0x146)]!==0x2)return;this[_0x23d71e(0x18f)]=!![],this[_0x23d71e(0x170)](!![]);const _0x3a5bc8=this[_0x23d71e(0x156)][_0x23d71e(0x195)][_0x23d71e(0x18b)];_0x3a5bc8&&document[_0x23d71e(0x188)]!==_0x3a5bc8&&_0x3a5bc8['requestPointerLock']();},this['onMouseUp']=_0x31883c=>{const _0xa40428=_0x1996ca;if(_0x31883c[_0xa40428(0x146)]!==0x2)return;this[_0xa40428(0x18f)]=![],this[_0xa40428(0x170)](![]),document[_0xa40428(0x188)]===this['app'][_0xa40428(0x195)][_0xa40428(0x18b)]&&document['exitPointerLock']();},this[_0x1996ca(0x134)]=_0x4642a6=>{const _0x15cbe7=_0x1996ca;if(!this[_0x15cbe7(0x12a)]||!Pawn[_0x15cbe7(0x14c)]())return;if(_0x4642a6['button']!==0x0)return;const _0x262bef=this[_0x15cbe7(0x156)][_0x15cbe7(0x195)][_0x15cbe7(0x18b)];if(!_0x262bef||!this[_0x15cbe7(0x183)])return;const _0x8de29e=_0x262bef[_0x15cbe7(0x129)](),_0x5af52e=new webgpu.Vector2((_0x4642a6[_0x15cbe7(0x15d)]-_0x8de29e[_0x15cbe7(0x12e)])/_0x8de29e['width']*0x2-0x1,-((_0x4642a6[_0x15cbe7(0x14a)]-_0x8de29e['top'])/_0x8de29e[_0x15cbe7(0x133)])*0x2+0x1),_0x1e8ad0=new webgpu.Raycaster();_0x1e8ad0[_0x15cbe7(0x171)](_0x5af52e,this[_0x15cbe7(0x183)]);const _0x5474d8=_0x1e8ad0[_0x15cbe7(0x16d)]['origin'][_0x15cbe7(0x167)](),_0x207081=_0x5474d8[_0x15cbe7(0x167)]()[_0x15cbe7(0x154)](_0x1e8ad0[_0x15cbe7(0x16d)][_0x15cbe7(0x164)][_0x15cbe7(0x167)]()['multiplyScalar'](0x3e8)),_0x5d9b4c=this[_0x15cbe7(0x123)]instanceof CapsuleColliderComponent?this[_0x15cbe7(0x123)]:undefined,_0xaa8248=this[_0x15cbe7(0x156)][_0x15cbe7(0x19c)][_0x15cbe7(0x14e)][_0x15cbe7(0x16a)](_0x5474d8,_0x207081,exports.CollisionChannel[_0x15cbe7(0x12f)],_0x5d9b4c);let _0x15afbd=null;for(const _0xf1e672 of _0xaa8248){if(!_0xf1e672['blocking'])continue;if(this[_0x15cbe7(0x183)]instanceof webgpu.PerspectiveCamera){if(_0xf1e672[_0x15cbe7(0x175)]<this[_0x15cbe7(0x183)][_0x15cbe7(0x187)]*1.5)continue;}const _0x49e28d=_0xf1e672[_0x15cbe7(0x193)],_0x4c568f=_0x49e28d&&(_0x49e28d[_0x15cbe7(0x184)]||_0x49e28d[_0x15cbe7(0x139)]&&_0x49e28d[_0x15cbe7(0x139)][_0x15cbe7(0x184)]),_0x363629=_0xf1e672[_0x15cbe7(0x179)]['y']>0.5;if(!_0x363629&&!_0x4c568f){let _0x3c436f=0.5;this[_0x15cbe7(0x183)]instanceof webgpu.PerspectiveCamera&&(_0x3c436f=this['camera'][_0x15cbe7(0x187)]*0x2);if(_0xf1e672[_0x15cbe7(0x175)]>_0x3c436f)break;continue;}_0x15afbd=_0xf1e672;break;}if(_0x15afbd){const _0x60617a=_0x15afbd[_0x15cbe7(0x193)];if(_0x60617a){if(_0x60617a[_0x15cbe7(0x184)])return;if(_0x60617a[_0x15cbe7(0x139)]&&_0x60617a[_0x15cbe7(0x139)][_0x15cbe7(0x184)])return;}_0x15afbd[_0x15cbe7(0x179)]['y']>0.5&&(this[_0x15cbe7(0x189)]=_0x15afbd[_0x15cbe7(0x15e)][_0x15cbe7(0x167)](),this[_0x15cbe7(0x147)]&&(this['_clickMarker'][_0x15cbe7(0x122)][_0x15cbe7(0x13a)](this[_0x15cbe7(0x189)]),this[_0x15cbe7(0x147)][_0x15cbe7(0x138)]=!![]));}},this[_0x1996ca(0x176)]=()=>{},this[_0x1996ca(0x173)]=_0x14bbf6=>{const _0x4af4a1=_0x1996ca,_0x42641a=(_0x14bbf6['buttons']&0x2)===0x2;if(_0x42641a&&!this['_isRightDragging'])this[_0x4af4a1(0x18f)]=!![],this[_0x4af4a1(0x170)](!![]);else !_0x42641a&&this[_0x4af4a1(0x18f)]&&(this[_0x4af4a1(0x18f)]=![],this[_0x4af4a1(0x170)](![]));if(document['pointerLockElement']!==this[_0x4af4a1(0x156)]['viewport'][_0x4af4a1(0x18b)]&&!_0x42641a)return;if(!this[_0x4af4a1(0x12a)]||!Pawn[_0x4af4a1(0x14c)]())return;const _0x14d6ad=_0x14bbf6[_0x4af4a1(0x197)]||0x0,_0x105715=_0x14bbf6[_0x4af4a1(0x182)]||0x0;this[_0x4af4a1(0x181)](),this[_0x4af4a1(0x16f)]-=_0x14d6ad*this[_0x4af4a1(0x12b)],this[_0x4af4a1(0x191)]-=_0x105715*this[_0x4af4a1(0x12b)];const _0x2aee68=Math['PI']/0x2;this[_0x4af4a1(0x191)]=webgpu.MathUtils[_0x4af4a1(0x136)](this[_0x4af4a1(0x191)],-_0x2aee68+0.001,_0x2aee68-0.001);const _0x154d2a=new webgpu.Quaternion()['setFromAxisAngle'](new webgpu.Vector3(0x0,0x1,0x0),this[_0x4af4a1(0x16f)]);super[_0x4af4a1(0x19a)](_0x154d2a),this[_0x4af4a1(0x18a)]();},this[_0x1996ca(0x18d)]=_0x1e35f7=>{const _0x2916b8=_0x1996ca;if(!Pawn[_0x2916b8(0x14c)]())return;if([_0x2916b8(0x17c),_0x2916b8(0x192),'ArrowLeft',_0x2916b8(0x18e),_0x2916b8(0x14b),_0x2916b8(0x159),_0x2916b8(0x158),_0x2916b8(0x1a0)][_0x2916b8(0x13d)](_0x1e35f7[_0x2916b8(0x131)])){this['_targetPos']=null;if(this[_0x2916b8(0x147)])this[_0x2916b8(0x147)][_0x2916b8(0x138)]=![];}switch(_0x1e35f7[_0x2916b8(0x131)]){case _0x2916b8(0x17c):case _0x2916b8(0x192):this['_moveForward']=!![];break;case 'ArrowLeft':case 'KeyA':this['_moveLeft']=!![];break;case 'ArrowDown':case _0x2916b8(0x159):this[_0x2916b8(0x128)]=!![];break;case _0x2916b8(0x158):case 'KeyD':this[_0x2916b8(0x1a1)]=!![];break;case _0x2916b8(0x17d):!this[_0x2916b8(0x17b)]&&(this[_0x2916b8(0x19d)]=!![]);break;case _0x2916b8(0x127):case _0x2916b8(0x166):this['_moveDown']=!![];break;}},this['onKeyUp']=_0x1158b1=>{const _0x543d4f=_0x1996ca;switch(_0x1158b1['code']){case 'ArrowUp':case _0x543d4f(0x192):this[_0x543d4f(0x190)]=![];break;case _0x543d4f(0x196):case _0x543d4f(0x18e):this['_moveLeft']=![];break;case _0x543d4f(0x14b):case _0x543d4f(0x159):this[_0x543d4f(0x128)]=![];break;case _0x543d4f(0x158):case _0x543d4f(0x1a0):this[_0x543d4f(0x1a1)]=![];break;case 'Space':this[_0x543d4f(0x19d)]=![];break;case _0x543d4f(0x127):case _0x543d4f(0x166):this[_0x543d4f(0x141)]=![];break;}};}[_0x27daab(0x14d)](){const _0x5e2345=_0x27daab,_0x514512=new CapsuleColliderComponent(this[_0x5e2345(0x156)],0.35,0.55);return _0x514512['objectType']=exports.CollisionChannel[_0x5e2345(0x12f)],_0x514512['setCollisionResponse'](exports.CollisionChannel[_0x5e2345(0x169)],exports.CollisionResponse[_0x5e2345(0x144)]),_0x514512;}[_0x27daab(0x13b)](){const _0x1658e8=_0x27daab,_0xe60d12=this[_0x1658e8(0x15c)](),_0x582922=_0xe60d12[_0x1658e8(0x167)]()[_0x1658e8(0x154)](new webgpu.Vector3(0x0,-1e3,0x0)),_0x1c4fbd=this[_0x1658e8(0x123)],_0x4db7ed=this['app'][_0x1658e8(0x19c)]['physics'][_0x1658e8(0x16c)](_0xe60d12,_0x582922,exports.CollisionChannel[_0x1658e8(0x12f)],_0x1c4fbd);if(_0x4db7ed&&_0x4db7ed['blocking']){const _0x590181=_0x1c4fbd[_0x1658e8(0x186)]+_0x1c4fbd[_0x1658e8(0x199)],_0x2a0bbd=_0x4db7ed[_0x1658e8(0x15e)]['y']+_0x590181;this[_0x1658e8(0x14f)](_0xe60d12['x'],_0x2a0bbd,_0xe60d12['z']),this[_0x1658e8(0x145)]=0x0;}}[_0x27daab(0x181)](){const _0x252575=_0x27daab,_0x22b990=this[_0x252575(0x19e)](),_0x4b2cbd=new webgpu.Vector3(0x0,0x0,-1)['applyQuaternion'](_0x22b990);this[_0x252575(0x16f)]=Math['atan2'](-_0x4b2cbd['x'],-_0x4b2cbd['z']);}[_0x27daab(0x132)](..._0x296a26){const _0x2d327d=_0x27daab,_0x197f6d=new webgpu.Quaternion();_0x296a26[_0x2d327d(0x140)]===0x1?_0x197f6d['setFromEuler'](_0x296a26[0x0]):_0x197f6d[_0x2d327d(0x13f)](new webgpu.Euler(_0x296a26[0x0],_0x296a26[0x1],_0x296a26[0x2],_0x2d327d(0x13c))),this[_0x2d327d(0x19a)](_0x197f6d);}[_0x27daab(0x19a)](..._0xd22061){const _0xe722=_0x27daab;let _0x9a4b63;_0xd22061[_0xe722(0x140)]===0x1?_0x9a4b63=_0xd22061[0x0]:_0x9a4b63=new webgpu.Quaternion(_0xd22061[0x0],_0xd22061[0x1],_0xd22061[0x2],_0xd22061[0x3]);const _0x4b7791=new webgpu.Vector3(0x0,0x0,-1)[_0xe722(0x143)](_0x9a4b63);let _0x2d5ba0=Math[_0xe722(0x177)](webgpu.MathUtils['clamp'](_0x4b7791['y'],-1,0x1));const _0x2f7ec6=Math['PI']/0x2;_0x2d5ba0=webgpu.MathUtils[_0xe722(0x136)](_0x2d5ba0,-_0x2f7ec6+0.001,_0x2f7ec6-0.001);const _0x57b6b=Math[_0xe722(0x152)](-_0x4b7791['x'],-_0x4b7791['z']);this[_0xe722(0x191)]=_0x2d5ba0,this[_0xe722(0x16f)]=_0x57b6b;const _0x3b87ed=new webgpu.Quaternion()[_0xe722(0x168)](new webgpu.Vector3(0x0,0x1,0x0),this[_0xe722(0x16f)]);super[_0xe722(0x19a)](_0x3b87ed),this['enabled']&&this[_0xe722(0x18a)]();}['possess'](){const _0x57b1fd=_0x27daab;super[_0x57b1fd(0x135)]();const _0x17eddd=this[_0x57b1fd(0x156)][_0x57b1fd(0x1a4)];_0x17eddd&&(_0x17eddd[_0x57b1fd(0x149)][_0x57b1fd(0x154)](this[_0x57b1fd(0x134)]),_0x17eddd[_0x57b1fd(0x174)]['add'](this[_0x57b1fd(0x125)]),_0x17eddd[_0x57b1fd(0x162)][_0x57b1fd(0x154)](this[_0x57b1fd(0x176)]),_0x17eddd[_0x57b1fd(0x16e)][_0x57b1fd(0x154)](this[_0x57b1fd(0x18d)]),_0x17eddd['onKeyUpDelegate'][_0x57b1fd(0x154)](this[_0x57b1fd(0x124)]),_0x17eddd[_0x57b1fd(0x120)][_0x57b1fd(0x154)](this[_0x57b1fd(0x173)]),_0x17eddd[_0x57b1fd(0x172)][_0x57b1fd(0x154)](this[_0x57b1fd(0x12d)]),_0x17eddd['onPointerUpDelegate'][_0x57b1fd(0x154)](this['onMouseUp']),_0x17eddd[_0x57b1fd(0x126)]['add'](this[_0x57b1fd(0x13e)]));this[_0x57b1fd(0x123)]&&this['rootComponent']['threeObject']&&(this[_0x57b1fd(0x123)][_0x57b1fd(0x1a5)][_0x57b1fd(0x180)]['order']=_0x57b1fd(0x13c));const _0x5b5a4d=new webgpu.SphereGeometry(0.2,0x10,0x10),_0x27be51=new webgpu.MeshBasicMaterial({'color':0xff00,'transparent':!![],'opacity':0.8});this[_0x57b1fd(0x147)]=new webgpu.Mesh(_0x5b5a4d,_0x27be51),this[_0x57b1fd(0x147)][_0x57b1fd(0x138)]=![],this[_0x57b1fd(0x156)]['world']['scene']['add'](this[_0x57b1fd(0x147)]),this['syncRotation'](),this[_0x57b1fd(0x18a)]();}[_0x27daab(0x150)](){const _0x5242b5=_0x27daab;var _0x555dd5;super[_0x5242b5(0x150)]();const _0x7ef520=this[_0x5242b5(0x156)]['controller'];_0x7ef520&&(_0x7ef520[_0x5242b5(0x149)][_0x5242b5(0x163)](this[_0x5242b5(0x134)]),_0x7ef520[_0x5242b5(0x174)][_0x5242b5(0x163)](this['onContextMenu']),_0x7ef520[_0x5242b5(0x162)]['remove'](this['onPointerLockChange']),_0x7ef520[_0x5242b5(0x16e)][_0x5242b5(0x163)](this['onKeyDown']),_0x7ef520[_0x5242b5(0x11f)]['remove'](this['onKeyUp']),_0x7ef520[_0x5242b5(0x120)][_0x5242b5(0x163)](this['onMouseMove']),_0x7ef520[_0x5242b5(0x172)][_0x5242b5(0x163)](this[_0x5242b5(0x12d)]),_0x7ef520['onPointerUpDelegate']['remove'](this[_0x5242b5(0x19b)]),_0x7ef520[_0x5242b5(0x126)]['remove'](this[_0x5242b5(0x13e)])),this[_0x5242b5(0x18f)]=![],this[_0x5242b5(0x170)](![]),this[_0x5242b5(0x147)]&&((_0x555dd5=this[_0x5242b5(0x147)]['parent'])===null||_0x555dd5===void 0?void 0:_0x555dd5[_0x5242b5(0x163)](this[_0x5242b5(0x147)]),this[_0x5242b5(0x147)]['geometry']['dispose'](),this[_0x5242b5(0x147)]['material']['dispose'](),this[_0x5242b5(0x147)]=null),document[_0x5242b5(0x188)]===this[_0x5242b5(0x156)][_0x5242b5(0x195)][_0x5242b5(0x18b)]&&document[_0x5242b5(0x153)]();}[_0x27daab(0x1a2)](){const _0x2f5c68=_0x27daab,_0x1cf57f=this[_0x2f5c68(0x15c)]();_0x1cf57f['y']+=this[_0x2f5c68(0x151)];const _0x174021=this[_0x2f5c68(0x183)]||this[_0x2f5c68(0x156)][_0x2f5c68(0x183)],_0x3de1ac=this[_0x2f5c68(0x19e)](),_0x43192c=new webgpu.Quaternion()['setFromAxisAngle'](new webgpu.Vector3(0x1,0x0,0x0),this['_pitch']),_0x40afbb=_0x3de1ac[_0x2f5c68(0x167)]()[_0x2f5c68(0x17a)](_0x43192c);if(_0x174021){const _0x6b63e2=new webgpu.Vector3(0x0,0x0,_0x174021[_0x2f5c68(0x187)])[_0x2f5c68(0x143)](_0x40afbb);_0x1cf57f[_0x2f5c68(0x154)](_0x6b63e2);}return {'position':_0x1cf57f,'quaternion':_0x40afbb};}[_0x27daab(0x170)](_0x43ff31){const _0x25f7e9=_0x27daab,_0x2611c4=this[_0x25f7e9(0x156)][_0x25f7e9(0x195)][_0x25f7e9(0x161)];if(!_0x2611c4)return;_0x43ff31?_0x2611c4[_0x25f7e9(0x198)]['lyCameraDragging']='1':delete _0x2611c4[_0x25f7e9(0x198)][_0x25f7e9(0x130)];}['tick'](_0x374a48){const _0x38b131=_0x27daab;if(!this[_0x38b131(0x12a)])return;const _0x2c3185=this[_0x38b131(0x121)]*_0x374a48,_0x2b4865=new webgpu.Vector3();if(this['_moveForward'])_0x2b4865['z']-=0x1;if(this[_0x38b131(0x128)])_0x2b4865['z']+=0x1;if(this[_0x38b131(0x155)])_0x2b4865['x']-=0x1;if(this[_0x38b131(0x1a1)])_0x2b4865['x']+=0x1;if(this[_0x38b131(0x189)]&&_0x2b4865[_0x38b131(0x15f)]()===0x0){const _0x27afc9=this[_0x38b131(0x15c)](),_0x381cbf=this[_0x38b131(0x189)][_0x38b131(0x167)]();this[_0x38b131(0x17b)]&&(_0x381cbf['y']=_0x27afc9['y']);const _0xeb3d4d=_0x381cbf[_0x38b131(0x142)](_0x27afc9),_0x8ad315=_0xeb3d4d[_0x38b131(0x140)]();if(_0x8ad315>0.1){_0xeb3d4d[_0x38b131(0x17f)]();if(this[_0x38b131(0x17b)]){const _0x416307=this['getQuaternion']()[_0x38b131(0x12c)](),_0x2f5e0d=_0xeb3d4d[_0x38b131(0x167)]()[_0x38b131(0x143)](_0x416307);_0x2b4865[_0x38b131(0x13a)](_0x2f5e0d);}else _0x2b4865[_0x38b131(0x13a)](_0xeb3d4d);}else {this['_targetPos']=null;if(this[_0x38b131(0x147)])this['_clickMarker']['visible']=![];}}if(!this[_0x38b131(0x17b)]){if(this[_0x38b131(0x19d)])_0x2b4865['y']+=0x1;if(this[_0x38b131(0x141)])_0x2b4865['y']-=0x1;}let _0x3dd3f9=new webgpu.Vector3();if(_0x2b4865[_0x38b131(0x15f)]()>0x0){_0x2b4865[_0x38b131(0x17f)]()[_0x38b131(0x17e)](_0x2c3185);const _0xb8e75c=this[_0x38b131(0x19e)]();_0x3dd3f9=_0x2b4865[_0x38b131(0x143)](_0xb8e75c),this[_0x38b131(0x17b)]&&(_0x3dd3f9['y']=0x0,_0x3dd3f9[_0x38b131(0x15f)]()>0x0&&_0x3dd3f9[_0x38b131(0x17f)]()[_0x38b131(0x17e)](_0x2c3185));}const _0x32b15d=this[_0x38b131(0x156)][_0x38b131(0x19c)],_0x1793b8=this[_0x38b131(0x15c)](),_0x5dd21d=this[_0x38b131(0x123)]instanceof CapsuleColliderComponent?this[_0x38b131(0x123)]:null,_0x641d34=_0x5dd21d?_0x5dd21d[_0x38b131(0x199)]:0.35,_0x98dfc9=_0x5dd21d?_0x5dd21d[_0x38b131(0x186)]:0.9;if(this[_0x38b131(0x17b)]){this[_0x38b131(0x145)]-=this[_0x38b131(0x160)]*_0x374a48;const _0x29f0ad=_0x1793b8[_0x38b131(0x167)](),_0x3b9a8b=_0x98dfc9+_0x641d34+0.1,_0x45cd70=_0x32b15d[_0x38b131(0x14e)][_0x38b131(0x16a)](_0x29f0ad,_0x29f0ad[_0x38b131(0x167)]()[_0x38b131(0x154)](new webgpu.Vector3(0x0,-_0x3b9a8b,0x0)),exports.CollisionChannel[_0x38b131(0x12f)],_0x5dd21d||undefined),_0x15b29c=_0x45cd70[_0x38b131(0x178)](_0x146ea1=>_0x146ea1[_0x38b131(0x137)]);_0x15b29c&&(this[_0x38b131(0x145)]<=0x0&&(this[_0x38b131(0x145)]=Math[_0x38b131(0x16b)](0x0,this[_0x38b131(0x145)]))),_0x3dd3f9['y']+=this[_0x38b131(0x145)]*_0x374a48;}let _0x259554=_0x3dd3f9;if(_0x32b15d&&_0x32b15d['physics']&&_0x3dd3f9[_0x38b131(0x15f)]()>0.000001){const _0x222b8f=_0x1793b8[_0x38b131(0x167)](),_0x3f2927=_0x3dd3f9[_0x38b131(0x140)]()+_0x641d34+0.1,_0x3319e4=_0x222b8f['clone']()[_0x38b131(0x154)](_0x3dd3f9[_0x38b131(0x167)]()[_0x38b131(0x17f)]()[_0x38b131(0x17e)](_0x3f2927)),_0x1c333f=_0x32b15d[_0x38b131(0x14e)][_0x38b131(0x16a)](_0x222b8f,_0x3319e4,exports.CollisionChannel[_0x38b131(0x12f)],_0x5dd21d||undefined),_0x31b462=_0x1c333f[_0x38b131(0x178)](_0x2d387e=>_0x2d387e['blocking']);if(_0x31b462&&_0x31b462[_0x38b131(0x137)]){const _0x353e10=_0x31b462[_0x38b131(0x175)],_0x25e70d=Math[_0x38b131(0x16b)](0x0,_0x353e10-_0x641d34-0.001);if(_0x25e70d<_0x3dd3f9['length']()){const _0x5b5d3f=_0x3dd3f9[_0x38b131(0x167)]()[_0x38b131(0x17f)](),_0x334a05=_0x5b5d3f[_0x38b131(0x167)]()[_0x38b131(0x17e)](_0x25e70d),_0x5cc9ac=_0x3dd3f9[_0x38b131(0x167)]()['sub'](_0x334a05),_0x42e7b5=_0x31b462[_0x38b131(0x179)],_0x176865=_0x5cc9ac['dot'](_0x42e7b5);let _0x55ae30=new webgpu.Vector3();_0x176865<0x0?_0x55ae30=_0x5cc9ac[_0x38b131(0x167)]()[_0x38b131(0x142)](_0x42e7b5[_0x38b131(0x167)]()[_0x38b131(0x17e)](_0x176865)):_0x55ae30=_0x5cc9ac;const _0x507c0c=_0x55ae30[_0x38b131(0x140)]();if(_0x507c0c>0.001){const _0x4a4686=_0x222b8f[_0x38b131(0x167)]()[_0x38b131(0x154)](_0x334a05),_0x3eea43=_0x507c0c+_0x641d34+0.1,_0x3be012=_0x4a4686[_0x38b131(0x167)]()[_0x38b131(0x154)](_0x55ae30[_0x38b131(0x167)]()[_0x38b131(0x17f)]()[_0x38b131(0x17e)](_0x3eea43)),_0x543e47=_0x32b15d['physics']['lineTraceMulti'](_0x4a4686,_0x3be012,exports.CollisionChannel[_0x38b131(0x12f)],_0x5dd21d||undefined),_0x2eca67=_0x543e47[_0x38b131(0x178)](_0x5b3446=>_0x5b3446[_0x38b131(0x137)]);if(_0x2eca67&&_0x2eca67[_0x38b131(0x137)]){const _0x24affb=_0x2eca67[_0x38b131(0x175)],_0x364a44=Math[_0x38b131(0x16b)](0x0,_0x24affb-_0x641d34-0.001);_0x364a44<_0x507c0c&&_0x55ae30['normalize']()[_0x38b131(0x17e)](_0x364a44);}}_0x259554=_0x334a05[_0x38b131(0x154)](_0x55ae30);}}}_0x259554[_0x38b131(0x15f)]()>0x0&&(_0x1793b8['add'](_0x259554),this[_0x38b131(0x14f)](_0x1793b8)),this[_0x38b131(0x18a)]();}[_0x27daab(0x18a)](){const _0x199eb7=_0x27daab;if(!this[_0x199eb7(0x12a)]||!this[_0x199eb7(0x183)])return;const _0x39acf6=this[_0x199eb7(0x15c)]();_0x39acf6['y']+=this[_0x199eb7(0x151)];const _0x10d376=this[_0x199eb7(0x19e)](),_0x394df0=new webgpu.Quaternion()[_0x199eb7(0x168)](new webgpu.Vector3(0x1,0x0,0x0),this['_pitch']),_0x5c441d=_0x10d376[_0x199eb7(0x167)]()[_0x199eb7(0x17a)](_0x394df0),_0x7c5e8b=new webgpu.Vector3(0x0,0x0,this[_0x199eb7(0x183)][_0x199eb7(0x187)])[_0x199eb7(0x143)](_0x5c441d);_0x39acf6[_0x199eb7(0x154)](_0x7c5e8b),this[_0x199eb7(0x183)][_0x199eb7(0x122)][_0x199eb7(0x13a)](_0x39acf6),this['camera']['quaternion']['copy'](_0x5c441d),this[_0x199eb7(0x183)]['updateProjectionMatrix']();}}
|
|
150
|
+
const _0x478691=_0x58a2;(function(_0xd84ad1,_0x3a81cb){const _0x8d7ba9=_0x58a2,_0x1641a1=_0xd84ad1();while(!![]){try{const _0x11dbdd=parseInt(_0x8d7ba9(0x1e8))/0x1+-parseInt(_0x8d7ba9(0x192))/0x2+parseInt(_0x8d7ba9(0x1b5))/0x3+parseInt(_0x8d7ba9(0x1d4))/0x4+-parseInt(_0x8d7ba9(0x19e))/0x5*(parseInt(_0x8d7ba9(0x1af))/0x6)+parseInt(_0x8d7ba9(0x182))/0x7+parseInt(_0x8d7ba9(0x18f))/0x8;if(_0x11dbdd===_0x3a81cb)break;else _0x1641a1['push'](_0x1641a1['shift']());}catch(_0x59ae7b){_0x1641a1['push'](_0x1641a1['shift']());}}}(_0x27a4,0xea84d));function _0x27a4(){const _0x5f0384=['setFromCamera','width','pointerLockElement','clamp','setQuaternion','_yaw','button','gravity','_isRightDragging','rotation','onMouseDown','onPointerUpDelegate','onPointerMoveDelegate','onPointerLockChange','ArrowRight','KeyA','asin','onRawClickDelegate','possess','6369488bwmHzD','movementY','rootComponent','_moveLeft','lengthSq','dataset','getQuaternion','getPosition','isClickEnabled','atan2','visible','setFromAxisAngle','lineTraceMulti','enabled','_targetPos','setCameraDraggingState','buttons','onPointerDownDelegate','quaternion','_pitch','633643bMSSag','parentActor','normalize','ShiftLeft','world','getTargetCameraState','Pawn','KeyW','copy','objectType','_moveUp','_moveForward','ArrowLeft','onMouseMove','onKeyUpDelegate','setCollisionResponse','setPosition','viewport','physics','tick','YXZ','onMouseUp','updateCameraFromPawn','parent','Visibility','onKeyDownDelegate','code','top','unpossess','lineTraceSingle','origin','max','_verticalVelocity','clone','left','clientY','onWindowBlurDelegate','5233088noaDly','_clickMarker','moveSpeed','ArrowDown','syncRotation','radius','outer','lyCameraDragging','distance','clientX','normal','_moveRight','near','10802112XBYhzF','Space','onContextMenu','3538666NFsPMl','length','lookSpeed','sub','KeyD','eyeHeight','onKeyUp','ray','onContextMenuDelegate','KeyS','canvas','_moveDown','18670sfzLsO','ArrowUp','exitPointerLock','dispose','multiplyScalar','direction','applyQuaternion','_moveBackward','onKeyDown','dot','multiply','onBlur','halfHeight','ShiftRight','find','remove','onClick','2742KNqqKG','blocking','invert','movementX','constructRootComponent','includes','337491HNfeRk','app','inputFilter','requestPointerLock','point','add','collider','onPointerLockChangeDelegate','camera','enableGravity','order','position'];_0x27a4=function(){return _0x5f0384;};return _0x27a4();}function _0x58a2(_0x50248b,_0xd74555){_0x50248b=_0x50248b-0x171;const _0x27a4d9=_0x27a4();let _0x58a2ff=_0x27a4d9[_0x50248b];return _0x58a2ff;}class FirstPerson extends Pawn{constructor(_0x4e90f6){const _0x2ee919=_0x58a2;super(_0x4e90f6),this[_0x2ee919(0x184)]=0xa,this[_0x2ee919(0x194)]=0.002,this[_0x2ee919(0x1be)]=!![],this['gravity']=0x1e,this['eyeHeight']=0.7,this[_0x2ee919(0x17d)]=0x0,this['_yaw']=0x0,this[_0x2ee919(0x1e7)]=0x0,this[_0x2ee919(0x1e2)]=null,this[_0x2ee919(0x183)]=null,this[_0x2ee919(0x1f3)]=![],this[_0x2ee919(0x1a5)]=![],this['_moveLeft']=![],this[_0x2ee919(0x18d)]=![],this[_0x2ee919(0x1f2)]=![],this[_0x2ee919(0x19d)]=![],this[_0x2ee919(0x1c9)]=![],this['onContextMenu']=_0x30043f=>{const _0xeeacc9=_0x2ee919;if(!Pawn[_0xeeacc9(0x1b7)]())return;_0x30043f['preventDefault']();},this['onBlur']=()=>{const _0x2b2e41=_0x2ee919;this[_0x2b2e41(0x1f3)]=![],this[_0x2b2e41(0x1a5)]=![],this[_0x2b2e41(0x1d7)]=![],this['_moveRight']=![],this[_0x2b2e41(0x1f2)]=![],this[_0x2b2e41(0x19d)]=![],this[_0x2b2e41(0x1c9)]=![],this['setCameraDraggingState'](![]);},this[_0x2ee919(0x1cb)]=_0x3483c3=>{const _0x54b775=_0x2ee919;if(!this[_0x54b775(0x1e1)]||!Pawn[_0x54b775(0x1b7)]())return;if(_0x3483c3[_0x54b775(0x1c7)]!==0x2)return;this[_0x54b775(0x1c9)]=!![],this[_0x54b775(0x1e3)](!![]);const _0x11b253=this['app'][_0x54b775(0x1f9)][_0x54b775(0x19c)];_0x11b253&&document[_0x54b775(0x1c3)]!==_0x11b253&&_0x11b253[_0x54b775(0x1b8)]();},this[_0x2ee919(0x172)]=_0x415213=>{const _0x383e54=_0x2ee919;if(_0x415213[_0x383e54(0x1c7)]!==0x2)return;this[_0x383e54(0x1c9)]=![],this[_0x383e54(0x1e3)](![]),document[_0x383e54(0x1c3)]===this[_0x383e54(0x1b6)]['viewport'][_0x383e54(0x19c)]&&document[_0x383e54(0x1a0)]();},this['onClick']=_0x5bc0e7=>{const _0xb77e1d=_0x2ee919;if(!this[_0xb77e1d(0x1e1)]||!Pawn[_0xb77e1d(0x1b7)]())return;if(_0x5bc0e7[_0xb77e1d(0x1c7)]!==0x0)return;const _0x501793=this['app'][_0xb77e1d(0x1f9)][_0xb77e1d(0x19c)];if(!_0x501793||!this['camera'])return;const _0x331fad=_0x501793['getBoundingClientRect'](),_0x18af09=new webgpu.Vector2((_0x5bc0e7[_0xb77e1d(0x18b)]-_0x331fad[_0xb77e1d(0x17f)])/_0x331fad[_0xb77e1d(0x1c2)]*0x2-0x1,-((_0x5bc0e7[_0xb77e1d(0x180)]-_0x331fad[_0xb77e1d(0x178)])/_0x331fad['height'])*0x2+0x1),_0x2169ed=new webgpu.Raycaster();_0x2169ed[_0xb77e1d(0x1c1)](_0x18af09,this[_0xb77e1d(0x1bd)]);const _0x5df337=_0x2169ed[_0xb77e1d(0x199)][_0xb77e1d(0x17b)][_0xb77e1d(0x17e)](),_0x32c91a=_0x5df337[_0xb77e1d(0x17e)]()[_0xb77e1d(0x1ba)](_0x2169ed[_0xb77e1d(0x199)][_0xb77e1d(0x1a3)][_0xb77e1d(0x17e)]()[_0xb77e1d(0x1a2)](0x3e8)),_0x2b23d9=this['rootComponent']instanceof CapsuleColliderComponent?this[_0xb77e1d(0x1d6)]:undefined,_0x54f87a=this['app']['world'][_0xb77e1d(0x1fa)][_0xb77e1d(0x1e0)](_0x5df337,_0x32c91a,exports.CollisionChannel[_0xb77e1d(0x1ee)],_0x2b23d9);let _0x4826f1=null;for(const _0x21e9ba of _0x54f87a){if(!_0x21e9ba['blocking'])continue;if(this[_0xb77e1d(0x1bd)]instanceof webgpu.PerspectiveCamera){if(_0x21e9ba[_0xb77e1d(0x18a)]<this['camera'][_0xb77e1d(0x18e)]*1.5)continue;}const _0x41b2d0=_0x21e9ba[_0xb77e1d(0x1bb)],_0x299f3a=_0x41b2d0&&(_0x41b2d0['isClickEnabled']||_0x41b2d0[_0xb77e1d(0x1e9)]&&_0x41b2d0[_0xb77e1d(0x1e9)][_0xb77e1d(0x1dc)]),_0x398758=_0x21e9ba[_0xb77e1d(0x18c)]['y']>0.5;if(!_0x398758&&!_0x299f3a){let _0x1182ce=0.5;this['camera']instanceof webgpu.PerspectiveCamera&&(_0x1182ce=this[_0xb77e1d(0x1bd)]['near']*0x2);if(_0x21e9ba['distance']>_0x1182ce)break;continue;}_0x4826f1=_0x21e9ba;break;}if(_0x4826f1){const _0x419889=_0x4826f1[_0xb77e1d(0x1bb)];if(_0x419889){if(_0x419889[_0xb77e1d(0x1dc)])return;if(_0x419889['parentActor']&&_0x419889['parentActor'][_0xb77e1d(0x1dc)])return;}_0x4826f1[_0xb77e1d(0x18c)]['y']>0.5&&(this[_0xb77e1d(0x1e2)]=_0x4826f1['point'][_0xb77e1d(0x17e)](),this[_0xb77e1d(0x183)]&&(this[_0xb77e1d(0x183)][_0xb77e1d(0x1c0)][_0xb77e1d(0x1f0)](this[_0xb77e1d(0x1e2)]),this[_0xb77e1d(0x183)][_0xb77e1d(0x1de)]=!![]));}},this[_0x2ee919(0x1ce)]=()=>{},this[_0x2ee919(0x1f5)]=_0x194722=>{const _0x2697d4=_0x2ee919,_0x2c7ba9=(_0x194722[_0x2697d4(0x1e4)]&0x2)===0x2;if(_0x2c7ba9&&!this[_0x2697d4(0x1c9)])this[_0x2697d4(0x1c9)]=!![],this[_0x2697d4(0x1e3)](!![]);else !_0x2c7ba9&&this[_0x2697d4(0x1c9)]&&(this['_isRightDragging']=![],this['setCameraDraggingState'](![]));if(document['pointerLockElement']!==this[_0x2697d4(0x1b6)][_0x2697d4(0x1f9)][_0x2697d4(0x19c)]&&!_0x2c7ba9)return;if(!this['enabled']||!Pawn[_0x2697d4(0x1b7)]())return;const _0x1b569c=_0x194722[_0x2697d4(0x1b2)]||0x0,_0x242039=_0x194722[_0x2697d4(0x1d5)]||0x0;this[_0x2697d4(0x186)](),this[_0x2697d4(0x1c6)]-=_0x1b569c*this[_0x2697d4(0x194)],this['_pitch']-=_0x242039*this[_0x2697d4(0x194)];const _0x12f03a=Math['PI']/0x2;this[_0x2697d4(0x1e7)]=webgpu.MathUtils[_0x2697d4(0x1c4)](this[_0x2697d4(0x1e7)],-_0x12f03a+0.001,_0x12f03a-0.001);const _0x2c4519=new webgpu.Quaternion()[_0x2697d4(0x1df)](new webgpu.Vector3(0x0,0x1,0x0),this['_yaw']);super['setQuaternion'](_0x2c4519),this['updateCameraFromPawn']();},this[_0x2ee919(0x1a6)]=_0x17caaa=>{const _0x4ad2aa=_0x2ee919;if(!Pawn[_0x4ad2aa(0x1b7)]())return;if([_0x4ad2aa(0x19f),_0x4ad2aa(0x1ef),_0x4ad2aa(0x1f4),_0x4ad2aa(0x1d0),_0x4ad2aa(0x185),_0x4ad2aa(0x19b),_0x4ad2aa(0x1cf),_0x4ad2aa(0x196)][_0x4ad2aa(0x1b4)](_0x17caaa[_0x4ad2aa(0x177)])){this[_0x4ad2aa(0x1e2)]=null;if(this[_0x4ad2aa(0x183)])this[_0x4ad2aa(0x183)][_0x4ad2aa(0x1de)]=![];}switch(_0x17caaa['code']){case _0x4ad2aa(0x19f):case _0x4ad2aa(0x1ef):this[_0x4ad2aa(0x1f3)]=!![];break;case _0x4ad2aa(0x1f4):case _0x4ad2aa(0x1d0):this[_0x4ad2aa(0x1d7)]=!![];break;case _0x4ad2aa(0x185):case _0x4ad2aa(0x19b):this[_0x4ad2aa(0x1a5)]=!![];break;case _0x4ad2aa(0x1cf):case _0x4ad2aa(0x196):this[_0x4ad2aa(0x18d)]=!![];break;case _0x4ad2aa(0x190):!this[_0x4ad2aa(0x1be)]&&(this[_0x4ad2aa(0x1f2)]=!![]);break;case _0x4ad2aa(0x1eb):case _0x4ad2aa(0x1ab):this[_0x4ad2aa(0x19d)]=!![];break;}},this[_0x2ee919(0x198)]=_0x2f1c49=>{const _0x1a0b7d=_0x2ee919;switch(_0x2f1c49[_0x1a0b7d(0x177)]){case _0x1a0b7d(0x19f):case 'KeyW':this[_0x1a0b7d(0x1f3)]=![];break;case 'ArrowLeft':case 'KeyA':this[_0x1a0b7d(0x1d7)]=![];break;case _0x1a0b7d(0x185):case _0x1a0b7d(0x19b):this['_moveBackward']=![];break;case _0x1a0b7d(0x1cf):case _0x1a0b7d(0x196):this[_0x1a0b7d(0x18d)]=![];break;case 'Space':this[_0x1a0b7d(0x1f2)]=![];break;case _0x1a0b7d(0x1eb):case _0x1a0b7d(0x1ab):this[_0x1a0b7d(0x19d)]=![];break;}};}[_0x478691(0x1b3)](){const _0x37dba2=_0x478691,_0x3bf715=new CapsuleColliderComponent(this['app'],0.35,0.55);return _0x3bf715[_0x37dba2(0x1f1)]=exports.CollisionChannel['Pawn'],_0x3bf715[_0x37dba2(0x1f7)](exports.CollisionChannel[_0x37dba2(0x175)],exports.CollisionResponse['Ignore']),_0x3bf715;}['landToGround'](){const _0x5bd36e=_0x478691,_0x4663b2=this[_0x5bd36e(0x1db)](),_0x1a3b75=_0x4663b2[_0x5bd36e(0x17e)]()[_0x5bd36e(0x1ba)](new webgpu.Vector3(0x0,-1e3,0x0)),_0x321d08=this[_0x5bd36e(0x1d6)],_0x38f9c1=this[_0x5bd36e(0x1b6)]['world'][_0x5bd36e(0x1fa)][_0x5bd36e(0x17a)](_0x4663b2,_0x1a3b75,exports.CollisionChannel['Pawn'],_0x321d08);if(_0x38f9c1&&_0x38f9c1[_0x5bd36e(0x1b0)]){const _0x3ba863=_0x321d08[_0x5bd36e(0x1aa)]+_0x321d08[_0x5bd36e(0x187)],_0x4bc533=_0x38f9c1[_0x5bd36e(0x1b9)]['y']+_0x3ba863;this[_0x5bd36e(0x1f8)](_0x4663b2['x'],_0x4bc533,_0x4663b2['z']),this[_0x5bd36e(0x17d)]=0x0;}}[_0x478691(0x186)](){const _0x3e018e=_0x478691,_0x5147a5=this['getQuaternion'](),_0x461d68=new webgpu.Vector3(0x0,0x0,-1)[_0x3e018e(0x1a4)](_0x5147a5);this[_0x3e018e(0x1c6)]=Math[_0x3e018e(0x1dd)](-_0x461d68['x'],-_0x461d68['z']);}['setRotation'](..._0x5e6d7c){const _0x42c74c=_0x478691,_0x1ac14b=new webgpu.Quaternion();_0x5e6d7c[_0x42c74c(0x193)]===0x1?_0x1ac14b['setFromEuler'](_0x5e6d7c[0x0]):_0x1ac14b['setFromEuler'](new webgpu.Euler(_0x5e6d7c[0x0],_0x5e6d7c[0x1],_0x5e6d7c[0x2],_0x42c74c(0x171))),this[_0x42c74c(0x1c5)](_0x1ac14b);}[_0x478691(0x1c5)](..._0x327f35){const _0x5c7a48=_0x478691;let _0x4db7d1;_0x327f35[_0x5c7a48(0x193)]===0x1?_0x4db7d1=_0x327f35[0x0]:_0x4db7d1=new webgpu.Quaternion(_0x327f35[0x0],_0x327f35[0x1],_0x327f35[0x2],_0x327f35[0x3]);const _0x14aac7=new webgpu.Vector3(0x0,0x0,-1)['applyQuaternion'](_0x4db7d1);let _0x2a3e0a=Math[_0x5c7a48(0x1d1)](webgpu.MathUtils[_0x5c7a48(0x1c4)](_0x14aac7['y'],-1,0x1));const _0x250946=Math['PI']/0x2;_0x2a3e0a=webgpu.MathUtils[_0x5c7a48(0x1c4)](_0x2a3e0a,-_0x250946+0.001,_0x250946-0.001);const _0x5e5ea8=Math['atan2'](-_0x14aac7['x'],-_0x14aac7['z']);this[_0x5c7a48(0x1e7)]=_0x2a3e0a,this[_0x5c7a48(0x1c6)]=_0x5e5ea8;const _0x1e3f12=new webgpu.Quaternion()[_0x5c7a48(0x1df)](new webgpu.Vector3(0x0,0x1,0x0),this[_0x5c7a48(0x1c6)]);super['setQuaternion'](_0x1e3f12),this['enabled']&&this[_0x5c7a48(0x173)]();}[_0x478691(0x1d3)](){const _0x3a13c2=_0x478691;super[_0x3a13c2(0x1d3)]();const _0x14771b=this[_0x3a13c2(0x1b6)]['controller'];_0x14771b&&(_0x14771b[_0x3a13c2(0x1d2)][_0x3a13c2(0x1ba)](this['onClick']),_0x14771b['onContextMenuDelegate'][_0x3a13c2(0x1ba)](this['onContextMenu']),_0x14771b[_0x3a13c2(0x1bc)][_0x3a13c2(0x1ba)](this['onPointerLockChange']),_0x14771b[_0x3a13c2(0x176)]['add'](this['onKeyDown']),_0x14771b[_0x3a13c2(0x1f6)][_0x3a13c2(0x1ba)](this['onKeyUp']),_0x14771b[_0x3a13c2(0x1cd)][_0x3a13c2(0x1ba)](this[_0x3a13c2(0x1f5)]),_0x14771b[_0x3a13c2(0x1e5)][_0x3a13c2(0x1ba)](this[_0x3a13c2(0x1cb)]),_0x14771b[_0x3a13c2(0x1cc)]['add'](this[_0x3a13c2(0x172)]),_0x14771b[_0x3a13c2(0x181)]['add'](this[_0x3a13c2(0x1a9)])),this[_0x3a13c2(0x1d6)]&&this[_0x3a13c2(0x1d6)]['threeObject']&&(this['rootComponent']['threeObject'][_0x3a13c2(0x1ca)][_0x3a13c2(0x1bf)]=_0x3a13c2(0x171)),this[_0x3a13c2(0x186)](),this[_0x3a13c2(0x173)]();}[_0x478691(0x179)](){const _0x43b56a=_0x478691;var _0x1a3b90;super[_0x43b56a(0x179)]();const _0x5cf59a=this[_0x43b56a(0x1b6)]['controller'];_0x5cf59a&&(_0x5cf59a['onRawClickDelegate'][_0x43b56a(0x1ad)](this[_0x43b56a(0x1ae)]),_0x5cf59a[_0x43b56a(0x19a)][_0x43b56a(0x1ad)](this[_0x43b56a(0x191)]),_0x5cf59a[_0x43b56a(0x1bc)][_0x43b56a(0x1ad)](this[_0x43b56a(0x1ce)]),_0x5cf59a[_0x43b56a(0x176)][_0x43b56a(0x1ad)](this[_0x43b56a(0x1a6)]),_0x5cf59a[_0x43b56a(0x1f6)][_0x43b56a(0x1ad)](this['onKeyUp']),_0x5cf59a[_0x43b56a(0x1cd)]['remove'](this[_0x43b56a(0x1f5)]),_0x5cf59a['onPointerDownDelegate']['remove'](this[_0x43b56a(0x1cb)]),_0x5cf59a['onPointerUpDelegate']['remove'](this[_0x43b56a(0x172)]),_0x5cf59a[_0x43b56a(0x181)][_0x43b56a(0x1ad)](this[_0x43b56a(0x1a9)])),this[_0x43b56a(0x1c9)]=![],this[_0x43b56a(0x1e3)](![]),this[_0x43b56a(0x183)]&&((_0x1a3b90=this[_0x43b56a(0x183)][_0x43b56a(0x174)])===null||_0x1a3b90===void 0?void 0:_0x1a3b90[_0x43b56a(0x1ad)](this['_clickMarker']),this['_clickMarker']['geometry'][_0x43b56a(0x1a1)](),this[_0x43b56a(0x183)]['material']['dispose'](),this[_0x43b56a(0x183)]=null),document[_0x43b56a(0x1c3)]===this[_0x43b56a(0x1b6)]['viewport'][_0x43b56a(0x19c)]&&document[_0x43b56a(0x1a0)]();}[_0x478691(0x1ed)](){const _0x1f5bba=_0x478691,_0x175047=this[_0x1f5bba(0x1db)]();_0x175047['y']+=this[_0x1f5bba(0x197)];const _0x16c12c=this[_0x1f5bba(0x1bd)]||this['app'][_0x1f5bba(0x1bd)],_0x506dfd=this[_0x1f5bba(0x1da)](),_0x33532e=new webgpu.Quaternion()[_0x1f5bba(0x1df)](new webgpu.Vector3(0x1,0x0,0x0),this[_0x1f5bba(0x1e7)]),_0x29444b=_0x506dfd[_0x1f5bba(0x17e)]()['multiply'](_0x33532e);if(_0x16c12c){const _0x15f206=new webgpu.Vector3(0x0,0x0,_0x16c12c[_0x1f5bba(0x18e)])[_0x1f5bba(0x1a4)](_0x29444b);_0x175047[_0x1f5bba(0x1ba)](_0x15f206);}return {'position':_0x175047,'quaternion':_0x29444b};}[_0x478691(0x1e3)](_0x513a1f){const _0x14fe16=_0x478691,_0x540c8d=this[_0x14fe16(0x1b6)][_0x14fe16(0x1f9)][_0x14fe16(0x188)];if(!_0x540c8d)return;_0x513a1f?_0x540c8d[_0x14fe16(0x1d9)][_0x14fe16(0x189)]='1':delete _0x540c8d[_0x14fe16(0x1d9)][_0x14fe16(0x189)];}[_0x478691(0x1fb)](_0x39ba61){const _0x5f2969=_0x478691;if(!this[_0x5f2969(0x1e1)])return;const _0x90191d=this[_0x5f2969(0x184)]*_0x39ba61,_0x297c03=new webgpu.Vector3();if(this[_0x5f2969(0x1f3)])_0x297c03['z']-=0x1;if(this['_moveBackward'])_0x297c03['z']+=0x1;if(this[_0x5f2969(0x1d7)])_0x297c03['x']-=0x1;if(this[_0x5f2969(0x18d)])_0x297c03['x']+=0x1;if(this[_0x5f2969(0x1e2)]&&_0x297c03[_0x5f2969(0x1d8)]()===0x0){const _0x13dae6=this[_0x5f2969(0x1db)](),_0x31e395=this['_targetPos'][_0x5f2969(0x17e)]();this[_0x5f2969(0x1be)]&&(_0x31e395['y']=_0x13dae6['y']);const _0x5876fa=_0x31e395[_0x5f2969(0x195)](_0x13dae6),_0x272fa5=_0x5876fa[_0x5f2969(0x193)]();if(_0x272fa5>0.1){_0x5876fa[_0x5f2969(0x1ea)]();if(this[_0x5f2969(0x1be)]){const _0x283244=this[_0x5f2969(0x1da)]()[_0x5f2969(0x1b1)](),_0x2f7dac=_0x5876fa['clone']()['applyQuaternion'](_0x283244);_0x297c03['copy'](_0x2f7dac);}else _0x297c03[_0x5f2969(0x1f0)](_0x5876fa);}else {this[_0x5f2969(0x1e2)]=null;if(this[_0x5f2969(0x183)])this['_clickMarker'][_0x5f2969(0x1de)]=![];}}if(!this[_0x5f2969(0x1be)]){if(this['_moveUp'])_0x297c03['y']+=0x1;if(this[_0x5f2969(0x19d)])_0x297c03['y']-=0x1;}let _0x55e5ea=new webgpu.Vector3();if(_0x297c03[_0x5f2969(0x1d8)]()>0x0){_0x297c03[_0x5f2969(0x1ea)]()['multiplyScalar'](_0x90191d);const _0x997da5=this['getQuaternion']();_0x55e5ea=_0x297c03[_0x5f2969(0x1a4)](_0x997da5),this['enableGravity']&&(_0x55e5ea['y']=0x0,_0x55e5ea[_0x5f2969(0x1d8)]()>0x0&&_0x55e5ea[_0x5f2969(0x1ea)]()[_0x5f2969(0x1a2)](_0x90191d));}const _0x414402=this[_0x5f2969(0x1b6)][_0x5f2969(0x1ec)],_0x2a2c5=this[_0x5f2969(0x1db)](),_0x21b481=this[_0x5f2969(0x1d6)]instanceof CapsuleColliderComponent?this['rootComponent']:null,_0x3c0bfe=_0x21b481?_0x21b481[_0x5f2969(0x187)]:0.35,_0xb511ea=_0x21b481?_0x21b481['halfHeight']:0.9;if(this['enableGravity']){this[_0x5f2969(0x17d)]-=this[_0x5f2969(0x1c8)]*_0x39ba61;const _0x321b06=_0x2a2c5[_0x5f2969(0x17e)](),_0x408f40=_0xb511ea+_0x3c0bfe+0.1,_0xc1a000=_0x414402[_0x5f2969(0x1fa)][_0x5f2969(0x1e0)](_0x321b06,_0x321b06[_0x5f2969(0x17e)]()[_0x5f2969(0x1ba)](new webgpu.Vector3(0x0,-_0x408f40,0x0)),exports.CollisionChannel[_0x5f2969(0x1ee)],_0x21b481||undefined),_0x30bb2b=_0xc1a000[_0x5f2969(0x1ac)](_0x430a40=>_0x430a40['blocking']);_0x30bb2b&&(this[_0x5f2969(0x17d)]<=0x0&&(this[_0x5f2969(0x17d)]=Math[_0x5f2969(0x17c)](0x0,this['_verticalVelocity']))),_0x55e5ea['y']+=this['_verticalVelocity']*_0x39ba61;}let _0x36a9e5=_0x55e5ea;if(_0x414402&&_0x414402[_0x5f2969(0x1fa)]&&_0x55e5ea[_0x5f2969(0x1d8)]()>0.000001){const _0x695cc4=_0x2a2c5[_0x5f2969(0x17e)](),_0x2a7f8c=_0x55e5ea[_0x5f2969(0x193)]()+_0x3c0bfe+0.1,_0x2bc8cf=_0x695cc4['clone']()[_0x5f2969(0x1ba)](_0x55e5ea[_0x5f2969(0x17e)]()[_0x5f2969(0x1ea)]()[_0x5f2969(0x1a2)](_0x2a7f8c)),_0x1fd7c8=_0x414402[_0x5f2969(0x1fa)][_0x5f2969(0x1e0)](_0x695cc4,_0x2bc8cf,exports.CollisionChannel['Pawn'],_0x21b481||undefined),_0x110661=_0x1fd7c8[_0x5f2969(0x1ac)](_0x565b1d=>_0x565b1d['blocking']);if(_0x110661&&_0x110661[_0x5f2969(0x1b0)]){const _0x20e8a7=_0x110661['distance'],_0x59edd7=Math['max'](0x0,_0x20e8a7-_0x3c0bfe-0.001);if(_0x59edd7<_0x55e5ea[_0x5f2969(0x193)]()){const _0x598dc3=_0x55e5ea[_0x5f2969(0x17e)]()[_0x5f2969(0x1ea)](),_0x1633cf=_0x598dc3[_0x5f2969(0x17e)]()[_0x5f2969(0x1a2)](_0x59edd7),_0x2a424b=_0x55e5ea[_0x5f2969(0x17e)]()[_0x5f2969(0x195)](_0x1633cf),_0x1ef2c5=_0x110661['normal'],_0x3c0ae6=_0x2a424b[_0x5f2969(0x1a7)](_0x1ef2c5);let _0x36712a=new webgpu.Vector3();_0x3c0ae6<0x0?_0x36712a=_0x2a424b[_0x5f2969(0x17e)]()[_0x5f2969(0x195)](_0x1ef2c5['clone']()['multiplyScalar'](_0x3c0ae6)):_0x36712a=_0x2a424b;const _0x3b645e=_0x36712a[_0x5f2969(0x193)]();if(_0x3b645e>0.001){const _0x1184e1=_0x695cc4[_0x5f2969(0x17e)]()['add'](_0x1633cf),_0x3a1b22=_0x3b645e+_0x3c0bfe+0.1,_0x16de83=_0x1184e1[_0x5f2969(0x17e)]()[_0x5f2969(0x1ba)](_0x36712a[_0x5f2969(0x17e)]()[_0x5f2969(0x1ea)]()[_0x5f2969(0x1a2)](_0x3a1b22)),_0x353951=_0x414402[_0x5f2969(0x1fa)]['lineTraceMulti'](_0x1184e1,_0x16de83,exports.CollisionChannel['Pawn'],_0x21b481||undefined),_0x487f64=_0x353951['find'](_0x27705f=>_0x27705f[_0x5f2969(0x1b0)]);if(_0x487f64&&_0x487f64[_0x5f2969(0x1b0)]){const _0x57a17d=_0x487f64['distance'],_0x40fd8c=Math['max'](0x0,_0x57a17d-_0x3c0bfe-0.001);_0x40fd8c<_0x3b645e&&_0x36712a[_0x5f2969(0x1ea)]()[_0x5f2969(0x1a2)](_0x40fd8c);}}_0x36a9e5=_0x1633cf[_0x5f2969(0x1ba)](_0x36712a);}}}_0x36a9e5[_0x5f2969(0x1d8)]()>0x0&&(_0x2a2c5[_0x5f2969(0x1ba)](_0x36a9e5),this[_0x5f2969(0x1f8)](_0x2a2c5)),this[_0x5f2969(0x173)]();}['updateCameraFromPawn'](){const _0x11fc4c=_0x478691;if(!this['enabled']||!this[_0x11fc4c(0x1bd)])return;const _0x2ed94c=this[_0x11fc4c(0x1db)]();_0x2ed94c['y']+=this[_0x11fc4c(0x197)];const _0x70feba=this[_0x11fc4c(0x1da)](),_0xd7b89f=new webgpu.Quaternion()[_0x11fc4c(0x1df)](new webgpu.Vector3(0x1,0x0,0x0),this[_0x11fc4c(0x1e7)]),_0xf6b5e4=_0x70feba['clone']()[_0x11fc4c(0x1a8)](_0xd7b89f),_0x44740e=new webgpu.Vector3(0x0,0x0,this['camera']['near'])['applyQuaternion'](_0xf6b5e4);_0x2ed94c[_0x11fc4c(0x1ba)](_0x44740e),this['camera'][_0x11fc4c(0x1c0)][_0x11fc4c(0x1f0)](_0x2ed94c),this[_0x11fc4c(0x1bd)][_0x11fc4c(0x1e6)]['copy'](_0xf6b5e4),this[_0x11fc4c(0x1bd)]['updateProjectionMatrix']();}}
|
|
151
151
|
|
|
152
|
-
const
|
|
152
|
+
const _0x168857=_0x5db9;(function(_0x5634b3,_0x4c4fcd){const _0x432bcd=_0x5db9,_0x41a4a=_0x5634b3();while(!![]){try{const _0x4f54f6=-parseInt(_0x432bcd(0x1d5))/0x1+-parseInt(_0x432bcd(0x1eb))/0x2+-parseInt(_0x432bcd(0x1d0))/0x3*(parseInt(_0x432bcd(0x1e4))/0x4)+parseInt(_0x432bcd(0x1dd))/0x5*(parseInt(_0x432bcd(0x1e7))/0x6)+parseInt(_0x432bcd(0x1e5))/0x7*(parseInt(_0x432bcd(0x1e9))/0x8)+parseInt(_0x432bcd(0x1f1))/0x9+parseInt(_0x432bcd(0x1d8))/0xa*(parseInt(_0x432bcd(0x1d1))/0xb);if(_0x4f54f6===_0x4c4fcd)break;else _0x41a4a['push'](_0x41a4a['shift']());}catch(_0x373d18){_0x41a4a['push'](_0x41a4a['shift']());}}}(_0x5e0d,0xecfea));function _0x5db9(_0x311a52,_0x23e66a){_0x311a52=_0x311a52-0x1d0;const _0x5e0d9a=_0x5e0d();let _0x5db9ed=_0x5e0d9a[_0x311a52];return _0x5db9ed;}class Spectator extends Pawn{constructor(_0x133185){const _0x3d711b=_0x5db9;super(_0x133185),this[_0x3d711b(0x1e3)]=0xa,this[_0x3d711b(0x1d6)]=0.002,this[_0x3d711b(0x1e8)]=0.7;}[_0x168857(0x1da)](){const _0xf392e8=_0x168857;return new SceneComponent(this[_0xf392e8(0x1de)]);}[_0x168857(0x1d4)](){const _0x4a2499=_0x168857;super['possess'](),this[_0x4a2499(0x1ed)]&&this[_0x4a2499(0x1ed)][_0x4a2499(0x1ef)]&&(this[_0x4a2499(0x1ed)][_0x4a2499(0x1ef)][_0x4a2499(0x1e2)]['order']=_0x4a2499(0x1d3)),this[_0x4a2499(0x1db)]();}[_0x168857(0x1e0)](){const _0x1068ea=_0x168857;super[_0x1068ea(0x1e0)](),document[_0x1068ea(0x1dc)]===this[_0x1068ea(0x1de)][_0x1068ea(0x1d7)][_0x1068ea(0x1f3)]&&document[_0x1068ea(0x1e1)]();}[_0x168857(0x1e6)](){const _0x41f175=_0x168857,_0x5ded39=this[_0x41f175(0x1f2)]();return _0x5ded39['y']+=this[_0x41f175(0x1e8)],{'position':_0x5ded39,'quaternion':this[_0x41f175(0x1d2)]()[_0x41f175(0x1ea)]()};}[_0x168857(0x1df)](_0x33a0d0){const _0x3721df=_0x168857;if(!this[_0x3721df(0x1ec)])return;this['updateCameraFromPawn']();}[_0x168857(0x1db)](){const _0x5ca4c8=_0x168857;if(!this[_0x5ca4c8(0x1ec)]||!this[_0x5ca4c8(0x1f0)])return;const _0x454168=this[_0x5ca4c8(0x1f2)]();_0x454168['y']+=this['eyeHeight'],this[_0x5ca4c8(0x1f0)]['position']['copy'](_0x454168),this[_0x5ca4c8(0x1f0)]['rotation'][_0x5ca4c8(0x1ee)](this[_0x5ca4c8(0x1d9)]());}}function _0x5e0d(){const _0x5eff9e=['moveSpeed','401948rbGBua','119yHKWXw','getTargetCameraState','48JLuZaY','eyeHeight','346392xjsPOZ','clone','1054804lZFuZf','enabled','rootComponent','copy','threeObject','camera','16736850BnjdhK','getPosition','canvas','51wjkiRk','290807eShiMg','getQuaternion','YXZ','possess','1103204tjnArX','lookSpeed','viewport','20wCdCdr','getRotation','constructRootComponent','updateCameraFromPawn','pointerLockElement','1038130WHsWEQ','app','tick','unpossess','exitPointerLock','rotation'];_0x5e0d=function(){return _0x5eff9e;};return _0x5e0d();}
|
|
153
153
|
|
|
154
|
-
const
|
|
154
|
+
const _0x28dd4d=_0x1002;(function(_0x52b3fa,_0x176f22){const _0x37270b=_0x1002,_0x2bb203=_0x52b3fa();while(!![]){try{const _0x591e1d=parseInt(_0x37270b(0xa5))/0x1*(parseInt(_0x37270b(0xcb))/0x2)+parseInt(_0x37270b(0xac))/0x3+-parseInt(_0x37270b(0x91))/0x4+parseInt(_0x37270b(0xa1))/0x5+parseInt(_0x37270b(0xad))/0x6+parseInt(_0x37270b(0xd3))/0x7*(parseInt(_0x37270b(0xa2))/0x8)+parseInt(_0x37270b(0xd6))/0x9*(-parseInt(_0x37270b(0xdc))/0xa);if(_0x591e1d===_0x176f22)break;else _0x2bb203['push'](_0x2bb203['shift']());}catch(_0x4868d7){_0x2bb203['push'](_0x2bb203['shift']());}}}(_0xa635,0xac0e3));function _0x1002(_0x4958b2,_0x46f25b){_0x4958b2=_0x4958b2-0x8d;const _0xa635b9=_0xa635();let _0x1002f1=_0xa635b9[_0x4958b2];return _0x1002f1;}function _0xa635(){const _0x49d8f2=['getMode','clone','translationSnap','get','dispose','onObjectChangeEvent','onDraggingChanged','matrixWorld','dragging-changed','getTargetScene','showY','helperObject','getRotationnSnap','onDraggingFunction','enable','remove','scene','TransformHelperObject','refresh','multiply','setMode','setRotationSnap','rotationSnap','detach','world','position','onDraggingChangedEvent','updateMatrixWorld','clear','843468VGmMPv','gizmoScene','setTarget','attach','getTargetCameraState','quaternion','add','invert','9579829EZQIqN','forEach','addEventListener','179523aOIWVd','possess','setSpace','objectChange','setAxis','removeEventListener','1590VibRvz','camera','targetMatrixMap','isTickEnabled','rayIgnored','targets','getMatrixInWorld','viewPort','onChange','838016eGnnas','onTransforming','name','control','unpossess','getHelper','destroy','TransformGizmo:Canvas\x20not\x20found','primaryTarget','_control','includes','onObjectChanged','value','markRenderStateDirty','scale','showZ','5734745ysRNrp','8tRJzqx','getTranslationSnap','setSize','1bdPPdC','setTranslationSnap','decompose','onUpdateFunction','onChangeEvent','setScaleSnap','controller','1815078EZZVxh','3261360bvwiYB'];_0xa635=function(){return _0x49d8f2;};return _0xa635();}class TransformGizmo extends Pawn{get['control'](){const _0x3520d0=_0x1002;if(!this['_control'])throw new Error('Control\x20not\x20initialized');return this[_0x3520d0(0x9a)];}constructor(_0x52e922,_0x581b5b){const _0x46b9b8=_0x1002;var _0x3b39c2;super(_0x52e922),this[_0x46b9b8(0x9a)]=null,this['helperObject']=new webgpu.Object3D(),this[_0x46b9b8(0x8d)]=[],this[_0x46b9b8(0x99)]=null,this[_0x46b9b8(0xde)]=new Map(),this[_0x46b9b8(0xcc)]=null,this[_0x46b9b8(0xc8)]=_0x2b8274=>{this['onDraggingChanged'](_0x2b8274);},this[_0x46b9b8(0xb3)]=()=>{const _0x4959a6=_0x46b9b8;this[_0x4959a6(0x9c)]();},this[_0x46b9b8(0xa9)]=()=>{const _0x4c9f29=_0x46b9b8;this[_0x4c9f29(0x90)]();},this[_0x46b9b8(0xa8)]=null,this[_0x46b9b8(0xbb)]=null;let _0x50198a=_0x52e922['viewport']['canvas'];if(!_0x50198a)throw new Error(_0x46b9b8(0x98));this[_0x46b9b8(0x9a)]=new TransformControls_js.TransformControls(_0x52e922[_0x46b9b8(0xdd)],_0x50198a),this[_0x46b9b8(0x94)][_0x46b9b8(0x96)]()['traverse'](_0x200a74=>{const _0x36c4c4=_0x46b9b8;_0x200a74['userData'][_0x36c4c4(0xe0)]=!![];}),this[_0x46b9b8(0xb9)][_0x46b9b8(0x93)]=_0x46b9b8(0xbf),this[_0x46b9b8(0xcc)]=(_0x3b39c2=_0x581b5b===null||_0x581b5b===void 0?void 0:_0x581b5b['helperScene'])!==null&&_0x3b39c2!==void 0?_0x3b39c2:null;}['getTargetScene'](){const _0x3f9877=_0x1002;var _0x47b948;return (_0x47b948=this[_0x3f9877(0xcc)])!==null&&_0x47b948!==void 0?_0x47b948:this[_0x3f9877(0xab)][_0x3f9877(0xc6)][_0x3f9877(0xbe)];}[_0x28dd4d(0xd7)](){const _0x7d8d3e=_0x28dd4d,_0x58a1a9=this[_0x7d8d3e(0xb7)]();_0x58a1a9['add'](this[_0x7d8d3e(0xb9)]),_0x58a1a9[_0x7d8d3e(0xd1)](this['control'][_0x7d8d3e(0x96)]()),this[_0x7d8d3e(0x94)][_0x7d8d3e(0xce)](this['helperObject']),this['control'][_0x7d8d3e(0xd5)]('change',this[_0x7d8d3e(0xa9)]),this[_0x7d8d3e(0x94)][_0x7d8d3e(0xd5)](_0x7d8d3e(0xb6),this['onDraggingChangedEvent']),this[_0x7d8d3e(0x94)][_0x7d8d3e(0xd5)](_0x7d8d3e(0xd9),this[_0x7d8d3e(0xb3)]);}[_0x28dd4d(0x95)](){const _0x5cc654=_0x28dd4d;this[_0x5cc654(0x94)][_0x5cc654(0xdb)]('change',this[_0x5cc654(0xa9)]),this[_0x5cc654(0x94)]['removeEventListener']('dragging-changed',this['onDraggingChangedEvent']),this[_0x5cc654(0x94)]['removeEventListener'](_0x5cc654(0xd9),this[_0x5cc654(0xb3)]),this[_0x5cc654(0x94)][_0x5cc654(0xc5)]();const _0x4e3450=this['getTargetScene']();_0x4e3450[_0x5cc654(0xbd)](this['helperObject']),_0x4e3450[_0x5cc654(0xbd)](this[_0x5cc654(0x94)][_0x5cc654(0x96)]());}[_0x28dd4d(0xcf)](){const _0x2c2b61=_0x28dd4d;return {'position':this['camera'][_0x2c2b61(0xc7)][_0x2c2b61(0xaf)](),'quaternion':this[_0x2c2b61(0xdd)][_0x2c2b61(0xd0)][_0x2c2b61(0xaf)]()};}[_0x28dd4d(0xc0)](){const _0x5578f2=_0x28dd4d;if(!this[_0x5578f2(0x99)])return;this[_0x5578f2(0x94)][_0x5578f2(0xc5)]();const _0x180f2f=this[_0x5578f2(0xb7)]();_0x180f2f[_0x5578f2(0xbd)](this[_0x5578f2(0xb9)]),this[_0x5578f2(0xde)][_0x5578f2(0xca)]();let _0x34b35a=this['primaryTarget'][_0x5578f2(0x8e)]();_0x34b35a['decompose'](this[_0x5578f2(0xb9)][_0x5578f2(0xc7)],this['helperObject'][_0x5578f2(0xd0)],this['helperObject'][_0x5578f2(0x9f)]),_0x180f2f[_0x5578f2(0xd1)](this['control']['getHelper']()),_0x180f2f[_0x5578f2(0xd1)](this[_0x5578f2(0xb9)]),this[_0x5578f2(0x94)][_0x5578f2(0xce)](this['helperObject']),this[_0x5578f2(0x8d)][_0x5578f2(0xd4)](_0x29464e=>{const _0x206afc=_0x5578f2,_0x39b004=_0x29464e[_0x206afc(0x8e)](),_0x52b086=_0x34b35a[_0x206afc(0xaf)]()[_0x206afc(0xd2)]()[_0x206afc(0xc1)](_0x39b004);this[_0x206afc(0xde)]['set'](_0x29464e,_0x52b086);});}['onChange'](){const _0x48ee60=_0x28dd4d;this[_0x48ee60(0xab)][_0x48ee60(0x8f)][_0x48ee60(0x9e)]();}[_0x28dd4d(0xb4)](_0x15a39e){const _0x221d7e=_0x28dd4d;if(this[_0x221d7e(0x99)]){let _0x38934b=this[_0x221d7e(0x99)][_0x221d7e(0x8e)]();_0x38934b[_0x221d7e(0xa7)](this[_0x221d7e(0xb9)][_0x221d7e(0xc7)],this['helperObject']['quaternion'],this[_0x221d7e(0xb9)][_0x221d7e(0x9f)]);}this[_0x221d7e(0xbb)]&&this[_0x221d7e(0xbb)](_0x15a39e[_0x221d7e(0x9d)]);}[_0x28dd4d(0x9c)](){const _0x5ee11d=_0x28dd4d;if(this['primaryTarget']){this[_0x5ee11d(0xb9)][_0x5ee11d(0xc9)](!![]);const _0x462533=this[_0x5ee11d(0xb9)][_0x5ee11d(0xb5)][_0x5ee11d(0xaf)]();this[_0x5ee11d(0x99)]['onTransforming'](_0x462533),this[_0x5ee11d(0x8d)]['forEach'](_0x404bac=>{const _0x543758=_0x5ee11d,_0x226199=this[_0x543758(0xde)][_0x543758(0xb1)](_0x404bac);if(_0x226199){const _0x1b0ab1=new webgpu.Matrix4()['multiplyMatrices'](_0x462533,_0x226199);_0x404bac[_0x543758(0x92)](_0x1b0ab1);}});}this[_0x5ee11d(0xa8)]&&this[_0x5ee11d(0xa8)]();}set[_0x28dd4d(0xbc)](_0x3321d9){const _0x2e888d=_0x28dd4d;this[_0x2e888d(0x94)]['enabled']=_0x3321d9;}[_0x28dd4d(0xcd)](_0x2aa740,_0x37d192,_0x53e72a=null,_0x541bc4=null){const _0x3d2275=_0x28dd4d;this['targetMatrixMap']['clear']();let _0x1c12be=_0x2aa740['getMatrixInWorld']();_0x1c12be[_0x3d2275(0xa7)](this[_0x3d2275(0xb9)][_0x3d2275(0xc7)],this[_0x3d2275(0xb9)]['quaternion'],this['helperObject'][_0x3d2275(0x9f)]);const _0xea7bbe=this[_0x3d2275(0xb7)]();_0xea7bbe[_0x3d2275(0xd1)](this[_0x3d2275(0x94)][_0x3d2275(0x96)]()),this[_0x3d2275(0x99)]=_0x2aa740,this[_0x3d2275(0x8d)]=_0x37d192,this['targets'][_0x3d2275(0xd4)](_0x4cc300=>{const _0x197797=_0x3d2275,_0x4c63b2=_0x4cc300['getMatrixInWorld'](),_0x50537f=_0x1c12be[_0x197797(0xaf)]()['invert']()['multiply'](_0x4c63b2);this[_0x197797(0xde)]['set'](_0x4cc300,_0x50537f);}),_0x53e72a&&(this['onUpdateFunction']=_0x53e72a),_0x541bc4&&(this[_0x3d2275(0xbb)]=_0x541bc4),this[_0x3d2275(0xdf)]=!![];}[_0x28dd4d(0xae)](){const _0x522a00=_0x28dd4d;return this[_0x522a00(0x94)][_0x522a00(0xae)]();}[_0x28dd4d(0xc2)](_0x1b5c65){const _0x4bfaaf=_0x28dd4d;this[_0x4bfaaf(0x94)]['setMode'](_0x1b5c65);}[_0x28dd4d(0xd8)](_0x3113c7){const _0x47fafc=_0x28dd4d;this[_0x47fafc(0x94)]['setSpace'](_0x3113c7);}[_0x28dd4d(0xda)](_0x58e2bd){const _0x4ac3fe=_0x28dd4d;this[_0x4ac3fe(0x94)]['showX']=_0x58e2bd?_0x58e2bd===null||_0x58e2bd===void 0?void 0:_0x58e2bd[_0x4ac3fe(0x9b)]('X'):![],this[_0x4ac3fe(0x94)][_0x4ac3fe(0xb8)]=_0x58e2bd?_0x58e2bd===null||_0x58e2bd===void 0?void 0:_0x58e2bd['includes']('Y'):![],this[_0x4ac3fe(0x94)][_0x4ac3fe(0xa0)]=_0x58e2bd?_0x58e2bd===null||_0x58e2bd===void 0?void 0:_0x58e2bd[_0x4ac3fe(0x9b)]('Z'):![];}[_0x28dd4d(0xa4)](_0x585534){const _0x294006=_0x28dd4d;this[_0x294006(0x94)]['setSize'](_0x585534);}[_0x28dd4d(0xa3)](){const _0x2b1fbc=_0x28dd4d;return this['control'][_0x2b1fbc(0xb0)];}[_0x28dd4d(0xa6)](_0x1550a5){const _0x37f18e=_0x28dd4d;this[_0x37f18e(0x94)][_0x37f18e(0xa6)](_0x1550a5);}[_0x28dd4d(0xba)](){const _0xbdb08e=_0x28dd4d;return this[_0xbdb08e(0x94)][_0xbdb08e(0xc4)];}['setRotationSnap'](_0xe03a4e){const _0x38b165=_0x28dd4d;this[_0x38b165(0x94)][_0x38b165(0xc3)](_0xe03a4e);}['getScaleSnap'](){const _0x45a04b=_0x28dd4d;return this[_0x45a04b(0x94)]['scaleSnap'];}[_0x28dd4d(0xaa)](_0x5b4055){const _0xb59528=_0x28dd4d;this[_0xb59528(0x94)]['setScaleSnap'](_0x5b4055);}[_0x28dd4d(0x97)](){const _0x518efd=_0x28dd4d;var _0x441de5;this['isTickEnabled']=![],this['unpossess'](),this[_0x518efd(0xde)][_0x518efd(0xca)](),this['targets']=[],this['primaryTarget']=null,this[_0x518efd(0xa8)]=null,this[_0x518efd(0xbb)]=null,(_0x441de5=this[_0x518efd(0x9a)])===null||_0x441de5===void 0?void 0:_0x441de5[_0x518efd(0xb2)](),this[_0x518efd(0x9a)]=null,super['destroy']();}}
|
|
155
155
|
|
|
156
|
-
function
|
|
156
|
+
function _0x2033(){const _0x4d26f5=['add','41864nDWTee','applyMatrix4','copy','BoxColliderDebug','64335uptTUN','onDebugTick','_debugMesh','matrixWorld','413808cIHTSj','abs','normalize','_halfExtents','getWorldMatrix','debugOpacity','765780ryniZx','transformDirection','876484fNIoEC','144VZXSIu','multiplyScalar','6bQBPeW','name','clone','BoxColliderDebugMesh','set','subVectors','threeObject','574185PLDMyd','intersectRayAabbRaw','23300BbdCtm','negate','debugColor','invert','BoxColliderComponent'];_0x2033=function(){return _0x4d26f5;};return _0x2033();}const _0x345a51=_0x3184;(function(_0x4c78d1,_0x4f4764){const _0x534d8c=_0x3184,_0x36491d=_0x4c78d1();while(!![]){try{const _0x8ffea2=-parseInt(_0x534d8c(0x178))/0x1+-parseInt(_0x534d8c(0x16e))/0x2+parseInt(_0x534d8c(0x16c))/0x3+parseInt(_0x534d8c(0x17c))/0x4+-parseInt(_0x534d8c(0x182))/0x5+parseInt(_0x534d8c(0x187))/0x6*(parseInt(_0x534d8c(0x184))/0x7)+parseInt(_0x534d8c(0x174))/0x8*(-parseInt(_0x534d8c(0x185))/0x9);if(_0x8ffea2===_0x4f4764)break;else _0x36491d['push'](_0x36491d['shift']());}catch(_0x220983){_0x36491d['push'](_0x36491d['shift']());}}}(_0x2033,0x1a2b6));function _0x3184(_0x2f1b83,_0x2f695e){_0x2f1b83=_0x2f1b83-0x168;const _0x2033b2=_0x2033();let _0x3184ca=_0x2033b2[_0x2f1b83];return _0x3184ca;}class BoxColliderComponent extends ColliderComponent{get['halfExtents'](){const _0x5e87e5=_0x3184;return this[_0x5e87e5(0x17f)];}constructor(_0x440495,_0x4067ce=new webgpu.Vector3(0.5,0.5,0.5),_0x12b6df){const _0x165459=_0x3184;super(_0x440495,_0x12b6df),this['_debugMesh']=null,this['_halfExtents']=new webgpu.Vector3(_0x4067ce['x'],_0x4067ce['y'],_0x4067ce['z']),this[_0x165459(0x188)]=_0x165459(0x172);}['getWorldAABB'](_0x383514=new webgpu.Box3()){const _0x68ff9e=_0x3184,_0x4c5694=this[_0x68ff9e(0x180)](),_0x32e4e3=this[_0x68ff9e(0x17f)]['x'],_0x27c79b=this[_0x68ff9e(0x17f)]['y'],_0x5b3bf7=this[_0x68ff9e(0x17f)]['z'];_0x383514['makeEmpty']();const _0x321442=[new webgpu.Vector3(-_0x32e4e3,-_0x27c79b,-_0x5b3bf7),new webgpu.Vector3(-_0x32e4e3,-_0x27c79b,_0x5b3bf7),new webgpu.Vector3(-_0x32e4e3,_0x27c79b,-_0x5b3bf7),new webgpu.Vector3(-_0x32e4e3,_0x27c79b,_0x5b3bf7),new webgpu.Vector3(_0x32e4e3,-_0x27c79b,-_0x5b3bf7),new webgpu.Vector3(_0x32e4e3,-_0x27c79b,_0x5b3bf7),new webgpu.Vector3(_0x32e4e3,_0x27c79b,-_0x5b3bf7),new webgpu.Vector3(_0x32e4e3,_0x27c79b,_0x5b3bf7)];for(const _0x5bf014 of _0x321442){_0x5bf014[_0x68ff9e(0x175)](_0x4c5694),_0x383514['expandByPoint'](_0x5bf014);}return _0x383514;}['createDebugObject'](){const _0x465c65=_0x3184,_0x6314a7=new webgpu.Object3D();_0x6314a7['name']=_0x465c65(0x177);const _0x4de562=new webgpu.BoxGeometry(0x1,0x1,0x1),_0x28d540=new webgpu.MeshBasicMaterial({'color':this[_0x465c65(0x170)],'wireframe':!![],'transparent':!![],'opacity':this[_0x465c65(0x181)]}),_0x56c801=new webgpu.Mesh(_0x4de562,_0x28d540);return _0x56c801[_0x465c65(0x188)]=_0x465c65(0x168),_0x6314a7[_0x465c65(0x173)](_0x56c801),this[_0x465c65(0x17a)]=_0x56c801,this['onDebugTick'](0x0),_0x6314a7;}['destroyDebugObject'](_0x191b08){const _0x3d1526=_0x3184;this[_0x3d1526(0x17a)]=null;}[_0x345a51(0x179)](_0x7eedc9){const _0x2b0d63=_0x345a51;if(!this['_debugMesh'])return;this[_0x2b0d63(0x17a)]['scale']['set'](this[_0x2b0d63(0x17f)]['x']*0x2,this['_halfExtents']['y']*0x2,this[_0x2b0d63(0x17f)]['z']*0x2);}['raycast'](_0x26c90c,_0x5e34fa,_0x2ee501){const _0x28f20b=_0x345a51;if(!this[_0x28f20b(0x16b)])return null;const _0x2da551=this[_0x28f20b(0x16b)][_0x28f20b(0x17b)][_0x28f20b(0x189)]()[_0x28f20b(0x171)](),_0x1d0b99=_0x26c90c[_0x28f20b(0x189)]()[_0x28f20b(0x175)](_0x2da551),_0x1855d7=_0x5e34fa['clone']()[_0x28f20b(0x183)](_0x2da551),_0x153023=_0x26c90c[_0x28f20b(0x189)]()[_0x28f20b(0x173)](_0x5e34fa),_0x2b3c76=_0x153023[_0x28f20b(0x175)](_0x2da551);_0x1855d7[_0x28f20b(0x16a)](_0x2b3c76,_0x1d0b99);const _0x4a9473=this['_halfExtents']['clone']()[_0x28f20b(0x16f)](),_0x473656=this[_0x28f20b(0x17f)][_0x28f20b(0x189)](),_0x1a5ac6=this[_0x28f20b(0x16d)](_0x1d0b99,_0x1855d7,_0x4a9473,_0x473656);if(!_0x1a5ac6)return null;if(_0x1a5ac6['t']>_0x2ee501)return null;const _0x4caaea=_0x26c90c['clone']()[_0x28f20b(0x173)](_0x5e34fa[_0x28f20b(0x189)]()[_0x28f20b(0x186)](_0x1a5ac6['t'])),_0x32a2b4=_0x1a5ac6['normal'],_0x4e16b5=new webgpu.Matrix4()[_0x28f20b(0x176)](this['threeObject']['matrixWorld'])['invert']()['transpose'](),_0xc51661=_0x32a2b4[_0x28f20b(0x175)](_0x4e16b5)['normalize']();return {'point':_0x4caaea,'normal':_0xc51661,'distance':_0x1a5ac6['t']};}['intersectRayAabbRaw'](_0x2945e4,_0x310067,_0x5e6af0,_0x1d41ef){const _0x4b04a2=_0x345a51;let _0x3085b8=-Infinity,_0x17dcc5=Infinity;const _0x222cd7=new webgpu.Vector3(),_0x4928a9=1e-8,_0x12d112=_0x4eec20=>{const _0x52e3c6=_0x3184,_0x25d7d5=_0x2945e4[_0x4eec20],_0x126da1=_0x310067[_0x4eec20],_0x2ec533=_0x5e6af0[_0x4eec20],_0x275205=_0x1d41ef[_0x4eec20];if(Math[_0x52e3c6(0x17d)](_0x126da1)<_0x4928a9){if(_0x25d7d5<_0x2ec533||_0x25d7d5>_0x275205)return ![];return !![];}const _0x1ed80c=0x1/_0x126da1;let _0x2cd6b8=(_0x2ec533-_0x25d7d5)*_0x1ed80c,_0x506507=(_0x275205-_0x25d7d5)*_0x1ed80c;if(_0x2cd6b8>_0x506507){const _0x2a9935=_0x2cd6b8;_0x2cd6b8=_0x506507,_0x506507=_0x2a9935;}if(_0x2cd6b8>_0x3085b8){_0x3085b8=_0x2cd6b8,_0x222cd7[_0x52e3c6(0x169)](0x0,0x0,0x0),_0x222cd7[_0x4eec20]=_0x126da1<0x0?0x1:-1;if(_0x126da1>0x0)_0x222cd7[_0x4eec20]=-1;else _0x222cd7[_0x4eec20]=0x1;}_0x506507<_0x17dcc5&&(_0x17dcc5=_0x506507);if(_0x3085b8>_0x17dcc5)return ![];return !![];};if(!_0x12d112('x')||!_0x12d112('y')||!_0x12d112('z'))return null;if(_0x17dcc5<0x0)return null;if(_0x3085b8<0x0)return {'t':0x0,'normal':_0x310067[_0x4b04a2(0x189)]()['negate']()[_0x4b04a2(0x17e)]()};return {'t':_0x3085b8,'normal':_0x222cd7};}}
|
|
157
157
|
|
|
158
|
-
const
|
|
158
|
+
const _0x224d4b=_0x5912;function _0x1e64(){const _0x54079d=['setHex','abs','_debugMesh','SphereColliderDebug','getWorldPosition','SphereColliderComponent','name','set','3761052AasAKR','debugColor','223363PRlhlo','63dtQthv','needsUpdate','5425175rCileT','getWorldAABB','getWorldScale','transparent','onDebugStyleChanged','debugOpacity','18MnvzQw','setFromCenterAndSize','add','max','color','onDebugTick','194270oJGzll','destroyDebugObject','6445EgSOOZ','2036iMhoEM','428808nAVQXP','72969WzpfMe','_radius'];_0x1e64=function(){return _0x54079d;};return _0x1e64();}(function(_0x226b10,_0x51f006){const _0x402bb0=_0x5912,_0x513d09=_0x226b10();while(!![]){try{const _0x240444=-parseInt(_0x402bb0(0x208))/0x1+parseInt(_0x402bb0(0x1f1))/0x2*(-parseInt(_0x402bb0(0x1fc))/0x3)+-parseInt(_0x402bb0(0x1fa))/0x4*(-parseInt(_0x402bb0(0x1f9))/0x5)+-parseInt(_0x402bb0(0x206))/0x6+parseInt(_0x402bb0(0x20b))/0x7+-parseInt(_0x402bb0(0x1fb))/0x8+parseInt(_0x402bb0(0x209))/0x9*(parseInt(_0x402bb0(0x1f7))/0xa);if(_0x240444===_0x51f006)break;else _0x513d09['push'](_0x513d09['shift']());}catch(_0x3173c3){_0x513d09['push'](_0x513d09['shift']());}}}(_0x1e64,0x6c7f2));function _0x5912(_0x41b7ee,_0x500e8a){_0x41b7ee=_0x41b7ee-0x1ef;const _0x1e6472=_0x1e64();let _0x591216=_0x1e6472[_0x41b7ee];return _0x591216;}class SphereColliderComponent extends ColliderComponent{get['radius'](){const _0x240140=_0x5912;return this[_0x240140(0x1fd)];}constructor(_0x2b838e,_0x2c82d9=0.5,_0x43a6dd){const _0x1a721a=_0x5912;super(_0x2b838e,_0x43a6dd),this['_debugMesh']=null,this[_0x1a721a(0x1fd)]=_0x2c82d9,this[_0x1a721a(0x204)]=_0x1a721a(0x203);}[_0x224d4b(0x20c)](_0x7e4255=new webgpu.Box3()){const _0x3f625b=_0x224d4b,_0x2a7c9e=this[_0x3f625b(0x202)](),_0x58d3eb=this[_0x3f625b(0x20d)](),_0x45d51e=Math[_0x3f625b(0x1f4)](Math[_0x3f625b(0x1ff)](_0x58d3eb['x']),Math[_0x3f625b(0x1ff)](_0x58d3eb['y']),Math[_0x3f625b(0x1ff)](_0x58d3eb['z'])),_0x14d7ed=Math['max'](0x0,this[_0x3f625b(0x1fd)])*_0x45d51e,_0x1810c3=new webgpu.Vector3(_0x14d7ed*0x2,_0x14d7ed*0x2,_0x14d7ed*0x2);return _0x7e4255[_0x3f625b(0x1f2)](_0x2a7c9e,_0x1810c3),_0x7e4255;}['createDebugObject'](){const _0xfaf10=_0x224d4b,_0x436160=new webgpu.Object3D();_0x436160[_0xfaf10(0x204)]=_0xfaf10(0x201);const _0x33f4f2=new webgpu.SphereGeometry(0x1,0x18,0x10),_0x407d68=new webgpu.MeshBasicMaterial({'color':this[_0xfaf10(0x207)],'wireframe':!![],'transparent':!![],'opacity':this[_0xfaf10(0x1f0)]}),_0x451663=new webgpu.Mesh(_0x33f4f2,_0x407d68);return _0x451663['name']='SphereColliderDebugMesh',_0x436160[_0xfaf10(0x1f3)](_0x451663),this[_0xfaf10(0x200)]=_0x451663,this['onDebugTick'](0x0),_0x436160;}[_0x224d4b(0x1f8)](_0x4aa5c1){const _0x2b01f9=_0x224d4b;this[_0x2b01f9(0x200)]=null;}[_0x224d4b(0x1f6)](_0x1d6735){const _0x31b927=_0x224d4b,_0xf9811f=this[_0x31b927(0x200)];if(!_0xf9811f)return;const _0x14e736=this['getWorldScale'](),_0x1b6a8a=Math['abs'](_0x14e736['x'])>1e-8?_0x14e736['x']:0x1,_0x23d90b=Math[_0x31b927(0x1ff)](_0x14e736['y'])>1e-8?_0x14e736['y']:0x1,_0x50bc76=Math[_0x31b927(0x1ff)](_0x14e736['z'])>1e-8?_0x14e736['z']:0x1,_0x344092=Math[_0x31b927(0x1f4)](Math[_0x31b927(0x1ff)](_0x1b6a8a),Math[_0x31b927(0x1ff)](_0x23d90b),Math[_0x31b927(0x1ff)](_0x50bc76)),_0x31411a=Math[_0x31b927(0x1f4)](0x0,this[_0x31b927(0x1fd)])*_0x344092;_0xf9811f['scale'][_0x31b927(0x205)](_0x31411a/_0x1b6a8a,_0x31411a/_0x23d90b,_0x31411a/_0x50bc76);}[_0x224d4b(0x1ef)](){const _0x59ed9a=_0x224d4b,_0x1351a4=this[_0x59ed9a(0x200)];if(!_0x1351a4)return;const _0x53f72d=_0x1351a4['material'];_0x53f72d[_0x59ed9a(0x1f5)][_0x59ed9a(0x1fe)](this[_0x59ed9a(0x207)]),_0x53f72d['opacity']=this[_0x59ed9a(0x1f0)],_0x53f72d[_0x59ed9a(0x20e)]=this[_0x59ed9a(0x1f0)]<0x1,_0x53f72d[_0x59ed9a(0x20a)]=!![];}}
|
|
159
159
|
|
|
160
|
-
const _0x3d2d05=_0x35f2;function _0x35f2(_0x565bfd,_0x1d8857){_0x565bfd=_0x565bfd-0xd9;const _0x1ef3a6=_0x1ef3();let _0x35f25a=_0x1ef3a6[_0x565bfd];return _0x35f25a;}(function(_0x3ac2a2,_0x5b029f){const _0x340fe6=_0x35f2,_0xb691d1=_0x3ac2a2();while(!![]){try{const _0x2744d7=-parseInt(_0x340fe6(0xfd))/0x1*(parseInt(_0x340fe6(0xec))/0x2)+parseInt(_0x340fe6(0xf8))/0x3+parseInt(_0x340fe6(0x10b))/0x4*(parseInt(_0x340fe6(0xf1))/0x5)+parseInt(_0x340fe6(0x130))/0x6*(parseInt(_0x340fe6(0xf0))/0x7)+-parseInt(_0x340fe6(0x134))/0x8*(-parseInt(_0x340fe6(0x106))/0x9)+parseInt(_0x340fe6(0x114))/0xa*(-parseInt(_0x340fe6(0x12a))/0xb)+-parseInt(_0x340fe6(0xdb))/0xc;if(_0x2744d7===_0x5b029f)break;else _0xb691d1['push'](_0xb691d1['shift']());}catch(_0x40bcce){_0xb691d1['push'](_0xb691d1['shift']());}}}(_0x1ef3,0xbb61d));function _0x1ef3(){const _0x56d4c3=['getWorldAABB','_tmpEdge2','clone','debugOpacity','32QTficG','point','_tmpA','mergeGeometries','array','_debugEntries','getX','distance','name','1720vAdNzX','_tmpP','_tmpQ','computeBoundingBox','_tmpC','_sourceObject','dot','getZ','boundingBox','sub','sort','intersectRayTriangle','raycast','getDebugAttachParent','dispose','MeshColliderDebug','destroyDebugObject','setAttribute','lengthSq','sqrt','setSourceObject','_tmpCorner','14773cdXLZn','geometry','_debugMaterial','multiplyScalar','needsUpdate','createDebugObject','12enwGfv','applyMatrix4','_tmpT','_tmpEdge1','26608TZXyPM','destroy','abs','length','_tmpB','from','16782036mRuUHo','min','traverse','obj','add','multiply','push','getY','isMesh','threeObject','matrixWorld','_mesh','normal','_tmpMat','intersectRayAabb','raycastAll','color','6434aTZaSe','count','setIndex','attributes','3672214WPIOOn','924365phvOdc','transparent','copy','position','updateWorldMatrix','debugEnabled','setHex','1696191ucLFFv','_tmpBoxCorner','crossVectors','max','invert','353wIWMSg','floor','_tmpAabb','getIndex','index','_tmpN','debugColor','set','expandByPoint','1188yIgkZm'];_0x1ef3=function(){return _0x56d4c3;};return _0x1ef3();}class MeshColliderComponent extends ColliderComponent{get['sourceObject'](){const _0x55799d=_0x35f2;return this[_0x55799d(0x119)];}constructor(_0x53410b,_0x1c3e66=null,_0x48cf93){const _0x279af2=_0x35f2;super(_0x53410b,_0x48cf93),this[_0x279af2(0x119)]=null,this[_0x279af2(0xe6)]=null,this['_debugEntries']=[],this['_debugMaterial']=null,this[_0x279af2(0xff)]=new webgpu.Box3(),this['_tmpMat']=new webgpu.Matrix4(),this['_tmpCorner']=new webgpu.Vector3(),this['_tmpBoxCorner']=Array[_0x279af2(0xda)]({'length':0x8},()=>new webgpu.Vector3()),this[_0x279af2(0x10d)]=new webgpu.Vector3(),this[_0x279af2(0xd9)]=new webgpu.Vector3(),this[_0x279af2(0x118)]=new webgpu.Vector3(),this['_tmpEdge1']=new webgpu.Vector3(),this[_0x279af2(0x108)]=new webgpu.Vector3(),this[_0x279af2(0x115)]=new webgpu.Vector3(),this[_0x279af2(0x132)]=new webgpu.Vector3(),this[_0x279af2(0x116)]=new webgpu.Vector3(),this[_0x279af2(0x102)]=new webgpu.Vector3(),this[_0x279af2(0x113)]='MeshColliderComponent',this[_0x279af2(0x128)](_0x1c3e66);}[_0x3d2d05(0x128)](_0x1e1b6c){const _0x1bc902=_0x3d2d05,_0x37f6b9=this[_0x1bc902(0xf6)];_0x37f6b9&&(this[_0x1bc902(0xf6)]=![]);this[_0x1bc902(0x119)]=_0x1e1b6c;this[_0x1bc902(0xe6)]&&(this[_0x1bc902(0xe6)]['geometry'][_0x1bc902(0x122)](),this[_0x1bc902(0xe6)]=null);if(!_0x1e1b6c){_0x37f6b9&&(this[_0x1bc902(0xf6)]=!![]);return;}const _0x1187fa=[];_0x1e1b6c[_0x1bc902(0xf5)](!![],!![]);const _0x57261d=_0x1e1b6c[_0x1bc902(0xe5)][_0x1bc902(0x109)]()[_0x1bc902(0xfc)]();_0x1e1b6c[_0x1bc902(0xdd)](_0x39489d=>{const _0x5547d0=_0x1bc902;if(_0x39489d[_0x5547d0(0xe3)]){const _0x74b3d9=_0x39489d;if(_0x74b3d9['geometry']){const _0x513293=_0x74b3d9['geometry'][_0x5547d0(0x109)](),_0x21ae3b=_0x57261d['clone']()[_0x5547d0(0xe0)](_0x74b3d9[_0x5547d0(0xe5)]);_0x513293['applyMatrix4'](_0x21ae3b),_0x1187fa[_0x5547d0(0xe1)](_0x513293);}}});if(_0x1187fa['length']>0x0){const _0x1167a2=this[_0x1bc902(0x10e)](_0x1187fa);if(_0x1167a2){const _0x238d14=new webgpu.Mesh(_0x1167a2);this[_0x1bc902(0xe6)]=_0x238d14;}}_0x37f6b9&&(this[_0x1bc902(0xf6)]=!![]);}[_0x3d2d05(0x10e)](_0x51483f){const _0x4d1825=_0x3d2d05;if(_0x51483f[_0x4d1825(0x137)]===0x0)return null;if(_0x51483f[_0x4d1825(0x137)]===0x1)return _0x51483f[0x0];let _0x837030=0x0,_0x7a5e94=0x0;for(const _0x1c2a3f of _0x51483f){_0x837030+=_0x1c2a3f[_0x4d1825(0xef)][_0x4d1825(0xf4)][_0x4d1825(0xed)],_0x1c2a3f[_0x4d1825(0x101)]?_0x7a5e94+=_0x1c2a3f[_0x4d1825(0x101)][_0x4d1825(0xed)]:_0x7a5e94+=_0x1c2a3f['attributes'][_0x4d1825(0xf4)]['count'];}const _0x3ae9ee=new Float32Array(_0x837030*0x3),_0xd5b546=new Uint32Array(_0x7a5e94);let _0x1bd481=0x0,_0x220dd6=0x0;for(const _0x128443 of _0x51483f){const _0x95f1af=_0x128443[_0x4d1825(0xef)]['position'][_0x4d1825(0x10f)],_0xfbd989=_0x128443[_0x4d1825(0xef)][_0x4d1825(0xf4)][_0x4d1825(0xed)];for(let _0x188d80=0x0;_0x188d80<_0xfbd989*0x3;_0x188d80++){_0x3ae9ee[_0x1bd481*0x3+_0x188d80]=_0x95f1af[_0x188d80];}if(_0x128443[_0x4d1825(0x101)]){const _0x223f4c=_0x128443[_0x4d1825(0x101)][_0x4d1825(0x10f)];for(let _0x4a06d6=0x0;_0x4a06d6<_0x128443[_0x4d1825(0x101)][_0x4d1825(0xed)];_0x4a06d6++){_0xd5b546[_0x220dd6+_0x4a06d6]=_0x223f4c[_0x4a06d6]+_0x1bd481;}_0x220dd6+=_0x128443[_0x4d1825(0x101)][_0x4d1825(0xed)];}else {for(let _0x1ba2e4=0x0;_0x1ba2e4<_0xfbd989;_0x1ba2e4++){_0xd5b546[_0x220dd6+_0x1ba2e4]=_0x1ba2e4+_0x1bd481;}_0x220dd6+=_0xfbd989;}_0x1bd481+=_0xfbd989;}const _0x23a14e=new webgpu.BufferGeometry();return _0x23a14e[_0x4d1825(0x125)](_0x4d1825(0xf4),new webgpu.BufferAttribute(_0x3ae9ee,0x3)),_0x23a14e[_0x4d1825(0xee)](new webgpu.BufferAttribute(_0xd5b546,0x1)),_0x23a14e;}['destroy'](){const _0x28907b=_0x3d2d05;this[_0x28907b(0xf6)]=![],this['_mesh']&&(this[_0x28907b(0xe6)][_0x28907b(0x12b)][_0x28907b(0x122)](),this[_0x28907b(0xe6)]=null),this['_sourceObject']=null,super[_0x28907b(0x135)]();}[_0x3d2d05(0x107)](_0x3dc0f0=new webgpu.Box3()){const _0x48a280=_0x3d2d05;_0x3dc0f0['makeEmpty']();if(!this[_0x48a280(0x119)])return _0x3dc0f0;this['_sourceObject'][_0x48a280(0xf5)](!![],!![]);const _0x468cd1=this[_0x48a280(0xf9)];if(this['_mesh']){const _0x4b5d7f=this['_mesh'];_0x4b5d7f['matrixWorld'][_0x48a280(0xf3)](this[_0x48a280(0x119)][_0x48a280(0xe5)]);const _0x27472a=_0x4b5d7f[_0x48a280(0x12b)];if(_0x27472a){!_0x27472a[_0x48a280(0x11c)]&&_0x27472a['computeBoundingBox']();const _0x6f244=_0x27472a[_0x48a280(0x11c)];if(_0x6f244){this[_0x48a280(0xe8)]['copy'](_0x4b5d7f[_0x48a280(0xe5)]);const _0x29a454=_0x6f244['min'],_0x352fc2=_0x6f244[_0x48a280(0xfb)];_0x468cd1[0x0]['set'](_0x29a454['x'],_0x29a454['y'],_0x29a454['z']),_0x468cd1[0x1][_0x48a280(0x104)](_0x29a454['x'],_0x29a454['y'],_0x352fc2['z']),_0x468cd1[0x2]['set'](_0x29a454['x'],_0x352fc2['y'],_0x29a454['z']),_0x468cd1[0x3][_0x48a280(0x104)](_0x29a454['x'],_0x352fc2['y'],_0x352fc2['z']),_0x468cd1[0x4][_0x48a280(0x104)](_0x352fc2['x'],_0x29a454['y'],_0x29a454['z']),_0x468cd1[0x5][_0x48a280(0x104)](_0x352fc2['x'],_0x29a454['y'],_0x352fc2['z']),_0x468cd1[0x6][_0x48a280(0x104)](_0x352fc2['x'],_0x352fc2['y'],_0x29a454['z']),_0x468cd1[0x7]['set'](_0x352fc2['x'],_0x352fc2['y'],_0x352fc2['z']);for(const _0x12ac6e of _0x468cd1){_0x12ac6e['applyMatrix4'](this[_0x48a280(0xe8)]),_0x3dc0f0[_0x48a280(0x105)](_0x12ac6e);}}}}return _0x3dc0f0;}[_0x3d2d05(0xea)](_0xc968d1,_0x5c8fa3,_0x4784cc){const _0x5b60cb=_0x3d2d05;if(!this[_0x5b60cb(0x119)])return [];this['_sourceObject'][_0x5b60cb(0xf5)](!![],!![]);const _0x425ced=[];if(this['_mesh']){const _0x314e3d=this[_0x5b60cb(0xe6)];_0x314e3d[_0x5b60cb(0xe5)][_0x5b60cb(0xf3)](this[_0x5b60cb(0x119)][_0x5b60cb(0xe5)]);const _0x19a454=_0x314e3d[_0x5b60cb(0x12b)];if(_0x19a454){!_0x19a454[_0x5b60cb(0x11c)]&&_0x19a454[_0x5b60cb(0x117)]();const _0xc793d0=_0x19a454[_0x5b60cb(0x11c)];if(_0xc793d0){const _0x4cbb4a=this[_0x5b60cb(0xff)][_0x5b60cb(0xf3)](_0xc793d0)[_0x5b60cb(0x131)](_0x314e3d[_0x5b60cb(0xe5)]);if(this[_0x5b60cb(0xe9)](_0xc968d1,_0x5c8fa3,_0x4784cc,_0x4cbb4a)){const _0x259456=_0x19a454['getAttribute'](_0x5b60cb(0xf4));if(_0x259456){const _0x4fe39f=_0x19a454[_0x5b60cb(0x100)](),_0x111d28=_0x4fe39f?Math[_0x5b60cb(0xfe)](_0x4fe39f[_0x5b60cb(0xed)]/0x3):Math['floor'](_0x259456['count']/0x3);for(let _0x10eadd=0x0;_0x10eadd<_0x111d28;_0x10eadd++){const _0x2f6f34=_0x4fe39f?_0x4fe39f[_0x5b60cb(0x111)](_0x10eadd*0x3+0x0):_0x10eadd*0x3+0x0,_0xd8b60f=_0x4fe39f?_0x4fe39f[_0x5b60cb(0x111)](_0x10eadd*0x3+0x1):_0x10eadd*0x3+0x1,_0x4ec80f=_0x4fe39f?_0x4fe39f[_0x5b60cb(0x111)](_0x10eadd*0x3+0x2):_0x10eadd*0x3+0x2;this[_0x5b60cb(0x10d)][_0x5b60cb(0x104)](_0x259456['getX'](_0x2f6f34),_0x259456[_0x5b60cb(0xe2)](_0x2f6f34),_0x259456[_0x5b60cb(0x11b)](_0x2f6f34))[_0x5b60cb(0x131)](_0x314e3d[_0x5b60cb(0xe5)]),this['_tmpB'][_0x5b60cb(0x104)](_0x259456[_0x5b60cb(0x111)](_0xd8b60f),_0x259456['getY'](_0xd8b60f),_0x259456[_0x5b60cb(0x11b)](_0xd8b60f))[_0x5b60cb(0x131)](_0x314e3d[_0x5b60cb(0xe5)]),this[_0x5b60cb(0x118)]['set'](_0x259456['getX'](_0x4ec80f),_0x259456[_0x5b60cb(0xe2)](_0x4ec80f),_0x259456[_0x5b60cb(0x11b)](_0x4ec80f))['applyMatrix4'](_0x314e3d[_0x5b60cb(0xe5)]);const _0x37b292=this[_0x5b60cb(0x11f)](_0xc968d1,_0x5c8fa3,this['_tmpA'],this[_0x5b60cb(0xd9)],this[_0x5b60cb(0x118)],_0x4784cc);_0x37b292&&_0x425ced[_0x5b60cb(0xe1)]({'distance':_0x37b292[_0x5b60cb(0x112)],'point':_0x37b292[_0x5b60cb(0x10c)][_0x5b60cb(0x109)](),'normal':_0x37b292[_0x5b60cb(0xe7)]['clone']()});}}}}}}return _0x425ced[_0x5b60cb(0x11e)]((_0x3bbdfb,_0xd67117)=>_0x3bbdfb[_0x5b60cb(0x112)]-_0xd67117[_0x5b60cb(0x112)]);}[_0x3d2d05(0x120)](_0x1ff759,_0x2bedd4,_0x3fdc30){const _0x55c33f=_0x3d2d05,_0x5c323e=this[_0x55c33f(0xea)](_0x1ff759,_0x2bedd4,_0x3fdc30);if(_0x5c323e[_0x55c33f(0x137)]>0x0)return _0x5c323e[0x0];return null;}[_0x3d2d05(0xe9)](_0x3a7191,_0x11617b,_0x4ba7c5,_0x285eff){const _0x19f2de=_0x3d2d05;let _0x1db923=0x0,_0x31a22c=_0x4ba7c5;const _0x48458c=1e-8,_0x89a793=_0x562b8e=>{const _0x4ae9f2=_0x35f2,_0x6589c=_0x3a7191[_0x562b8e],_0x368944=_0x11617b[_0x562b8e],_0x8c675c=_0x285eff[_0x4ae9f2(0xdc)][_0x562b8e],_0x1b7ea7=_0x285eff[_0x4ae9f2(0xfb)][_0x562b8e];if(Math[_0x4ae9f2(0x136)](_0x368944)<_0x48458c)return _0x6589c>=_0x8c675c&&_0x6589c<=_0x1b7ea7;const _0x3084b8=0x1/_0x368944;let _0x3b5f0e,_0x47d0fd;return _0x368944>=0x0?(_0x3b5f0e=(_0x8c675c-_0x6589c)*_0x3084b8,_0x47d0fd=(_0x1b7ea7-_0x6589c)*_0x3084b8):(_0x3b5f0e=(_0x1b7ea7-_0x6589c)*_0x3084b8,_0x47d0fd=(_0x8c675c-_0x6589c)*_0x3084b8),_0x3b5f0e>_0x1db923&&(_0x1db923=_0x3b5f0e),_0x47d0fd<_0x31a22c&&(_0x31a22c=_0x47d0fd),_0x1db923<=_0x31a22c;};if(!_0x89a793('x')||!_0x89a793('y')||!_0x89a793('z'))return ![];const _0x2e55e0=Math[_0x19f2de(0xfb)](0x0,_0x1db923);return _0x2e55e0<=_0x4ba7c5;}['intersectRayTriangle'](_0x21a256,_0x8e39e0,_0x1cf1e3,_0x441f05,_0x48b86a,_0x3f7dc8){const _0x28843b=_0x3d2d05,_0x26ddaa=1e-8,_0x11c6ac=this[_0x28843b(0x133)][_0x28843b(0xf3)](_0x441f05)[_0x28843b(0x11d)](_0x1cf1e3),_0x43fb05=this[_0x28843b(0x108)][_0x28843b(0xf3)](_0x48b86a)[_0x28843b(0x11d)](_0x1cf1e3),_0x1bb40d=this[_0x28843b(0x115)][_0x28843b(0xfa)](_0x8e39e0,_0x43fb05),_0x47fe40=_0x11c6ac[_0x28843b(0x11a)](_0x1bb40d);if(Math[_0x28843b(0x136)](_0x47fe40)<_0x26ddaa)return null;const _0xa21ab6=0x1/_0x47fe40,_0x236015=this[_0x28843b(0x132)][_0x28843b(0xf3)](_0x21a256)[_0x28843b(0x11d)](_0x1cf1e3),_0x2859a3=_0x236015[_0x28843b(0x11a)](_0x1bb40d)*_0xa21ab6;if(_0x2859a3<0x0||_0x2859a3>0x1)return null;const _0x477399=this[_0x28843b(0x116)]['crossVectors'](_0x236015,_0x11c6ac),_0x15127c=_0x8e39e0['dot'](_0x477399)*_0xa21ab6;if(_0x15127c<0x0||_0x2859a3+_0x15127c>0x1)return null;const _0x185c53=_0x43fb05[_0x28843b(0x11a)](_0x477399)*_0xa21ab6;if(_0x185c53<0x0||_0x185c53>_0x3f7dc8)return null;const _0x3c3d3d=this[_0x28843b(0x102)]['crossVectors'](_0x11c6ac,_0x43fb05),_0x2e0534=_0x3c3d3d[_0x28843b(0x126)]();_0x2e0534>_0x26ddaa&&_0x3c3d3d[_0x28843b(0x12d)](0x1/Math[_0x28843b(0x127)](_0x2e0534));_0x3c3d3d[_0x28843b(0x11a)](_0x8e39e0)>0x0&&_0x3c3d3d[_0x28843b(0x12d)](-1);const _0x2a816d=this[_0x28843b(0x129)][_0x28843b(0xf3)](_0x21a256)['addScaledVector'](_0x8e39e0,_0x185c53);return {'point':_0x2a816d,'normal':_0x3c3d3d,'distance':_0x185c53};}[_0x3d2d05(0x121)](){const _0x140076=_0x3d2d05;return this[_0x140076(0xe4)];}[_0x3d2d05(0x12f)](){const _0x3c209a=_0x3d2d05;if(!this[_0x3c209a(0x119)])return null;const _0x58f757=new webgpu.Object3D();_0x58f757[_0x3c209a(0x113)]=_0x3c209a(0x123),this['_debugEntries']=[],this[_0x3c209a(0x12c)]=new webgpu.MeshBasicMaterial({'color':this[_0x3c209a(0x103)],'wireframe':!![],'transparent':!![],'opacity':this[_0x3c209a(0x10a)]});if(this[_0x3c209a(0xe6)]){const _0x41faca=this[_0x3c209a(0xe6)],_0x4b3bb9=_0x41faca[_0x3c209a(0x12b)];if(_0x4b3bb9){const _0x1e2b6b=new webgpu.Mesh(_0x4b3bb9,this[_0x3c209a(0x12c)]);_0x58f757[_0x3c209a(0xdf)](_0x1e2b6b),this[_0x3c209a(0x110)][_0x3c209a(0xe1)]({'parent':_0x58f757,'obj':_0x1e2b6b});}}return _0x58f757;}[_0x3d2d05(0x124)](_0x9fd02){const _0x3d94ad=_0x3d2d05;for(const _0x6b41a0 of this[_0x3d94ad(0x110)]){_0x6b41a0['parent']['remove'](_0x6b41a0[_0x3d94ad(0xde)]);}this[_0x3d94ad(0x110)]=[],this[_0x3d94ad(0x12c)]=null;}['onDebugStyleChanged'](){const _0x297ebf=_0x3d2d05;if(!this[_0x297ebf(0x12c)])return;this[_0x297ebf(0x12c)][_0x297ebf(0xeb)][_0x297ebf(0xf7)](this[_0x297ebf(0x103)]),this['_debugMaterial']['opacity']=this[_0x297ebf(0x10a)],this['_debugMaterial'][_0x297ebf(0xf2)]=this[_0x297ebf(0x10a)]<0x1,this[_0x297ebf(0x12c)][_0x297ebf(0x12e)]=!![];}}
|
|
160
|
+
const _0x5ce2e6=_0x5dd5;(function(_0x28322e,_0x1d2c61){const _0x76bba3=_0x5dd5,_0x264732=_0x28322e();while(!![]){try{const _0x5ca984=parseInt(_0x76bba3(0x146))/0x1+parseInt(_0x76bba3(0x15d))/0x2+-parseInt(_0x76bba3(0x161))/0x3*(parseInt(_0x76bba3(0x135))/0x4)+parseInt(_0x76bba3(0x149))/0x5+-parseInt(_0x76bba3(0x140))/0x6*(-parseInt(_0x76bba3(0x154))/0x7)+parseInt(_0x76bba3(0x12b))/0x8+-parseInt(_0x76bba3(0x132))/0x9;if(_0x5ca984===_0x1d2c61)break;else _0x264732['push'](_0x264732['shift']());}catch(_0x18bcbc){_0x264732['push'](_0x264732['shift']());}}}(_0x28f1,0xd1132));function _0x28f1(){const _0x36eda9=['onDebugStyleChanged','2873676SArlQC','_tmpA','boundingBox','_tmpCorner','7779ZJHrEB','floor','point','intersectRayAabb','dispose','_tmpAabb','_mesh','crossVectors','attributes','mergeGeometries','_tmpP','_sourceObject','_tmpEdge2','max','geometry','setHex','sqrt','sub','index','dot','setIndex','raycastAll','remove','copy','MeshColliderDebug','getDebugAttachParent','applyMatrix4','_debugMaterial','_tmpB','getX','_tmpEdge1','multiplyScalar','computeBoundingBox','4093832QETgFd','getY','MeshColliderComponent','updateWorldMatrix','_debugEntries','debugEnabled','isMesh','29972187FrQKnj','min','debugOpacity','684jOXrTx','position','threeObject','set','opacity','push','color','_tmpN','getZ','length','abs','1333386DjEpTO','parent','invert','debugColor','matrixWorld','count','1219524twerrD','intersectRayTriangle','getIndex','1753850SIugBM','_tmpBoxCorner','obj','makeEmpty','_tmpC','traverse','_tmpMat','raycast','getWorldAABB','array','transparent','35VjVepH','clone','expandByPoint','from','setAttribute','distance','sourceObject','setSourceObject'];_0x28f1=function(){return _0x36eda9;};return _0x28f1();}function _0x5dd5(_0x237149,_0xb5d416){_0x237149=_0x237149-0x120;const _0x28f18b=_0x28f1();let _0x5dd5b8=_0x28f18b[_0x237149];return _0x5dd5b8;}class MeshColliderComponent extends ColliderComponent{get[_0x5ce2e6(0x15a)](){const _0x1e93bb=_0x5ce2e6;return this[_0x1e93bb(0x16c)];}constructor(_0x3245c6,_0x1741ed=null,_0x4cf9de){const _0x485b2a=_0x5ce2e6;super(_0x3245c6,_0x4cf9de),this[_0x485b2a(0x16c)]=null,this['_mesh']=null,this[_0x485b2a(0x12f)]=[],this['_debugMaterial']=null,this[_0x485b2a(0x166)]=new webgpu.Box3(),this[_0x485b2a(0x14f)]=new webgpu.Matrix4(),this[_0x485b2a(0x160)]=new webgpu.Vector3(),this[_0x485b2a(0x14a)]=Array[_0x485b2a(0x157)]({'length':0x8},()=>new webgpu.Vector3()),this[_0x485b2a(0x15e)]=new webgpu.Vector3(),this['_tmpB']=new webgpu.Vector3(),this['_tmpC']=new webgpu.Vector3(),this[_0x485b2a(0x128)]=new webgpu.Vector3(),this[_0x485b2a(0x16d)]=new webgpu.Vector3(),this[_0x485b2a(0x16b)]=new webgpu.Vector3(),this['_tmpT']=new webgpu.Vector3(),this['_tmpQ']=new webgpu.Vector3(),this['_tmpN']=new webgpu.Vector3(),this['name']=_0x485b2a(0x12d),this[_0x485b2a(0x15b)](_0x1741ed);}[_0x5ce2e6(0x15b)](_0x2f82df){const _0x4817a5=_0x5ce2e6,_0x2345a3=this[_0x4817a5(0x130)];_0x2345a3&&(this[_0x4817a5(0x130)]=![]);this['_sourceObject']=_0x2f82df;this[_0x4817a5(0x167)]&&(this[_0x4817a5(0x167)][_0x4817a5(0x16f)][_0x4817a5(0x165)](),this[_0x4817a5(0x167)]=null);if(!_0x2f82df){_0x2345a3&&(this[_0x4817a5(0x130)]=!![]);return;}const _0x534010=[];_0x2f82df['updateWorldMatrix'](!![],!![]);const _0x3cb29d=_0x2f82df[_0x4817a5(0x144)][_0x4817a5(0x155)]()[_0x4817a5(0x142)]();_0x2f82df[_0x4817a5(0x14e)](_0x2346c9=>{const _0xc219b7=_0x4817a5;if(_0x2346c9[_0xc219b7(0x131)]){const _0x492743=_0x2346c9;if(_0x492743['geometry']){const _0x3d507d=_0x492743[_0xc219b7(0x16f)][_0xc219b7(0x155)](),_0x2b45d0=_0x3cb29d[_0xc219b7(0x155)]()['multiply'](_0x492743[_0xc219b7(0x144)]);_0x3d507d[_0xc219b7(0x124)](_0x2b45d0),_0x534010[_0xc219b7(0x13a)](_0x3d507d);}}});if(_0x534010[_0x4817a5(0x13e)]>0x0){const _0x513747=this[_0x4817a5(0x16a)](_0x534010);if(_0x513747){const _0x12ef6c=new webgpu.Mesh(_0x513747);this[_0x4817a5(0x167)]=_0x12ef6c;}}_0x2345a3&&(this['debugEnabled']=!![]);}[_0x5ce2e6(0x16a)](_0x1981a1){const _0x4f92dc=_0x5ce2e6;if(_0x1981a1[_0x4f92dc(0x13e)]===0x0)return null;if(_0x1981a1[_0x4f92dc(0x13e)]===0x1)return _0x1981a1[0x0];let _0x17f18d=0x0,_0x4a0529=0x0;for(const _0x2d3f1b of _0x1981a1){_0x17f18d+=_0x2d3f1b[_0x4f92dc(0x169)]['position']['count'],_0x2d3f1b[_0x4f92dc(0x173)]?_0x4a0529+=_0x2d3f1b['index'][_0x4f92dc(0x145)]:_0x4a0529+=_0x2d3f1b[_0x4f92dc(0x169)][_0x4f92dc(0x136)][_0x4f92dc(0x145)];}const _0x268bef=new Float32Array(_0x17f18d*0x3),_0x475ad3=new Uint32Array(_0x4a0529);let _0xfd8379=0x0,_0x4ba886=0x0;for(const _0x244998 of _0x1981a1){const _0x2d2d2a=_0x244998[_0x4f92dc(0x169)]['position'][_0x4f92dc(0x152)],_0x4ffc96=_0x244998['attributes'][_0x4f92dc(0x136)][_0x4f92dc(0x145)];for(let _0x2473bb=0x0;_0x2473bb<_0x4ffc96*0x3;_0x2473bb++){_0x268bef[_0xfd8379*0x3+_0x2473bb]=_0x2d2d2a[_0x2473bb];}if(_0x244998[_0x4f92dc(0x173)]){const _0x24ad33=_0x244998[_0x4f92dc(0x173)][_0x4f92dc(0x152)];for(let _0xad1e9d=0x0;_0xad1e9d<_0x244998['index'][_0x4f92dc(0x145)];_0xad1e9d++){_0x475ad3[_0x4ba886+_0xad1e9d]=_0x24ad33[_0xad1e9d]+_0xfd8379;}_0x4ba886+=_0x244998[_0x4f92dc(0x173)][_0x4f92dc(0x145)];}else {for(let _0x1c1f94=0x0;_0x1c1f94<_0x4ffc96;_0x1c1f94++){_0x475ad3[_0x4ba886+_0x1c1f94]=_0x1c1f94+_0xfd8379;}_0x4ba886+=_0x4ffc96;}_0xfd8379+=_0x4ffc96;}const _0x2e15ac=new webgpu.BufferGeometry();return _0x2e15ac[_0x4f92dc(0x158)](_0x4f92dc(0x136),new webgpu.BufferAttribute(_0x268bef,0x3)),_0x2e15ac[_0x4f92dc(0x175)](new webgpu.BufferAttribute(_0x475ad3,0x1)),_0x2e15ac;}['destroy'](){const _0x2930bc=_0x5ce2e6;this[_0x2930bc(0x130)]=![],this[_0x2930bc(0x167)]&&(this[_0x2930bc(0x167)]['geometry'][_0x2930bc(0x165)](),this['_mesh']=null),this[_0x2930bc(0x16c)]=null,super['destroy']();}[_0x5ce2e6(0x151)](_0x1d346a=new webgpu.Box3()){const _0x3bb902=_0x5ce2e6;_0x1d346a[_0x3bb902(0x14c)]();if(!this[_0x3bb902(0x16c)])return _0x1d346a;this[_0x3bb902(0x16c)][_0x3bb902(0x12e)](!![],!![]);const _0x3effd4=this[_0x3bb902(0x14a)];if(this[_0x3bb902(0x167)]){const _0x33987b=this[_0x3bb902(0x167)];_0x33987b[_0x3bb902(0x144)]['copy'](this[_0x3bb902(0x16c)]['matrixWorld']);const _0x5e0eb9=_0x33987b['geometry'];if(_0x5e0eb9){!_0x5e0eb9[_0x3bb902(0x15f)]&&_0x5e0eb9[_0x3bb902(0x12a)]();const _0x3f25f0=_0x5e0eb9[_0x3bb902(0x15f)];if(_0x3f25f0){this[_0x3bb902(0x14f)][_0x3bb902(0x121)](_0x33987b[_0x3bb902(0x144)]);const _0xac2e7=_0x3f25f0['min'],_0x48ddda=_0x3f25f0[_0x3bb902(0x16e)];_0x3effd4[0x0][_0x3bb902(0x138)](_0xac2e7['x'],_0xac2e7['y'],_0xac2e7['z']),_0x3effd4[0x1][_0x3bb902(0x138)](_0xac2e7['x'],_0xac2e7['y'],_0x48ddda['z']),_0x3effd4[0x2]['set'](_0xac2e7['x'],_0x48ddda['y'],_0xac2e7['z']),_0x3effd4[0x3]['set'](_0xac2e7['x'],_0x48ddda['y'],_0x48ddda['z']),_0x3effd4[0x4]['set'](_0x48ddda['x'],_0xac2e7['y'],_0xac2e7['z']),_0x3effd4[0x5][_0x3bb902(0x138)](_0x48ddda['x'],_0xac2e7['y'],_0x48ddda['z']),_0x3effd4[0x6][_0x3bb902(0x138)](_0x48ddda['x'],_0x48ddda['y'],_0xac2e7['z']),_0x3effd4[0x7]['set'](_0x48ddda['x'],_0x48ddda['y'],_0x48ddda['z']);for(const _0x22cdba of _0x3effd4){_0x22cdba[_0x3bb902(0x124)](this[_0x3bb902(0x14f)]),_0x1d346a[_0x3bb902(0x156)](_0x22cdba);}}}}return _0x1d346a;}[_0x5ce2e6(0x176)](_0x554f13,_0x186c29,_0x174f91){const _0x5ccc5a=_0x5ce2e6;if(!this['_sourceObject'])return [];this[_0x5ccc5a(0x16c)][_0x5ccc5a(0x12e)](!![],!![]);const _0x2103b3=[];if(this[_0x5ccc5a(0x167)]){const _0x2fb916=this[_0x5ccc5a(0x167)];_0x2fb916[_0x5ccc5a(0x144)][_0x5ccc5a(0x121)](this[_0x5ccc5a(0x16c)][_0x5ccc5a(0x144)]);const _0x57add0=_0x2fb916['geometry'];if(_0x57add0){!_0x57add0['boundingBox']&&_0x57add0[_0x5ccc5a(0x12a)]();const _0x5cbf30=_0x57add0[_0x5ccc5a(0x15f)];if(_0x5cbf30){const _0x1c9576=this[_0x5ccc5a(0x166)]['copy'](_0x5cbf30)[_0x5ccc5a(0x124)](_0x2fb916[_0x5ccc5a(0x144)]);if(this[_0x5ccc5a(0x164)](_0x554f13,_0x186c29,_0x174f91,_0x1c9576)){const _0x49e150=_0x57add0['getAttribute'](_0x5ccc5a(0x136));if(_0x49e150){const _0x11a6f9=_0x57add0[_0x5ccc5a(0x148)](),_0x503fbb=_0x11a6f9?Math[_0x5ccc5a(0x162)](_0x11a6f9[_0x5ccc5a(0x145)]/0x3):Math[_0x5ccc5a(0x162)](_0x49e150['count']/0x3);for(let _0x2398af=0x0;_0x2398af<_0x503fbb;_0x2398af++){const _0x389c93=_0x11a6f9?_0x11a6f9[_0x5ccc5a(0x127)](_0x2398af*0x3+0x0):_0x2398af*0x3+0x0,_0x5489cf=_0x11a6f9?_0x11a6f9['getX'](_0x2398af*0x3+0x1):_0x2398af*0x3+0x1,_0x490c63=_0x11a6f9?_0x11a6f9[_0x5ccc5a(0x127)](_0x2398af*0x3+0x2):_0x2398af*0x3+0x2;this[_0x5ccc5a(0x15e)][_0x5ccc5a(0x138)](_0x49e150[_0x5ccc5a(0x127)](_0x389c93),_0x49e150[_0x5ccc5a(0x12c)](_0x389c93),_0x49e150[_0x5ccc5a(0x13d)](_0x389c93))[_0x5ccc5a(0x124)](_0x2fb916['matrixWorld']),this[_0x5ccc5a(0x126)][_0x5ccc5a(0x138)](_0x49e150['getX'](_0x5489cf),_0x49e150[_0x5ccc5a(0x12c)](_0x5489cf),_0x49e150[_0x5ccc5a(0x13d)](_0x5489cf))['applyMatrix4'](_0x2fb916[_0x5ccc5a(0x144)]),this[_0x5ccc5a(0x14d)][_0x5ccc5a(0x138)](_0x49e150[_0x5ccc5a(0x127)](_0x490c63),_0x49e150[_0x5ccc5a(0x12c)](_0x490c63),_0x49e150[_0x5ccc5a(0x13d)](_0x490c63))[_0x5ccc5a(0x124)](_0x2fb916[_0x5ccc5a(0x144)]);const _0x214000=this[_0x5ccc5a(0x147)](_0x554f13,_0x186c29,this[_0x5ccc5a(0x15e)],this[_0x5ccc5a(0x126)],this['_tmpC'],_0x174f91);_0x214000&&_0x2103b3[_0x5ccc5a(0x13a)]({'distance':_0x214000[_0x5ccc5a(0x159)],'point':_0x214000[_0x5ccc5a(0x163)][_0x5ccc5a(0x155)](),'normal':_0x214000['normal'][_0x5ccc5a(0x155)]()});}}}}}}return _0x2103b3['sort']((_0x2b6ebd,_0x2da99c)=>_0x2b6ebd[_0x5ccc5a(0x159)]-_0x2da99c['distance']);}[_0x5ce2e6(0x150)](_0x57ad82,_0x5f237e,_0xaa41c){const _0x3a67fb=_0x5ce2e6,_0x32a97f=this[_0x3a67fb(0x176)](_0x57ad82,_0x5f237e,_0xaa41c);if(_0x32a97f[_0x3a67fb(0x13e)]>0x0)return _0x32a97f[0x0];return null;}[_0x5ce2e6(0x164)](_0x535b4e,_0x1e91f3,_0x59857c,_0x40c56e){const _0x514a14=_0x5ce2e6;let _0x8c10aa=0x0,_0x312fcc=_0x59857c;const _0x19118c=1e-8,_0x44e3b7=_0x9bfb32=>{const _0xe3bff6=_0x5dd5,_0x3f3044=_0x535b4e[_0x9bfb32],_0x260197=_0x1e91f3[_0x9bfb32],_0x333a97=_0x40c56e[_0xe3bff6(0x133)][_0x9bfb32],_0x4e3ee3=_0x40c56e[_0xe3bff6(0x16e)][_0x9bfb32];if(Math['abs'](_0x260197)<_0x19118c)return _0x3f3044>=_0x333a97&&_0x3f3044<=_0x4e3ee3;const _0x1c96fc=0x1/_0x260197;let _0x56f964,_0x49f14;return _0x260197>=0x0?(_0x56f964=(_0x333a97-_0x3f3044)*_0x1c96fc,_0x49f14=(_0x4e3ee3-_0x3f3044)*_0x1c96fc):(_0x56f964=(_0x4e3ee3-_0x3f3044)*_0x1c96fc,_0x49f14=(_0x333a97-_0x3f3044)*_0x1c96fc),_0x56f964>_0x8c10aa&&(_0x8c10aa=_0x56f964),_0x49f14<_0x312fcc&&(_0x312fcc=_0x49f14),_0x8c10aa<=_0x312fcc;};if(!_0x44e3b7('x')||!_0x44e3b7('y')||!_0x44e3b7('z'))return ![];const _0x36971b=Math[_0x514a14(0x16e)](0x0,_0x8c10aa);return _0x36971b<=_0x59857c;}[_0x5ce2e6(0x147)](_0x1e8014,_0x3909a7,_0x46e4a0,_0x3fbbad,_0xdb0e21,_0x37e18a){const _0x954a31=_0x5ce2e6,_0x28c273=1e-8,_0x5d2bbb=this[_0x954a31(0x128)][_0x954a31(0x121)](_0x3fbbad)[_0x954a31(0x172)](_0x46e4a0),_0x54d5df=this['_tmpEdge2'][_0x954a31(0x121)](_0xdb0e21)['sub'](_0x46e4a0),_0x5dfa39=this[_0x954a31(0x16b)][_0x954a31(0x168)](_0x3909a7,_0x54d5df),_0x54a549=_0x5d2bbb['dot'](_0x5dfa39);if(Math[_0x954a31(0x13f)](_0x54a549)<_0x28c273)return null;const _0x38f75b=0x1/_0x54a549,_0x4082ae=this['_tmpT'][_0x954a31(0x121)](_0x1e8014)[_0x954a31(0x172)](_0x46e4a0),_0x8179e8=_0x4082ae[_0x954a31(0x174)](_0x5dfa39)*_0x38f75b;if(_0x8179e8<0x0||_0x8179e8>0x1)return null;const _0x20ff83=this['_tmpQ']['crossVectors'](_0x4082ae,_0x5d2bbb),_0x5ed61c=_0x3909a7['dot'](_0x20ff83)*_0x38f75b;if(_0x5ed61c<0x0||_0x8179e8+_0x5ed61c>0x1)return null;const _0x4b11f0=_0x54d5df['dot'](_0x20ff83)*_0x38f75b;if(_0x4b11f0<0x0||_0x4b11f0>_0x37e18a)return null;const _0x2844c3=this[_0x954a31(0x13c)][_0x954a31(0x168)](_0x5d2bbb,_0x54d5df),_0x370e6e=_0x2844c3['lengthSq']();_0x370e6e>_0x28c273&&_0x2844c3[_0x954a31(0x129)](0x1/Math[_0x954a31(0x171)](_0x370e6e));_0x2844c3['dot'](_0x3909a7)>0x0&&_0x2844c3[_0x954a31(0x129)](-1);const _0x3d8a42=this['_tmpCorner']['copy'](_0x1e8014)['addScaledVector'](_0x3909a7,_0x4b11f0);return {'point':_0x3d8a42,'normal':_0x2844c3,'distance':_0x4b11f0};}[_0x5ce2e6(0x123)](){const _0x2c0152=_0x5ce2e6;return this[_0x2c0152(0x137)];}['createDebugObject'](){const _0x49f90e=_0x5ce2e6;if(!this[_0x49f90e(0x16c)])return null;const _0x3d320e=new webgpu.Object3D();_0x3d320e['name']=_0x49f90e(0x122),this[_0x49f90e(0x12f)]=[],this['_debugMaterial']=new webgpu.MeshBasicMaterial({'color':this[_0x49f90e(0x143)],'wireframe':!![],'transparent':!![],'opacity':this[_0x49f90e(0x134)]});if(this[_0x49f90e(0x167)]){const _0x53eb3c=this['_mesh'],_0x5f3e8d=_0x53eb3c['geometry'];if(_0x5f3e8d){const _0x43d9f6=new webgpu.Mesh(_0x5f3e8d,this[_0x49f90e(0x125)]);_0x3d320e['add'](_0x43d9f6),this[_0x49f90e(0x12f)][_0x49f90e(0x13a)]({'parent':_0x3d320e,'obj':_0x43d9f6});}}return _0x3d320e;}['destroyDebugObject'](_0x15f5de){const _0x464f73=_0x5ce2e6;for(const _0x3d3ef1 of this['_debugEntries']){_0x3d3ef1[_0x464f73(0x141)][_0x464f73(0x120)](_0x3d3ef1[_0x464f73(0x14b)]);}this[_0x464f73(0x12f)]=[],this[_0x464f73(0x125)]=null;}[_0x5ce2e6(0x15c)](){const _0x52925=_0x5ce2e6;if(!this[_0x52925(0x125)])return;this[_0x52925(0x125)][_0x52925(0x13b)][_0x52925(0x170)](this[_0x52925(0x143)]),this['_debugMaterial'][_0x52925(0x139)]=this[_0x52925(0x134)],this[_0x52925(0x125)][_0x52925(0x153)]=this[_0x52925(0x134)]<0x1,this[_0x52925(0x125)]['needsUpdate']=!![];}}
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
(function(_0x331525,_0x287cc5){var _0x413333=_0x2701,_0x321179=_0x331525();while(!![]){try{var _0x20f2e4=parseInt(_0x413333(0x11a))/0x1+-parseInt(_0x413333(0x122))/0x2*(parseInt(_0x413333(0x11b))/0x3)+-parseInt(_0x413333(0x123))/0x4*(parseInt(_0x413333(0x11f))/0x5)+parseInt(_0x413333(0x120))/0x6+-parseInt(_0x413333(0x11d))/0x7*(-parseInt(_0x413333(0x121))/0x8)+parseInt(_0x413333(0x11e))/0x9+-parseInt(_0x413333(0x11c))/0xa;if(_0x20f2e4===_0x287cc5)break;else _0x321179['push'](_0x321179['shift']());}catch(_0xdd33bc){_0x321179['push'](_0x321179['shift']());}}}(_0x3c61,0xec5f6));function _0x3c61(){var _0x21abef=['846419fhGxYk','12348567rCdcSM','55NmXwQx','9557604QVUgTF','40ZYVGul','102XyLPNf','13304MTSdxw','1794764FEagsP','35127CSvUBb','37624190HFWmts'];_0x3c61=function(){return _0x21abef;};return _0x3c61();}function _0x2701(_0x24d051,_0x532c84){_0x24d051=_0x24d051-0x11a;var _0x3c619d=_0x3c61();var _0x27016d=_0x3c619d[_0x24d051];return _0x27016d;}
|
|
163
163
|
|
|
164
|
-
(function(
|
|
164
|
+
(function(_0x58b58b,_0x4f8451){var _0x12b772=_0xf970,_0x4a0280=_0x58b58b();while(!![]){try{var _0x4c5cd5=-parseInt(_0x12b772(0x1c2))/0x1+parseInt(_0x12b772(0x1c7))/0x2*(-parseInt(_0x12b772(0x1c3))/0x3)+parseInt(_0x12b772(0x1be))/0x4*(-parseInt(_0x12b772(0x1bd))/0x5)+parseInt(_0x12b772(0x1c4))/0x6+parseInt(_0x12b772(0x1c1))/0x7*(parseInt(_0x12b772(0x1c0))/0x8)+-parseInt(_0x12b772(0x1c5))/0x9+-parseInt(_0x12b772(0x1c6))/0xa*(-parseInt(_0x12b772(0x1bf))/0xb);if(_0x4c5cd5===_0x4f8451)break;else _0x4a0280['push'](_0x4a0280['shift']());}catch(_0x9d483e){_0x4a0280['push'](_0x4a0280['shift']());}}}(_0x1a6e,0x6559a));function _0xf970(_0xc21441,_0xc70431){_0xc21441=_0xc21441-0x1bd;var _0x1a6e83=_0x1a6e();var _0xf970d=_0x1a6e83[_0xc21441];return _0xf970d;}function _0x1a6e(){var _0x3f117f=['1514310SnbfIP','477534QNIWBh','3vMOuJS','2693502evxsSS','5573115GDraqJ','6130130bNcEcY','15922ouEiiH','4020365yKpKBJ','4UyIEFs','22yjqfyf','24ZvUhBp'];_0x1a6e=function(){return _0x3f117f;};return _0x1a6e();}
|
|
165
165
|
|
|
166
166
|
exports.ASSET_POINTER_KEY = ASSET_POINTER_KEY;
|
|
167
167
|
exports.Actor = Actor;
|