f1d7e6a81030e4e0c1b3d01f52ffa2b27c12141e6eee6413377f0a25a2bcbeeb.json 4.1 KB

1
  1. {"ast":null,"code":"import { CopyTextureToTexture } from \"../../Misc/copyTextureToTexture.js\";\n/** @internal */\nexport class FluidRenderingDepthTextureCopy {\n get depthRTWrapper() {\n return this._depthRTWrapper;\n }\n constructor(engine, width, height, samples = 1) {\n this._engine = engine;\n this._copyTextureToTexture = new CopyTextureToTexture(engine, true);\n this._depthRTWrapper = this._engine.createRenderTargetTexture({\n width,\n height\n }, {\n generateMipMaps: false,\n type: 0,\n format: 6,\n samplingMode: 1,\n generateDepthBuffer: true,\n generateStencilBuffer: false,\n samples,\n noColorAttachment: true,\n label: \"FluidRenderingDepthTextureCopyRTT\"\n });\n const depthTexture = this._depthRTWrapper.createDepthStencilTexture(0, false, false, 1, undefined, \"FluidRenderingDepthTextureCopyRTTDepthStencil\");\n depthTexture.label = `FluidDepthTextureCopy${width}x${height}x${samples}`;\n }\n copy(source) {\n return this._copyTextureToTexture.copy(source, this._depthRTWrapper);\n }\n dispose() {\n this._depthRTWrapper.dispose();\n this._copyTextureToTexture.dispose();\n }\n}","map":{"version":3,"names":["CopyTextureToTexture","FluidRenderingDepthTextureCopy","depthRTWrapper","_depthRTWrapper","constructor","engine","width","height","samples","_engine","_copyTextureToTexture","createRenderTargetTexture","generateMipMaps","type","format","samplingMode","generateDepthBuffer","generateStencilBuffer","noColorAttachment","label","depthTexture","createDepthStencilTexture","undefined","copy","source","dispose"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js"],"sourcesContent":["\nimport { CopyTextureToTexture } from \"../../Misc/copyTextureToTexture.js\";\n/** @internal */\nexport class FluidRenderingDepthTextureCopy {\n get depthRTWrapper() {\n return this._depthRTWrapper;\n }\n constructor(engine, width, height, samples = 1) {\n this._engine = engine;\n this._copyTextureToTexture = new CopyTextureToTexture(engine, true);\n this._depthRTWrapper = this._engine.createRenderTargetTexture({ width, height }, {\n generateMipMaps: false,\n type: 0,\n format: 6,\n samplingMode: 1,\n generateDepthBuffer: true,\n generateStencilBuffer: false,\n samples,\n noColorAttachment: true,\n label: \"FluidRenderingDepthTextureCopyRTT\",\n });\n const depthTexture = this._depthRTWrapper.createDepthStencilTexture(0, false, false, 1, undefined, \"FluidRenderingDepthTextureCopyRTTDepthStencil\");\n depthTexture.label = `FluidDepthTextureCopy${width}x${height}x${samples}`;\n }\n copy(source) {\n return this._copyTextureToTexture.copy(source, this._depthRTWrapper);\n }\n dispose() {\n this._depthRTWrapper.dispose();\n this._copyTextureToTexture.dispose();\n }\n}\n"],"mappings":"AACA,SAASA,oBAAoB,QAAQ,oCAAoC;AACzE;AACA,OAAO,MAAMC,8BAA8B,CAAC;EACxC,IAAIC,cAAcA,CAAA,EAAG;IACjB,OAAO,IAAI,CAACC,eAAe;EAC/B;EACAC,WAAWA,CAACC,MAAM,EAAEC,KAAK,EAAEC,MAAM,EAAEC,OAAO,GAAG,CAAC,EAAE;IAC5C,IAAI,CAACC,OAAO,GAAGJ,MAAM;IACrB,IAAI,CAACK,qBAAqB,GAAG,IAAIV,oBAAoB,CAACK,MAAM,EAAE,IAAI,CAAC;IACnE,IAAI,CAACF,eAAe,GAAG,IAAI,CAACM,OAAO,CAACE,yBAAyB,CAAC;MAAEL,KAAK;MAAEC;IAAO,CAAC,EAAE;MAC7EK,eAAe,EAAE,KAAK;MACtBC,IAAI,EAAE,CAAC;MACPC,MAAM,EAAE,CAAC;MACTC,YAAY,EAAE,CAAC;MACfC,mBAAmB,EAAE,IAAI;MACzBC,qBAAqB,EAAE,KAAK;MAC5BT,OAAO;MACPU,iBAAiB,EAAE,IAAI;MACvBC,KAAK,EAAE;IACX,CAAC,CAAC;IACF,MAAMC,YAAY,GAAG,IAAI,CAACjB,eAAe,CAACkB,yBAAyB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAEC,SAAS,EAAE,+CAA+C,CA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