{"ast":null,"code":"import { AbstractEngine } from \"../abstractEngine.js\";\nimport \"./abstractEngine.alpha.js\";\nAbstractEngine.prototype.getInputElement = function () {\n return this._renderingCanvas;\n};\nAbstractEngine.prototype.getDepthFunction = function () {\n return this._depthCullingState.depthFunc;\n};\nAbstractEngine.prototype.setDepthFunction = function (depthFunc) {\n this._depthCullingState.depthFunc = depthFunc;\n};\nAbstractEngine.prototype.setDepthFunctionToGreater = function () {\n this.setDepthFunction(516);\n};\nAbstractEngine.prototype.setDepthFunctionToGreaterOrEqual = function () {\n this.setDepthFunction(518);\n};\nAbstractEngine.prototype.setDepthFunctionToLess = function () {\n this.setDepthFunction(513);\n};\nAbstractEngine.prototype.setDepthFunctionToLessOrEqual = function () {\n this.setDepthFunction(515);\n};\nAbstractEngine.prototype.getDepthWrite = function () {\n return this._depthCullingState.depthMask;\n};\nAbstractEngine.prototype.setDepthWrite = function (enable) {\n this._depthCullingState.depthMask = enable;\n};\nAbstractEngine.prototype.getStencilBuffer = function () {\n return this._stencilState.stencilTest;\n};\nAbstractEngine.prototype.setStencilBuffer = function (enable) {\n this._stencilState.stencilTest = enable;\n};\nAbstractEngine.prototype.getStencilMask = function () {\n return this._stencilState.stencilMask;\n};\nAbstractEngine.prototype.setStencilMask = function (mask) {\n this._stencilState.stencilMask = mask;\n};\nAbstractEngine.prototype.getStencilFunction = function () {\n return this._stencilState.stencilFunc;\n};\nAbstractEngine.prototype.getStencilFunctionReference = function () {\n return this._stencilState.stencilFuncRef;\n};\nAbstractEngine.prototype.getStencilFunctionMask = function () {\n return this._stencilState.stencilFuncMask;\n};\nAbstractEngine.prototype.setStencilFunction = function (stencilFunc) {\n this._stencilState.stencilFunc = stencilFunc;\n};\nAbstractEngine.prototype.setStencilFunctionReference = function (reference) {\n this._stencilState.stencilFuncRef = reference;\n};\nAbstractEngine.prototype.setStencilFunctionMask = function (mask) {\n this._stencilState.stencilFuncMask = mask;\n};\nAbstractEngine.prototype.getStencilOperationFail = function () {\n return this._stencilState.stencilOpStencilFail;\n};\nAbstractEngine.prototype.getStencilOperationDepthFail = function () {\n return this._stencilState.stencilOpDepthFail;\n};\nAbstractEngine.prototype.getStencilOperationPass = function () {\n return this._stencilState.stencilOpStencilDepthPass;\n};\nAbstractEngine.prototype.setStencilOperationFail = function (operation) {\n this._stencilState.stencilOpStencilFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationDepthFail = function (operation) {\n this._stencilState.stencilOpDepthFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationPass = function (operation) {\n this._stencilState.stencilOpStencilDepthPass = operation;\n};\nAbstractEngine.prototype.cacheStencilState = function () {\n this._cachedStencilBuffer = this.getStencilBuffer();\n this._cachedStencilFunction = this.getStencilFunction();\n this._cachedStencilMask = this.getStencilMask();\n this._cachedStencilOperationPass = this.getStencilOperationPass();\n this._cachedStencilOperationFail = this.getStencilOperationFail();\n this._cachedStencilOperationDepthFail = this.getStencilOperationDepthFail();\n this._cachedStencilReference = this.getStencilFunctionReference();\n};\nAbstractEngine.prototype.restoreStencilState = function () {\n this.setStencilFunction(this._cachedStencilFunction);\n this.setStencilMask(this._cachedStencilMask);\n this.setStencilBuffer(this._cachedStencilBuffer);\n this.setStencilOperationPass(this._cachedStencilOperationPass);\n this.setStencilOperationFail(this._cachedStencilOperationFail);\n this.setStencilOperationDepthFail(this._cachedStencilOperationDepthFail);\n this.setStencilFunctionReference(this._cachedStencilReference);\n};\nAbstractEngine.prototype.setAlphaConstants = function (r, g, b, a) {\n this._alphaState.setAlphaBlendConstants(r, g, b, a);\n};\nAbstractEngine.prototype.getAlphaMode = function () {\n return this._alphaMode;\n};\nAbstractEngine.prototype.getAlphaEquation = function () {\n return this._alphaEquation;\n};","map":{"version":3,"names":["AbstractEngine","prototype","getInputElement","_renderingCanvas","getDepthFunction","_depthCullingState","depthFunc","setDepthFunction","setDepthFunctionToGreater","setDepthFunctionToGreaterOrEqual","setDepthFunctionToLess","setDepthFunctionToLessOrEqual","getDepthWrite","depthMask","setDepthWrite","enable","getStencilBuffer","_stencilState","stencilTest","setStencilBuffer","getStencilMask","stencilMask","setStencilMask","mask","getStencilFunction","stencilFunc","getStencilFunctionReference","stencilFuncRef","getStencilFunctionMask","stencilFuncMask","setStencilFunction","setStencilFunctionReference","reference","setStencilFunctionMask","getStencilOperationFail","stencilOpStencilFail","getStencilOperationDepthFail","stencilOpDepthFail","getStencilOperationPass","stencilOpStencilDepthPass","setStencilOperationFail","operation","setStencilOperationDepthFail","setStencilOperationPass","cacheStencilState","_cachedStencilBuffer","_cachedStencilFunction","_cachedStencilMask","_cachedStencilOperationPass","_cachedStencilOperationFail","_cachedStencilOperationDepthFail","_cachedStencilReference","restoreStencilState","setAlphaConstants","r","g","b","a","_alphaState","setAlphaBlendConstants","getAlphaMode","_alphaMode","getAlphaEquation","_alphaEquation"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Engines/AbstractEngine/abstractEngine.states.js"],"sourcesContent":["import { AbstractEngine } from \"../abstractEngine.js\";\n\nimport \"./abstractEngine.alpha.js\";\nAbstractEngine.prototype.getInputElement = function () {\n return this._renderingCanvas;\n};\nAbstractEngine.prototype.getDepthFunction = function () {\n return this._depthCullingState.depthFunc;\n};\nAbstractEngine.prototype.setDepthFunction = function (depthFunc) {\n this._depthCullingState.depthFunc = depthFunc;\n};\nAbstractEngine.prototype.setDepthFunctionToGreater = function () {\n this.setDepthFunction(516);\n};\nAbstractEngine.prototype.setDepthFunctionToGreaterOrEqual = function () {\n this.setDepthFunction(518);\n};\nAbstractEngine.prototype.setDepthFunctionToLess = function () {\n this.setDepthFunction(513);\n};\nAbstractEngine.prototype.setDepthFunctionToLessOrEqual = function () {\n this.setDepthFunction(515);\n};\nAbstractEngine.prototype.getDepthWrite = function () {\n return this._depthCullingState.depthMask;\n};\nAbstractEngine.prototype.setDepthWrite = function (enable) {\n this._depthCullingState.depthMask = enable;\n};\nAbstractEngine.prototype.getStencilBuffer = function () {\n return this._stencilState.stencilTest;\n};\nAbstractEngine.prototype.setStencilBuffer = function (enable) {\n this._stencilState.stencilTest = enable;\n};\nAbstractEngine.prototype.getStencilMask = function () {\n return this._stencilState.stencilMask;\n};\nAbstractEngine.prototype.setStencilMask = function (mask) {\n this._stencilState.stencilMask = mask;\n};\nAbstractEngine.prototype.getStencilFunction = function () {\n return this._stencilState.stencilFunc;\n};\nAbstractEngine.prototype.getStencilFunctionReference = function () {\n return this._stencilState.stencilFuncRef;\n};\nAbstractEngine.prototype.getStencilFunctionMask = function () {\n return this._stencilState.stencilFuncMask;\n};\nAbstractEngine.prototype.setStencilFunction = function (stencilFunc) {\n this._stencilState.stencilFunc = stencilFunc;\n};\nAbstractEngine.prototype.setStencilFunctionReference = function (reference) {\n this._stencilState.stencilFuncRef = reference;\n};\nAbstractEngine.prototype.setStencilFunctionMask = function (mask) {\n this._stencilState.stencilFuncMask = mask;\n};\nAbstractEngine.prototype.getStencilOperationFail = function () {\n return this._stencilState.stencilOpStencilFail;\n};\nAbstractEngine.prototype.getStencilOperationDepthFail = function () {\n return this._stencilState.stencilOpDepthFail;\n};\nAbstractEngine.prototype.getStencilOperationPass = function () {\n return this._stencilState.stencilOpStencilDepthPass;\n};\nAbstractEngine.prototype.setStencilOperationFail = function (operation) {\n this._stencilState.stencilOpStencilFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationDepthFail = function (operation) {\n this._stencilState.stencilOpDepthFail = operation;\n};\nAbstractEngine.prototype.setStencilOperationPass = function (operation) {\n this._stencilState.stencilOpStencilDepthPass = operation;\n};\nAbstractEngine.prototype.cacheStencilState = function () {\n this._cachedStencilBuffer = this.getStencilBuffer();\n this._cachedStencilFunction = this.getStencilFunction();\n this._cachedStencilMask = this.getStencilMask();\n this._cachedStencilOperationPass = this.getStencilOperationPass();\n this._cachedStencilOperationFail = this.getStencilOperationFail();\n this._cachedStencilOperationDepthFail = this.getStencilOperationDepthFail();\n this._cachedStencilReference = this.getStencilFunctionReference();\n};\nAbstractEngine.prototype.restoreStencilState = function () {\n this.setStencilFunction(this._cachedStencilFunction);\n this.setStencilMask(this._cachedStencilMask);\n this.setStencilBuffer(this._cachedStencilBuffer);\n this.setStencilOperationPass(this._cachedStencilOperationPass);\n this.setStencilOperationFail(this._cachedStencilOperationFail);\n this.setStencilOperationDepthFail(this._cachedStencilOperationDepthFail);\n this.setStencilFunctionReference(this._cachedStencilReference);\n};\nAbstractEngine.prototype.setAlphaConstants = function (r, g, b, a) {\n this._alphaState.setAlphaBlendConstants(r, g, b, a);\n};\nAbstractEngine.prototype.getAlphaMode = function () {\n return this._alphaMode;\n};\nAbstractEngine.prototype.getAlphaEquation = function () {\n return this._alphaEquation;\n};\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,sBAAsB;AAErD,OAAO,2BAA2B;AAClCA,cAAc,CAACC,SAAS,CAACC,eAAe,GAAG,YAAY;EACnD,OAAO,IAAI,CAACC,gBAAgB;AAChC,CAAC;AACDH,cAAc,CAACC,SAAS,CAACG,gBAAgB,GAAG,YAAY;EACpD,OAAO,IAAI,CAACC,kBAAkB,CAACC,SAAS;AAC5C,CAAC;AACDN,cAAc,CAACC,SAAS,CAACM,gBAAgB,GAAG,UAAUD,SAAS,EAAE;EAC7D,IAAI,CAACD,kBAAkB,CAACC,SAAS,GAAGA,SAAS;AACjD,CAAC;AACDN,cAAc,CAACC,SAAS,CAACO,yBAAyB,GAAG,YAAY;EAC7D,IAAI,CAACD,gBAAgB,CAAC,GAAG,CAAC;AAC9B,CAAC;AACDP,cAAc,CAACC,SAAS,CAACQ,gCAAgC,GAAG,YAAY;EACpE,IAAI,CAACF,gBAAgB,CAAC,GAAG,CAAC;AAC9B,CAAC;AACDP,cAAc,CAACC,SAAS,CAACS,sBAAsB,GAAG,YAAY;EAC1D,IAAI,CAACH,gBAAgB,CAAC,GAAG,CAAC;AAC9B,CAAC;AACDP,cAAc,CAACC,SAAS,CAACU,6BAA6B,GAAG,YAAY;EACjE,IAAI,CAACJ,gBAAgB,CAAC,GAAG,CAAC;AAC9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