text: (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{153:function(e,t,n){"use strict";t.a=n.p+"09099a357bd30f8395900a6a912b39dd.glb"},206:function(e,t,n){"use strict";t.a=n.p+"a31875b76d39f6458a6e5bc68acee61a.jpg"},24:function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultSceneWithTexture",(function(){return d}));var r=n(38),a=n(92),o=n(30),i=n(82),u=n(45),c=n(223),s=n(35),l=n(206),f=n(153),h=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}c((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},d=function(){var e=this;this.createScene=function(t,n){return h(e,void 0,void 0,(function(){var e,h,d,w,b;return p(this,(function(p){switch(p.label){case 0:return(e=new r.a(t)).dispose(),(e=new r.a(t)).meshes&&e.meshes.forEach((function(e){return e.dispose()})),(h=new a.a("my first camera",Math.PI/1.9,Math.PI/2.5,150,new o.e(0,0,0),e)).setTarget(o.e.Zero()),h.attachControl(n,!0),h.upperBetaLimit=Math.PI/2*.99,new i.a("light",new o.e(1,1,0),e).intensity=.8,(d=c.b.CreateTiledBox("box",{depth:10,width:8,height:12},e)).position.y=6,d.position.x=-5,d.position.z=-4,e.resetCachedMaterial(),(w=e.getMeshByName("hauntedHouse"))&&w.dispose(),[4,c.c.ImportMeshAsync("","",f.a,e,void 0,".glb")];case 1:return p.sent(),(b=new u.a("ground",e)).diffuseTexture=new s.a(l.a,e),c.a.CreateGroundFromHeightMap("ground",l.a,800,800,0,0,0,e,!1).material=b,[2,e]}}))}))}};t.default=new d}}]);
  //# sourceMappingURL=6.babylonBundle.js.map