1 |
- {"ast":null,"code":"/** @internal */\nexport class UniformBufferEffectCommonAccessor {\n _isUbo(uboOrEffect) {\n return uboOrEffect.addUniform !== undefined;\n }\n constructor(uboOrEffect) {\n if (this._isUbo(uboOrEffect)) {\n this.setMatrix3x3 = uboOrEffect.updateMatrix3x3.bind(uboOrEffect);\n this.setMatrix2x2 = uboOrEffect.updateMatrix2x2.bind(uboOrEffect);\n this.setFloat = uboOrEffect.updateFloat.bind(uboOrEffect);\n this.setFloat2 = uboOrEffect.updateFloat2.bind(uboOrEffect);\n this.setFloat3 = uboOrEffect.updateFloat3.bind(uboOrEffect);\n this.setFloat4 = uboOrEffect.updateFloat4.bind(uboOrEffect);\n this.setFloatArray = uboOrEffect.updateFloatArray.bind(uboOrEffect);\n this.setArray = uboOrEffect.updateArray.bind(uboOrEffect);\n this.setIntArray = uboOrEffect.updateIntArray.bind(uboOrEffect);\n this.setMatrix = uboOrEffect.updateMatrix.bind(uboOrEffect);\n this.setMatrices = uboOrEffect.updateMatrices.bind(uboOrEffect);\n this.setVector3 = uboOrEffect.updateVector3.bind(uboOrEffect);\n this.setVector4 = uboOrEffect.updateVector4.bind(uboOrEffect);\n this.setColor3 = uboOrEffect.updateColor3.bind(uboOrEffect);\n this.setColor4 = uboOrEffect.updateColor4.bind(uboOrEffect);\n this.setDirectColor4 = uboOrEffect.updateDirectColor4.bind(uboOrEffect);\n this.setInt = uboOrEffect.updateInt.bind(uboOrEffect);\n this.setInt2 = uboOrEffect.updateInt2.bind(uboOrEffect);\n this.setInt3 = uboOrEffect.updateInt3.bind(uboOrEffect);\n this.setInt4 = uboOrEffect.updateInt4.bind(uboOrEffect);\n } else {\n this.setMatrix3x3 = uboOrEffect.setMatrix3x3.bind(uboOrEffect);\n this.setMatrix2x2 = uboOrEffect.setMatrix2x2.bind(uboOrEffect);\n this.setFloat = uboOrEffect.setFloat.bind(uboOrEffect);\n this.setFloat2 = uboOrEffect.setFloat2.bind(uboOrEffect);\n this.setFloat3 = uboOrEffect.setFloat3.bind(uboOrEffect);\n this.setFloat4 = uboOrEffect.setFloat4.bind(uboOrEffect);\n this.setFloatArray = uboOrEffect.setFloatArray.bind(uboOrEffect);\n this.setArray = uboOrEffect.setArray.bind(uboOrEffect);\n this.setIntArray = uboOrEffect.setIntArray.bind(uboOrEffect);\n this.setMatrix = uboOrEffect.setMatrix.bind(uboOrEffect);\n this.setMatrices = uboOrEffect.setMatrices.bind(uboOrEffect);\n this.setVector3 = uboOrEffect.setVector3.bind(uboOrEffect);\n this.setVector4 = uboOrEffect.setVector4.bind(uboOrEffect);\n this.setColor3 = uboOrEffect.setColor3.bind(uboOrEffect);\n this.setColor4 = uboOrEffect.setColor4.bind(uboOrEffect);\n this.setDirectColor4 = uboOrEffect.setDirectColor4.bind(uboOrEffect);\n this.setInt = uboOrEffect.setInt.bind(uboOrEffect);\n this.setInt2 = uboOrEffect.setInt2.bind(uboOrEffect);\n this.setInt3 = uboOrEffect.setInt3.bind(uboOrEffect);\n this.setInt4 = uboOrEffect.setInt4.bind(uboOrEffect);\n }\n }\n}","map":{"version":3,"names":["UniformBufferEffectCommonAccessor","_isUbo","uboOrEffect","addUniform","undefined","constructor","setMatrix3x3","updateMatrix3x3","bind","setMatrix2x2","updateMatrix2x2","setFloat","updateFloat","setFloat2","updateFloat2","setFloat3","updateFloat3","setFloat4","updateFloat4","setFloatArray","updateFloatArray","setArray","updateArray","setIntArray","updateIntArray","setMatrix","updateMatrix","setMatrices","updateMatrices","setVector3","updateVector3","setVector4","updateVector4","setColor3","updateColor3","setColor4","updateColor4","setDirectColor4","updateDirectColor4","setInt","updateInt","setInt2","updateInt2","setInt3","updateInt3","setInt4","updateInt4"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/uniformBufferEffectCommonAccessor.js"],"sourcesContent":["/** @internal */\nexport class UniformBufferEffectCommonAccessor {\n _isUbo(uboOrEffect) {\n return uboOrEffect.addUniform !== undefined;\n }\n constructor(uboOrEffect) {\n if (this._isUbo(uboOrEffect)) {\n this.setMatrix3x3 = uboOrEffect.updateMatrix3x3.bind(uboOrEffect);\n this.setMatrix2x2 = uboOrEffect.updateMatrix2x2.bind(uboOrEffect);\n this.setFloat = uboOrEffect.updateFloat.bind(uboOrEffect);\n this.setFloat2 = uboOrEffect.updateFloat2.bind(uboOrEffect);\n this.setFloat3 = uboOrEffect.updateFloat3.bind(uboOrEffect);\n this.setFloat4 = uboOrEffect.updateFloat4.bind(uboOrEffect);\n this.setFloatArray = uboOrEffect.updateFloatArray.bind(uboOrEffect);\n this.setArray = uboOrEffect.updateArray.bind(uboOrEffect);\n this.setIntArray = uboOrEffect.updateIntArray.bind(uboOrEffect);\n this.setMatrix = uboOrEffect.updateMatrix.bind(uboOrEffect);\n this.setMatrices = uboOrEffect.updateMatrices.bind(uboOrEffect);\n this.setVector3 = uboOrEffect.updateVector3.bind(uboOrEffect);\n this.setVector4 = uboOrEffect.updateVector4.bind(uboOrEffect);\n this.setColor3 = uboOrEffect.updateColor3.bind(uboOrEffect);\n this.setColor4 = uboOrEffect.updateColor4.bind(uboOrEffect);\n this.setDirectColor4 = uboOrEffect.updateDirectColor4.bind(uboOrEffect);\n this.setInt = uboOrEffect.updateInt.bind(uboOrEffect);\n this.setInt2 = uboOrEffect.updateInt2.bind(uboOrEffect);\n this.setInt3 = uboOrEffect.updateInt3.bind(uboOrEffect);\n this.setInt4 = uboOrEffect.updateInt4.bind(uboOrEffect);\n }\n else {\n this.setMatrix3x3 = uboOrEffect.setMatrix3x3.bind(uboOrEffect);\n this.setMatrix2x2 = uboOrEffect.setMatrix2x2.bind(uboOrEffect);\n this.setFloat = uboOrEffect.setFloat.bind(uboOrEffect);\n this.setFloat2 = uboOrEffect.setFloat2.bind(uboOrEffect);\n this.setFloat3 = uboOrEffect.setFloat3.bind(uboOrEffect);\n this.setFloat4 = uboOrEffect.setFloat4.bind(uboOrEffect);\n this.setFloatArray = uboOrEffect.setFloatArray.bind(uboOrEffect);\n this.setArray = uboOrEffect.setArray.bind(uboOrEffect);\n this.setIntArray = uboOrEffect.setIntArray.bind(uboOrEffect);\n this.setMatrix = uboOrEffect.setMatrix.bind(uboOrEffect);\n this.setMatrices = uboOrEffect.setMatrices.bind(uboOrEffect);\n this.setVector3 = uboOrEffect.setVector3.bind(uboOrEffect);\n this.setVector4 = uboOrEffect.setVector4.bind(uboOrEffect);\n this.setColor3 = uboOrEffect.setColor3.bind(uboOrEffect);\n this.setColor4 = uboOrEffect.setColor4.bind(uboOrEffect);\n this.setDirectColor4 = uboOrEffect.setDirectColor4.bind(uboOrEffect);\n this.setInt = uboOrEffect.setInt.bind(uboOrEffect);\n this.setInt2 = uboOrEffect.setInt2.bind(uboOrEffect);\n this.setInt3 = uboOrEffect.setInt3.bind(uboOrEffect);\n this.setInt4 = uboOrEffect.setInt4.bind(uboOrEffect);\n }\n }\n}\n"],"mappings":"AAAA;AACA,OAAO,MAAMA,iCAAiC,CAAC;EAC3CC,MAAMA,CAACC,WAAW,EAAE;IAChB,OAAOA,WAAW,CAACC,UAAU,KAAKC,SAAS;EAC/C;EACAC,WAAWA,CAACH,WAAW,EAAE;IACrB,IAAI,IAAI,CAACD,MAAM,CAACC,WAAW,CAAC,EAAE;MAC1B,IAAI,CAACI,YAAY,GAAGJ,WAAW,CAACK,eAAe,CAACC,IAAI,CAACN,WAAW,CAAC;MACjE,IAAI,CAACO,YAAY,GAAGP,WAAW,CAACQ,eAAe,CAACF,IAAI,CAACN,WAAW,CAAC;MACjE,IAAI,CAACS,QAAQ,GAAGT,WAAW,CAACU,WAAW,CAACJ,IAAI,CAACN,WAAW,CAAC;MACzD,IAAI,CAACW,SAAS,GAAGX,WAAW,CAACY,YAAY,CAACN,IAAI,CAACN,WAAW,CAAC;MAC3D,IAAI,CAACa,SAAS,GAAGb,WAAW,CAACc,YAAY,CAACR,IAAI,CAACN,WAAW,CAAC;MAC3D,IAAI,CAACe,SAAS,GAAGf,WAAW,CAACgB,YAAY,CAACV,IAAI,CAACN,WAAW,CA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