@galacean/engine-loader 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1150,7 +1150,7 @@ var MaterialParser = /*#__PURE__*/ function(Parser1) {
1150
1150
  var materials = [];
1151
1151
  for(var i = 0; i < gltf.materials.length; i++){
1152
1152
  var _gltf_materials_i = gltf.materials[i], _gltf_materials_i_extensions = _gltf_materials_i.extensions, extensions = _gltf_materials_i_extensions === void 0 ? {} : _gltf_materials_i_extensions, pbrMetallicRoughness = _gltf_materials_i.pbrMetallicRoughness, normalTexture = _gltf_materials_i.normalTexture, occlusionTexture = _gltf_materials_i.occlusionTexture, emissiveTexture = _gltf_materials_i.emissiveTexture, emissiveFactor = _gltf_materials_i.emissiveFactor, alphaMode = _gltf_materials_i.alphaMode, alphaCutoff = _gltf_materials_i.alphaCutoff, doubleSided = _gltf_materials_i.doubleSided, _gltf_materials_i_name = _gltf_materials_i.name, name = _gltf_materials_i_name === void 0 ? "" : _gltf_materials_i_name;
1153
- var KHR_materials_unlit = extensions.KHR_materials_unlit, KHR_materials_pbrSpecularGlossiness = extensions.KHR_materials_pbrSpecularGlossiness, KHR_materials_clearcoat = extensions.KHR_materials_clearcoat, OASIS_materials_remap = extensions.OASIS_materials_remap;
1153
+ var KHR_materials_unlit = extensions.KHR_materials_unlit, KHR_materials_pbrSpecularGlossiness = extensions.KHR_materials_pbrSpecularGlossiness, KHR_materials_clearcoat = extensions.KHR_materials_clearcoat, KHR_materials_ior = extensions.KHR_materials_ior, OASIS_materials_remap = extensions.OASIS_materials_remap;
1154
1154
  var material = null;
1155
1155
  if (KHR_materials_unlit) {
1156
1156
  material = Parser.createEngineResource("KHR_materials_unlit", KHR_materials_unlit, context);
@@ -1163,6 +1163,9 @@ var MaterialParser = /*#__PURE__*/ function(Parser1) {
1163
1163
  if (KHR_materials_clearcoat) {
1164
1164
  Parser.parseEngineResource("KHR_materials_clearcoat", KHR_materials_clearcoat, material, context);
1165
1165
  }
1166
+ if (KHR_materials_ior) {
1167
+ Parser.parseEngineResource("KHR_materials_ior", KHR_materials_ior, material, context);
1168
+ }
1166
1169
  if (pbrMetallicRoughness) {
1167
1170
  var baseColorFactor = pbrMetallicRoughness.baseColorFactor, baseColorTexture = pbrMetallicRoughness.baseColorTexture, metallicFactor = pbrMetallicRoughness.metallicFactor, roughnessFactor = pbrMetallicRoughness.roughnessFactor, metallicRoughnessTexture = pbrMetallicRoughness.metallicRoughnessTexture;
1168
1171
  if (baseColorFactor) {
@@ -1282,6 +1285,22 @@ KHR_materials_clearcoat = __decorate([
1282
1285
  registerExtension("KHR_materials_clearcoat")
1283
1286
  ], KHR_materials_clearcoat);
1284
1287
 
1288
+ var KHR_materials_ior = /*#__PURE__*/ function(ExtensionParser) {
1289
+ _inherits(KHR_materials_ior, ExtensionParser);
1290
+ function KHR_materials_ior() {
1291
+ return ExtensionParser.apply(this, arguments);
1292
+ }
1293
+ var _proto = KHR_materials_ior.prototype;
1294
+ _proto.parseEngineResource = function parseEngineResource(schema, material, context) {
1295
+ var _schema_ior = schema.ior, ior = _schema_ior === void 0 ? 1.5 : _schema_ior;
1296
+ material.ior = ior;
1297
+ };
1298
+ return KHR_materials_ior;
1299
+ }(ExtensionParser);
1300
+ KHR_materials_ior = __decorate([
1301
+ registerExtension("KHR_materials_ior")
1302
+ ], KHR_materials_ior);
1303
+
1285
1304
  var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(ExtensionParser) {
1286
1305
  _inherits(KHR_materials_pbrSpecularGlossiness, ExtensionParser);
1287
1306
  function KHR_materials_pbrSpecularGlossiness() {