123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- System.register(["cc"], function (_export, _context) {
- "use strict";
- var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, gfx, _crd, SampleCount;
- function makeMSAA() {
- return {
- enabled: false,
- sampleCount: SampleCount.X4
- };
- }
- function fillRequiredMSAA(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.sampleCount === undefined) {
- value.sampleCount = SampleCount.X4;
- }
- }
- function makeHBAO() {
- return {
- enabled: false,
- radiusScale: 1,
- angleBiasDegree: 10,
- blurSharpness: 3,
- aoSaturation: 1,
- needBlur: false
- };
- }
- function fillRequiredHBAO(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.radiusScale === undefined) {
- value.radiusScale = 1;
- }
- if (value.angleBiasDegree === undefined) {
- value.angleBiasDegree = 10;
- }
- if (value.blurSharpness === undefined) {
- value.blurSharpness = 3;
- }
- if (value.aoSaturation === undefined) {
- value.aoSaturation = 1;
- }
- if (value.needBlur === undefined) {
- value.needBlur = false;
- }
- }
- function makeBloom() {
- return {
- enabled: false,
- material: null,
- enableAlphaMask: false,
- iterations: 3,
- threshold: 0.8,
- intensity: 2.3
- };
- }
- function fillRequiredBloom(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.material === undefined) {
- value.material = null;
- }
- if (value.enableAlphaMask === undefined) {
- value.enableAlphaMask = false;
- }
- if (value.iterations === undefined) {
- value.iterations = 3;
- }
- if (value.threshold === undefined) {
- value.threshold = 0.8;
- }
- if (value.intensity === undefined) {
- value.intensity = 2.3;
- }
- }
- function makeColorGrading() {
- return {
- enabled: false,
- material: null,
- contribute: 1,
- colorGradingMap: null
- };
- }
- function fillRequiredColorGrading(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.material === undefined) {
- value.material = null;
- }
- if (value.contribute === undefined) {
- value.contribute = 1;
- }
- if (value.colorGradingMap === undefined) {
- value.colorGradingMap = null;
- }
- }
- function makeFSR() {
- return {
- enabled: false,
- material: null,
- sharpness: 0.8
- };
- }
- function fillRequiredFSR(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.material === undefined) {
- value.material = null;
- }
- if (value.sharpness === undefined) {
- value.sharpness = 0.8;
- }
- }
- function makeFXAA() {
- return {
- enabled: false,
- material: null
- };
- }
- function fillRequiredFXAA(value) {
- if (value.enabled === undefined) {
- value.enabled = false;
- }
- if (value.material === undefined) {
- value.material = null;
- }
- }
- function makeToneMapping() {
- return {
- material: null
- };
- }
- function fillRequiredToneMapping(value) {
- if (value.material === undefined) {
- value.material = null;
- }
- }
- function makePipelineSettings() {
- return {
- msaa: makeMSAA(),
- enableShadingScale: false,
- shadingScale: 0.5,
- bloom: makeBloom(),
- toneMapping: makeToneMapping(),
- colorGrading: makeColorGrading(),
- fsr: makeFSR(),
- fxaa: makeFXAA()
- };
- }
- function fillRequiredPipelineSettings(value) {
- if (!value.msaa) {
- value.msaa = makeMSAA();
- } else {
- fillRequiredMSAA(value.msaa);
- }
- if (value.enableShadingScale === undefined) {
- value.enableShadingScale = false;
- }
- if (value.shadingScale === undefined) {
- value.shadingScale = 0.5;
- }
- if (!value.bloom) {
- value.bloom = makeBloom();
- } else {
- fillRequiredBloom(value.bloom);
- }
- if (!value.toneMapping) {
- value.toneMapping = makeToneMapping();
- } else {
- fillRequiredToneMapping(value.toneMapping);
- }
- if (!value.colorGrading) {
- value.colorGrading = makeColorGrading();
- } else {
- fillRequiredColorGrading(value.colorGrading);
- }
- if (!value.fsr) {
- value.fsr = makeFSR();
- } else {
- fillRequiredFSR(value.fsr);
- }
- if (!value.fxaa) {
- value.fxaa = makeFXAA();
- } else {
- fillRequiredFXAA(value.fxaa);
- }
- }
- _export({
- makeMSAA: makeMSAA,
- fillRequiredMSAA: fillRequiredMSAA,
- makeHBAO: makeHBAO,
- fillRequiredHBAO: fillRequiredHBAO,
- makeBloom: makeBloom,
- fillRequiredBloom: fillRequiredBloom,
- makeColorGrading: makeColorGrading,
- fillRequiredColorGrading: fillRequiredColorGrading,
- makeFSR: makeFSR,
- fillRequiredFSR: fillRequiredFSR,
- makeFXAA: makeFXAA,
- fillRequiredFXAA: fillRequiredFXAA,
- makeToneMapping: makeToneMapping,
- fillRequiredToneMapping: fillRequiredToneMapping,
- makePipelineSettings: makePipelineSettings,
- fillRequiredPipelineSettings: fillRequiredPipelineSettings
- });
- return {
- setters: [function (_cc) {
- _cclegacy = _cc.cclegacy;
- __checkObsolete__ = _cc.__checkObsolete__;
- __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
- gfx = _cc.gfx;
- }],
- execute: function () {
- _crd = true;
- _cclegacy._RF.push({}, "cbf30kCUX9A3K+QpVC6wnzx", "builtin-pipeline-types", undefined);
- /*
- Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
-
- https://www.cocos.com
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights to
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is furnished to do so,
- subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- */
- /**
- * ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
- * The following section is auto-generated.
- * ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
- */
- /* eslint-disable max-len */
- __checkObsolete__(['Material', 'Texture2D', 'gfx']);
- ({
- SampleCount
- } = gfx);
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=f84f3b58ec61e2a9c03c5f86bacdfd0d6a2a3647.js.map
|