70f9f4cdbc24729a9cd7a55f30e0c1dc47924076b0fa0614cabaa2cc7563fc45.json 4.7 KB

1
  1. {"ast":null,"code":"import { PostProcess } from \"./postProcess.js\";\n\n/**\n * Extracts highlights from the image\n * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses\n */\nexport class HighlightsPostProcess extends PostProcess {\n /**\n * Gets a string identifying the name of the class\n * @returns \"HighlightsPostProcess\" string\n */\n getClassName() {\n return \"HighlightsPostProcess\";\n }\n /**\n * Extracts highlights from the image\n * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses\n * @param name The name of the effect.\n * @param options The required width/height ratio to downsize to before computing the render pass.\n * @param camera The camera to apply the render pass to.\n * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)\n * @param engine The engine which the post process will be applied. (default: current engine)\n * @param reusable If the post process can be reused on the same frame. (default: false)\n * @param textureType Type of texture for the post process (default: Engine.TEXTURETYPE_UNSIGNED_BYTE)\n */\n constructor(name, options, camera, samplingMode, engine, reusable, textureType = 0) {\n super(name, \"highlights\", null, null, options, camera, samplingMode, engine, reusable, null, textureType);\n }\n _gatherImports(useWebGPU, list) {\n if (useWebGPU) {\n this._webGPUReady = true;\n list.push(Promise.all([import(\"../ShadersWGSL/highlights.fragment.js\")]));\n } else {\n list.push(Promise.all([import(\"../Shaders/highlights.fragment.js\")]));\n }\n super._gatherImports(useWebGPU, list);\n }\n}","map":{"version":3,"names":["PostProcess","HighlightsPostProcess","getClassName","constructor","name","options","camera","samplingMode","engine","reusable","textureType","_gatherImports","useWebGPU","list","_webGPUReady","push","Promise","all"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/PostProcesses/highlightsPostProcess.js"],"sourcesContent":["import { PostProcess } from \"./postProcess.js\";\n\n/**\n * Extracts highlights from the image\n * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses\n */\nexport class HighlightsPostProcess extends PostProcess {\n /**\n * Gets a string identifying the name of the class\n * @returns \"HighlightsPostProcess\" string\n */\n getClassName() {\n return \"HighlightsPostProcess\";\n }\n /**\n * Extracts highlights from the image\n * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses\n * @param name The name of the effect.\n * @param options The required width/height ratio to downsize to before computing the render pass.\n * @param camera The camera to apply the render pass to.\n * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)\n * @param engine The engine which the post process will be applied. (default: current engine)\n * @param reusable If the post process can be reused on the same frame. (default: false)\n * @param textureType Type of texture for the post process (default: Engine.TEXTURETYPE_UNSIGNED_BYTE)\n */\n constructor(name, options, camera, samplingMode, engine, reusable, textureType = 0) {\n super(name, \"highlights\", null, null, options, camera, samplingMode, engine, reusable, null, textureType);\n }\n _gatherImports(useWebGPU, list) {\n if (useWebGPU) {\n this._webGPUReady = true;\n list.push(Promise.all([import(\"../ShadersWGSL/highlights.fragment.js\")]));\n }\n else {\n list.push(Promise.all([import(\"../Shaders/highlights.fragment.js\")]));\n }\n super._gatherImports(useWebGPU, list);\n }\n}\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,kBAAkB;;AAE9C;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,SAASD,WAAW,CAAC;EACnD;AACJ;AACA;AACA;EACIE,YAAYA,CAAA,EAAG;IACX,OAAO,uBAAuB;EAClC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAEC,YAAY,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,GAAG,CAAC,EAAE;IAChF,KAAK,CAACN,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAEC,YAAY,EAAEC,MAAM,EAAEC,QAAQ,EAAE,IAAI,EAAEC,WAAW,CAAC;EAC7G;EACAC,cAAcA,CAACC,SAAS,EAAEC,IAAI,EAAE;IAC5B,IAAID,SAAS,EAAE;MACX,IAAI,CAACE,YAAY,GAAG,IAAI;MACxBD,IAAI,CAACE,IAAI,CAACC,OAAO,CAACC,GAAG,CAAC,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC;IAC7E,CAAC,MACI;MACDJ,IAAI,CAACE,IAAI,CAACC,OAAO,CAACC,GAAG,CAAC,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC,CAAC;IACzE;IACA,KAAK,CAACN,cAAc,CAACC,SAAS,EAAEC,IAAI,CAAC;EACzC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}