1 |
- {"ast":null,"code":"import { CubeMapToSphericalPolynomialTools } from \"../../Misc/HighDynamicRange/cubemapToSphericalPolynomial.js\";\nimport { BaseTexture } from \"./baseTexture.js\";\nBaseTexture.prototype.forceSphericalPolynomialsRecompute = function () {\n if (this._texture) {\n this._texture._sphericalPolynomial = null;\n this._texture._sphericalPolynomialPromise = null;\n this._texture._sphericalPolynomialComputed = false;\n }\n};\nObject.defineProperty(BaseTexture.prototype, \"sphericalPolynomial\", {\n get: function () {\n if (this._texture) {\n if (this._texture._sphericalPolynomial || this._texture._sphericalPolynomialComputed) {\n return this._texture._sphericalPolynomial;\n }\n if (this._texture.isReady) {\n if (!this._texture._sphericalPolynomialPromise) {\n this._texture._sphericalPolynomialPromise = CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this);\n if (this._texture._sphericalPolynomialPromise === null) {\n this._texture._sphericalPolynomialComputed = true;\n } else {\n this._texture._sphericalPolynomialPromise.then(sphericalPolynomial => {\n this._texture._sphericalPolynomial = sphericalPolynomial;\n this._texture._sphericalPolynomialComputed = true;\n });\n }\n }\n return null;\n }\n }\n return null;\n },\n set: function (value) {\n if (this._texture) {\n this._texture._sphericalPolynomial = value;\n }\n },\n enumerable: true,\n configurable: true\n});","map":{"version":3,"names":["CubeMapToSphericalPolynomialTools","BaseTexture","prototype","forceSphericalPolynomialsRecompute","_texture","_sphericalPolynomial","_sphericalPolynomialPromise","_sphericalPolynomialComputed","Object","defineProperty","get","isReady","ConvertCubeMapTextureToSphericalPolynomial","then","sphericalPolynomial","set","value","enumerable","configurable"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Textures/baseTexture.polynomial.js"],"sourcesContent":["import { CubeMapToSphericalPolynomialTools } from \"../../Misc/HighDynamicRange/cubemapToSphericalPolynomial.js\";\nimport { BaseTexture } from \"./baseTexture.js\";\nBaseTexture.prototype.forceSphericalPolynomialsRecompute = function () {\n if (this._texture) {\n this._texture._sphericalPolynomial = null;\n this._texture._sphericalPolynomialPromise = null;\n this._texture._sphericalPolynomialComputed = false;\n }\n};\nObject.defineProperty(BaseTexture.prototype, \"sphericalPolynomial\", {\n get: function () {\n if (this._texture) {\n if (this._texture._sphericalPolynomial || this._texture._sphericalPolynomialComputed) {\n return this._texture._sphericalPolynomial;\n }\n if (this._texture.isReady) {\n if (!this._texture._sphericalPolynomialPromise) {\n this._texture._sphericalPolynomialPromise = CubeMapToSphericalPolynomialTools.ConvertCubeMapTextureToSphericalPolynomial(this);\n if (this._texture._sphericalPolynomialPromise === null) {\n this._texture._sphericalPolynomialComputed = true;\n }\n else {\n this._texture._sphericalPolynomialPromise.then((sphericalPolynomial) => {\n this._texture._sphericalPolynomial = sphericalPolynomial;\n this._texture._sphericalPolynomialComputed = true;\n });\n }\n }\n return null;\n }\n }\n return null;\n },\n set: function (value) {\n if (this._texture) {\n this._texture._sphericalPolynomial = value;\n }\n },\n enumerable: true,\n configurable: true,\n});\n"],"mappings":"AAAA,SAASA,iCAAiC,QAAQ,6DAA6D;AAC/G,SAASC,WAAW,QAAQ,kBAAkB;AAC9CA,WAAW,CAACC,SAAS,CAACC,kCAAkC,GAAG,YAAY;EACnE,IAAI,IAAI,CAACC,QAAQ,EAAE;IACf,IAAI,CAACA,QAAQ,CAACC,oBAAoB,GAAG,IAAI;IACzC,IAAI,CAACD,QAAQ,CAACE,2BAA2B,GAAG,IAAI;IAChD,IAAI,CAACF,QAAQ,CAACG,4BAA4B,GAAG,KAAK;EACtD;AACJ,CAAC;AACDC,MAAM,CAACC,cAAc,CAACR,WAAW,CAACC,SAAS,EAAE,qBAAqB,EAAE;EAChEQ,GAAG,EAAE,SAAAA,CAAA,EAAY;IACb,IAAI,IAAI,CAACN,QAAQ,EAAE;MACf,IAAI,IAAI,CAACA,QAAQ,CAACC,oBAAoB,IAAI,IAAI,CAACD,QAAQ,CAACG,4BAA4B,EAAE;QAClF,OAAO,IAAI,CAACH,QAAQ,CAACC,oBAAoB;MAC7C;MACA,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