1 |
- {"ast":null,"code":"import { DetailMapConfiguration } from \"./material.detailMapConfiguration.js\";\nimport { PBRAnisotropicConfiguration } from \"./PBR/pbrAnisotropicConfiguration.js\";\nimport { PBRBaseMaterial } from \"./PBR/pbrBaseMaterial.js\";\nimport { PBRBRDFConfiguration } from \"./PBR/pbrBRDFConfiguration.js\";\nimport { PBRClearCoatConfiguration } from \"./PBR/pbrClearCoatConfiguration.js\";\nimport { PBRIridescenceConfiguration } from \"./PBR/pbrIridescenceConfiguration.js\";\nimport { PBRSheenConfiguration } from \"./PBR/pbrSheenConfiguration.js\";\nimport { PBRSubSurfaceConfiguration } from \"./PBR/pbrSubSurfaceConfiguration.js\";\nimport { StandardMaterial } from \"./standardMaterial.js\";\n/**\n * Creates an instance of the anisotropic plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRAnisotropicPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRAnisotropicConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the brdf plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRBRDFPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRBRDFConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the clear coat plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRClearCoatPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRClearCoatConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the iridescence plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRIridescencePlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRIridescenceConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the sheen plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRSheenPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRSheenConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the sub surface plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRSubSurfacePlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRSubSurfaceConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the detail map plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createDetailMapPlugin(material) {\n if (material instanceof PBRBaseMaterial || material instanceof StandardMaterial) {\n return new DetailMapConfiguration(material);\n }\n return null;\n}","map":{"version":3,"names":["DetailMapConfiguration","PBRAnisotropicConfiguration","PBRBaseMaterial","PBRBRDFConfiguration","PBRClearCoatConfiguration","PBRIridescenceConfiguration","PBRSheenConfiguration","PBRSubSurfaceConfiguration","StandardMaterial","createPBRAnisotropicPlugin","material","createPBRBRDFPlugin","createPBRClearCoatPlugin","createPBRIridescencePlugin","createPBRSheenPlugin","createPBRSubSurfacePlugin","createDetailMapPlugin"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/materialPluginFactoryExport.js"],"sourcesContent":["import { DetailMapConfiguration } from \"./material.detailMapConfiguration.js\";\nimport { PBRAnisotropicConfiguration } from \"./PBR/pbrAnisotropicConfiguration.js\";\nimport { PBRBaseMaterial } from \"./PBR/pbrBaseMaterial.js\";\nimport { PBRBRDFConfiguration } from \"./PBR/pbrBRDFConfiguration.js\";\nimport { PBRClearCoatConfiguration } from \"./PBR/pbrClearCoatConfiguration.js\";\nimport { PBRIridescenceConfiguration } from \"./PBR/pbrIridescenceConfiguration.js\";\nimport { PBRSheenConfiguration } from \"./PBR/pbrSheenConfiguration.js\";\nimport { PBRSubSurfaceConfiguration } from \"./PBR/pbrSubSurfaceConfiguration.js\";\nimport { StandardMaterial } from \"./standardMaterial.js\";\n/**\n * Creates an instance of the anisotropic plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRAnisotropicPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRAnisotropicConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the brdf plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRBRDFPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRBRDFConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the clear coat plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRClearCoatPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRClearCoatConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the iridescence plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRIridescencePlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRIridescenceConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the sheen plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRSheenPlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRSheenConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the sub surface plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createPBRSubSurfacePlugin(material) {\n if (material instanceof PBRBaseMaterial) {\n return new PBRSubSurfaceConfiguration(material);\n }\n return null;\n}\n/**\n * Creates an instance of the detail map plugin\n * @param material parent material the plugin will be created for\n * @returns the plugin instance or null if the plugin is incompatible with material\n */\nexport function createDetailMapPlugin(material) {\n if (material instanceof PBRBaseMaterial || material instanceof StandardMaterial) {\n return new DetailMapConfiguration(material);\n }\n return null;\n}\n"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,sCAAsC;AAC7E,SAASC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,OAAO,SAASK,yBAAyBA,CAACL,QAAQ,EAAE;EAChD,IAAIA,QAAQ,YAAYR,eAAe,EAAE;IACrC,OAAO,IAAIK,0BAA0B,CAACG,QAAQ,CAAC;EACnD;EACA,OAAO,IAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASM,qBAAqBA,CAACN,QAAQ,EAAE;EAC5C,IAAIA,QAAQ,YAAYR,eAAe,IAAIQ,QAAQ,YAAYF,gBAAgB,EAAE;IAC7E,OAAO,IAAIR,sBAAsB,CAACU,QAAQ,CAAC;EAC/C;EACA,OAAO,IAAI;AACf","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|