1 |
- {"ast":null,"code":"import { PrepareUniformsForColorCurves } from \"./colorCurves.functions.js\";\n/**\n * Prepare the list of uniforms associated with the Image Processing effects.\n * @param uniforms The list of uniforms used in the effect\n * @param defines the list of defines currently in use\n */\nexport function PrepareUniformsForImageProcessing(uniforms, defines) {\n if (defines.EXPOSURE) {\n uniforms.push(\"exposureLinear\");\n }\n if (defines.CONTRAST) {\n uniforms.push(\"contrast\");\n }\n if (defines.COLORGRADING) {\n uniforms.push(\"colorTransformSettings\");\n }\n if (defines.VIGNETTE || defines.DITHER) {\n uniforms.push(\"vInverseScreenSize\");\n }\n if (defines.VIGNETTE) {\n uniforms.push(\"vignetteSettings1\");\n uniforms.push(\"vignetteSettings2\");\n }\n if (defines.COLORCURVES) {\n PrepareUniformsForColorCurves(uniforms);\n }\n if (defines.DITHER) {\n uniforms.push(\"ditherIntensity\");\n }\n}\n/**\n * Prepare the list of samplers associated with the Image Processing effects.\n * @param samplersList The list of uniforms used in the effect\n * @param defines the list of defines currently in use\n */\nexport function PrepareSamplersForImageProcessing(samplersList, defines) {\n if (defines.COLORGRADING) {\n samplersList.push(\"txColorTransform\");\n }\n}","map":{"version":3,"names":["PrepareUniformsForColorCurves","PrepareUniformsForImageProcessing","uniforms","defines","EXPOSURE","push","CONTRAST","COLORGRADING","VIGNETTE","DITHER","COLORCURVES","PrepareSamplersForImageProcessing","samplersList"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/imageProcessingConfiguration.functions.js"],"sourcesContent":["import { PrepareUniformsForColorCurves } from \"./colorCurves.functions.js\";\n/**\n * Prepare the list of uniforms associated with the Image Processing effects.\n * @param uniforms The list of uniforms used in the effect\n * @param defines the list of defines currently in use\n */\nexport function PrepareUniformsForImageProcessing(uniforms, defines) {\n if (defines.EXPOSURE) {\n uniforms.push(\"exposureLinear\");\n }\n if (defines.CONTRAST) {\n uniforms.push(\"contrast\");\n }\n if (defines.COLORGRADING) {\n uniforms.push(\"colorTransformSettings\");\n }\n if (defines.VIGNETTE || defines.DITHER) {\n uniforms.push(\"vInverseScreenSize\");\n }\n if (defines.VIGNETTE) {\n uniforms.push(\"vignetteSettings1\");\n uniforms.push(\"vignetteSettings2\");\n }\n if (defines.COLORCURVES) {\n PrepareUniformsForColorCurves(uniforms);\n }\n if (defines.DITHER) {\n uniforms.push(\"ditherIntensity\");\n }\n}\n/**\n * Prepare the list of samplers associated with the Image Processing effects.\n * @param samplersList The list of uniforms used in the effect\n * @param defines the list of defines currently in use\n */\nexport function PrepareSamplersForImageProcessing(samplersList, defines) {\n if (defines.COLORGRADING) {\n samplersList.push(\"txColorTransform\");\n }\n}\n"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,4BAA4B;AAC1E;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iCAAiCA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACjE,IAAIA,OAAO,CAACC,QAAQ,EAAE;IAClBF,QAAQ,CAACG,IAAI,CAAC,gBAAgB,CAAC;EACnC;EACA,IAAIF,OAAO,CAACG,QAAQ,EAAE;IAClBJ,QAAQ,CAACG,IAAI,CAAC,UAAU,CAAC;EAC7B;EACA,IAAIF,OAAO,CAACI,YAAY,EAAE;IACtBL,QAAQ,CAACG,IAAI,CAAC,wBAAwB,CAAC;EAC3C;EACA,IAAIF,OAAO,CAACK,QAAQ,IAAIL,OAAO,CAACM,MAAM,EAAE;IACpCP,QAAQ,CAACG,IAAI,CAAC,oBAAoB,CAAC;EACvC;EACA,IAAIF,OAAO,CAACK,QAAQ,EAAE;IAClBN,QAAQ,CAACG,IAAI,CAAC,mBAAmB,CAAC;IAClCH,QAAQ,CAACG,IAAI,CAAC,mBAAmB,CAAC;EACtC;EACA,IAAIF,OAAO,CAACO,WAAW,EAAE;IACrBV,6BAA6B,CAACE,QAAQ,CAAC;EAC3C;EACA,IAAIC,OAAO,CAACM,MAAM,EAAE;IAChBP,QAAQ,CAACG,IAAI,CAAC,iBAAiB,CAAC;EACpC;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASM,iCAAiCA,CAACC,YAAY,EAAET,OAAO,EAAE;EACrE,IAAIA,OAAO,CAACI,YAAY,EAAE;IACtBK,YAAY,CAACP,IAAI,CAAC,kBAAkB,CAAC;EACzC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|