{"ast":null,"code":"import { ThinBlurPostProcess } from \"../../../PostProcesses/thinBlurPostProcess.js\";\nimport { FrameGraphPostProcessTask } from \"./postProcessTask.js\";\nimport { Vector2 } from \"../../../Maths/math.vector.js\";\n/**\n * Task which applies a blur post process.\n */\nexport class FrameGraphBlurTask extends FrameGraphPostProcessTask {\n /**\n * Constructs a new blur task.\n * @param name Name of the task.\n * @param frameGraph Frame graph this task is associated with.\n * @param thinPostProcess The thin post process to use for the blur effect.\n */\n constructor(name, frameGraph, thinPostProcess) {\n super(name, frameGraph, thinPostProcess || new ThinBlurPostProcess(name, frameGraph.engine, new Vector2(1, 0), 10));\n }\n record(skipCreationOfDisabledPasses = false, additionalExecute, additionalBindings) {\n const pass = super.record(skipCreationOfDisabledPasses, additionalExecute, additionalBindings);\n this.postProcess.textureWidth = this._outputWidth;\n this.postProcess.textureHeight = this._outputHeight;\n return pass;\n }\n}","map":{"version":3,"names":["ThinBlurPostProcess","FrameGraphPostProcessTask","Vector2","FrameGraphBlurTask","constructor","name","frameGraph","thinPostProcess","engine","record","skipCreationOfDisabledPasses","additionalExecute","additionalBindings","pass","postProcess","textureWidth","_outputWidth","textureHeight","_outputHeight"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FrameGraph/Tasks/PostProcesses/blurTask.js"],"sourcesContent":["import { ThinBlurPostProcess } from \"../../../PostProcesses/thinBlurPostProcess.js\";\nimport { FrameGraphPostProcessTask } from \"./postProcessTask.js\";\nimport { Vector2 } from \"../../../Maths/math.vector.js\";\n/**\n * Task which applies a blur post process.\n */\nexport class FrameGraphBlurTask extends FrameGraphPostProcessTask {\n /**\n * Constructs a new blur task.\n * @param name Name of the task.\n * @param frameGraph Frame graph this task is associated with.\n * @param thinPostProcess The thin post process to use for the blur effect.\n */\n constructor(name, frameGraph, thinPostProcess) {\n super(name, frameGraph, thinPostProcess || new ThinBlurPostProcess(name, frameGraph.engine, new Vector2(1, 0), 10));\n }\n record(skipCreationOfDisabledPasses = false, additionalExecute, additionalBindings) {\n const pass = super.record(skipCreationOfDisabledPasses, additionalExecute, additionalBindings);\n this.postProcess.textureWidth = this._outputWidth;\n this.postProcess.textureHeight = this._outputHeight;\n return pass;\n }\n}\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,+CAA+C;AACnF,SAASC,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,OAAO,QAAQ,+BAA+B;AACvD;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,SAASF,yBAAyB,CAAC;EAC9D;AACJ;AACA;AACA;AACA;AACA;EACIG,WAAWA,CAACC,IAAI,EAAEC,UAAU,EAAEC,eAAe,EAAE;IAC3C,KAAK,CAACF,IAAI,EAAEC,UAAU,EAAEC,eAAe,IAAI,IAAIP,mBAAmB,CAACK,IAAI,EAAEC,UAAU,CAACE,MAAM,EAAE,IAAIN,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;EACvH;EACAO,MAAMA,CAACC,4BAA4B,GAAG,KAAK,EAAEC,iBAAiB,EAAEC,kBAAkB,EAAE;IAChF,MAAMC,IAAI,GAAG,KAAK,CAACJ,MAAM,CAACC,4BAA4B,EAAEC,iBAAiB,EAAEC,kBAAkB,CAAC;IAC9F,IAAI,CAACE,WAAW,CAACC,YAAY,GAAG,IAAI,CAACC,YAAY;IACjD,IAAI,CAACF,WAAW,CAACG,aAAa,GAAG,IAAI,CAACC,aAAa;IACnD,OAAOL,IAAI;EACf;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}