window.__require=function e(r,t,n){function c(a,o){if(!t[a]){if(!r[a]){var u=a.split("/");if(u=u[u.length-1],!r[u]){var d="function"==typeof __require&&__require;if(!o&&d)return d(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+a+"'")}}var p=t[a]={exports:{}};r[a][0].call(p.exports,function(e){return c(r[a][1][e]||e)},p,p.exports,e,r,t,n)}return t[a].exports}for(var i="function"==typeof __require&&__require,a=0;a<n.length;a++)c(n[a]);return c}({Home:[function(e,r,t){"use strict";cc._RF.push(r,"24d006uysBPPL1WfuFgiflf","Home"),Object.defineProperty(t,"__esModule",{value:!0});var n=cc._decorator,c=n.ccclass,i=n.property,a=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.camera=null,r.targetsp=null,r.image=null,r.renderTexture=null,r}return __extends(r,e),r.prototype.start=function(){var e=this;cc.loader.loadRes("1_0",cc.SpriteFrame,function(r,t){r?cc.error(r):(e.image.spriteFrame=t,e.scheduleOnce(function(){e.camera.targetTexture&&e.camera.targetTexture.destroy(),e.renderTexture=new cc.RenderTexture,e.renderTexture.packable=!1,e.renderTexture.initWithSize(e.image.node.width,e.image.node.height,cc.gfx.RB_FMT_S8),e.camera.targetTexture=e.renderTexture,e.scheduleOnce(function(){e.camera.render(e.image.node);var r=e.renderTexture.readPixels(),t=new cc.RenderTexture;t.packable=!1,t.initWithSize(580,670),t.initWithData(Uint8Array.from(r),cc.Texture2D.PixelFormat.RGBA8888,580,670),e.targetsp.spriteFrame=new cc.SpriteFrame(t)})}))})},__decorate([i(cc.Camera)],r.prototype,"camera",void 0),__decorate([i(cc.Sprite)],r.prototype,"targetsp",void 0),__decorate([i(cc.Sprite)],r.prototype,"image",void 0),r=__decorate([c],r)}(cc.Component);t.default=a,cc._RF.pop()},{}]},{},["Home"]);