1 |
- {"ast":null,"code":"import { NodeMaterialBlock } from \"../nodeMaterialBlock.js\";\nimport { NodeMaterialBlockConnectionPointTypes } from \"../Enums/nodeMaterialBlockConnectionPointTypes.js\";\nimport { NodeMaterialBlockTargets } from \"../Enums/nodeMaterialBlockTargets.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\n/**\n * Block used to transpose a matrix\n */\nexport class MatrixTransposeBlock extends NodeMaterialBlock {\n /**\n * Creates a new MatrixTransposeBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name, NodeMaterialBlockTargets.Neutral);\n this.registerInput(\"input\", NodeMaterialBlockConnectionPointTypes.Matrix);\n this.registerOutput(\"output\", NodeMaterialBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"MatrixTransposeBlock\";\n }\n /**\n * Gets the input matrix\n */\n get input() {\n return this._inputs[0];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this.output;\n const input = this.input;\n state.compilationString += state._declareOutput(output) + ` = transpose(${input.associatedVariableName});\\n`;\n return this;\n }\n}\nRegisterClass(\"BABYLON.MatrixTransposeBlock\", MatrixTransposeBlock);","map":{"version":3,"names":["NodeMaterialBlock","NodeMaterialBlockConnectionPointTypes","NodeMaterialBlockTargets","RegisterClass","MatrixTransposeBlock","constructor","name","Neutral","registerInput","Matrix","registerOutput","getClassName","input","_inputs","output","_outputs","_buildBlock","state","compilationString","_declareOutput","associatedVariableName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Node/Blocks/matrixTransposeBlock.js"],"sourcesContent":["import { NodeMaterialBlock } from \"../nodeMaterialBlock.js\";\nimport { NodeMaterialBlockConnectionPointTypes } from \"../Enums/nodeMaterialBlockConnectionPointTypes.js\";\nimport { NodeMaterialBlockTargets } from \"../Enums/nodeMaterialBlockTargets.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\n/**\n * Block used to transpose a matrix\n */\nexport class MatrixTransposeBlock extends NodeMaterialBlock {\n /**\n * Creates a new MatrixTransposeBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name, NodeMaterialBlockTargets.Neutral);\n this.registerInput(\"input\", NodeMaterialBlockConnectionPointTypes.Matrix);\n this.registerOutput(\"output\", NodeMaterialBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"MatrixTransposeBlock\";\n }\n /**\n * Gets the input matrix\n */\n get input() {\n return this._inputs[0];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this.output;\n const input = this.input;\n state.compilationString += state._declareOutput(output) + ` = transpose(${input.associatedVariableName});\\n`;\n return this;\n }\n}\nRegisterClass(\"BABYLON.MatrixTransposeBlock\", MatrixTransposeBlock);\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,qCAAqC,QAAQ,mDAAmD;AACzG,SAASC,wBAAwB,QAAQ,sCAAsC;AAC/E,SAASC,aAAa,QAAQ,4BAA4B;AAC1D;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,SAASJ,iBAAiB,CAAC;EACxD;AACJ;AACA;AACA;EACIK,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,EAAEJ,wBAAwB,CAACK,OAAO,CAAC;IAC7C,IAAI,CAACC,aAAa,CAAC,OAAO,EAAEP,qCAAqC,CAACQ,MAAM,CAAC;IACzE,IAAI,CAACC,cAAc,CAAC,QAAQ,EAAET,qCAAqC,CAACQ,MAAM,CAAC;EAC/E;EACA;AACJ;AACA;AACA;EACIE,YAAYA,CAAA,EAAG;IACX,OAAO,sBAAsB;EACjC;EACA;AACJ;AACA;EACI,IAAIC,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAC1B;EACA;AACJ;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;EAC3B;EACAC,WAAWA,CAACC,KAAK,EAAE;IACf,KAAK,CAACD,WAAW,CAACC,KAAK,CAAC;IACxB,MAAMH,MAAM,GAAG,IAAI,CAACA,MAAM;IAC1B,MAAMF,KAAK,GAAG,IAAI,CAACA,KAAK;IACxBK,KAAK,CAACC,iBAAiB,IAAID,KAAK,CAACE,cAAc,CAACL,MAAM,CAAC,GAAG,gBAAgBF,KAAK,CAACQ,sBAAsB,MAAM;IAC5G,OAAO,IAAI;EACf;AACJ;AACAjB,aAAa,CAAC,8BAA8B,EAAEC,oBAAoB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|