1 |
- {"ast":null,"code":"/**\n * @internal\n **/\nexport class StencilState {\n constructor() {\n this.reset();\n }\n reset() {\n this.enabled = false;\n this.mask = 0xff;\n this.func = StencilState.ALWAYS;\n this.funcRef = 1;\n this.funcMask = 0xff;\n this.opStencilFail = StencilState.KEEP;\n this.opDepthFail = StencilState.KEEP;\n this.opStencilDepthPass = StencilState.REPLACE;\n }\n get stencilFunc() {\n return this.func;\n }\n set stencilFunc(value) {\n this.func = value;\n }\n get stencilFuncRef() {\n return this.funcRef;\n }\n set stencilFuncRef(value) {\n this.funcRef = value;\n }\n get stencilFuncMask() {\n return this.funcMask;\n }\n set stencilFuncMask(value) {\n this.funcMask = value;\n }\n get stencilOpStencilFail() {\n return this.opStencilFail;\n }\n set stencilOpStencilFail(value) {\n this.opStencilFail = value;\n }\n get stencilOpDepthFail() {\n return this.opDepthFail;\n }\n set stencilOpDepthFail(value) {\n this.opDepthFail = value;\n }\n get stencilOpStencilDepthPass() {\n return this.opStencilDepthPass;\n }\n set stencilOpStencilDepthPass(value) {\n this.opStencilDepthPass = value;\n }\n get stencilMask() {\n return this.mask;\n }\n set stencilMask(value) {\n this.mask = value;\n }\n get stencilTest() {\n return this.enabled;\n }\n set stencilTest(value) {\n this.enabled = value;\n }\n}\n/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */\nStencilState.ALWAYS = 519;\n/** Passed to stencilOperation to specify that stencil value must be kept */\nStencilState.KEEP = 7680;\n/** Passed to stencilOperation to specify that stencil value must be replaced */\nStencilState.REPLACE = 7681;","map":{"version":3,"names":["StencilState","constructor","reset","enabled","mask","func","ALWAYS","funcRef","funcMask","opStencilFail","KEEP","opDepthFail","opStencilDepthPass","REPLACE","stencilFunc","value","stencilFuncRef","stencilFuncMask","stencilOpStencilFail","stencilOpDepthFail","stencilOpStencilDepthPass","stencilMask","stencilTest"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/States/stencilState.js"],"sourcesContent":["\n/**\n * @internal\n **/\nexport class StencilState {\n constructor() {\n this.reset();\n }\n reset() {\n this.enabled = false;\n this.mask = 0xff;\n this.func = StencilState.ALWAYS;\n this.funcRef = 1;\n this.funcMask = 0xff;\n this.opStencilFail = StencilState.KEEP;\n this.opDepthFail = StencilState.KEEP;\n this.opStencilDepthPass = StencilState.REPLACE;\n }\n get stencilFunc() {\n return this.func;\n }\n set stencilFunc(value) {\n this.func = value;\n }\n get stencilFuncRef() {\n return this.funcRef;\n }\n set stencilFuncRef(value) {\n this.funcRef = value;\n }\n get stencilFuncMask() {\n return this.funcMask;\n }\n set stencilFuncMask(value) {\n this.funcMask = value;\n }\n get stencilOpStencilFail() {\n return this.opStencilFail;\n }\n set stencilOpStencilFail(value) {\n this.opStencilFail = value;\n }\n get stencilOpDepthFail() {\n return this.opDepthFail;\n }\n set stencilOpDepthFail(value) {\n this.opDepthFail = value;\n }\n get stencilOpStencilDepthPass() {\n return this.opStencilDepthPass;\n }\n set stencilOpStencilDepthPass(value) {\n this.opStencilDepthPass = value;\n }\n get stencilMask() {\n return this.mask;\n }\n set stencilMask(value) {\n this.mask = value;\n }\n get stencilTest() {\n return this.enabled;\n }\n set stencilTest(value) {\n this.enabled = value;\n }\n}\n/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */\nStencilState.ALWAYS = 519;\n/** Passed to stencilOperation to specify that stencil value must be kept */\nStencilState.KEEP = 7680;\n/** Passed to stencilOperation to specify that stencil value must be replaced */\nStencilState.REPLACE = 7681;\n"],"mappings":"AACA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,CAAC;EACtBC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,KAAK,CAAC,CAAC;EAChB;EACAA,KAAKA,CAAA,EAAG;IACJ,IAAI,CAACC,OAAO,GAAG,KAAK;IACpB,IAAI,CAACC,IAAI,GAAG,IAAI;IAChB,IAAI,CAACC,IAAI,GAAGL,YAAY,CAACM,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IAAIiB,WAAWA,CAACN,KAAK,EAAE;IACnB,IAAI,CAACX,IAAI,GAAGW,KAAK;EACrB;EACA,IAAIO,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACnB,OAAO;EACvB;EACA,IAAImB,WAAWA,CAACP,KAAK,EAAE;IACnB,IAAI,CAACZ,OAAO,GAAGY,KAAK;EACxB;AACJ;AACA;AACAf,YAAY,CAACM,MAAM,GAAG,GAAG;AACzB;AACAN,YAAY,CAACU,IAAI,GAAG,IAAI;AACxB;AACAV,YAAY,CAACa,OAAO,GAAG,IAAI","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|