babylonjs-loaders 6.48.1 → 7.0.0

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.
@@ -1047,10 +1047,26 @@ export const animationPointerTree: {
1047
1047
  };
1048
1048
  };
1049
1049
  };
1050
+ metallicRoughnessTexture: {
1051
+ extensions: {
1052
+ KHR_texture_transform: {
1053
+ scale: MaterialAnimationPropertyInfo[];
1054
+ offset: MaterialAnimationPropertyInfo[];
1055
+ rotation: MaterialAnimationPropertyInfo[];
1056
+ };
1057
+ };
1058
+ };
1050
1059
  };
1051
1060
  emissiveFactor: MaterialAnimationPropertyInfo[];
1052
1061
  normalTexture: {
1053
1062
  scale: MaterialAnimationPropertyInfo[];
1063
+ extensions: {
1064
+ KHR_texture_transform: {
1065
+ scale: MaterialAnimationPropertyInfo[];
1066
+ offset: MaterialAnimationPropertyInfo[];
1067
+ rotation: MaterialAnimationPropertyInfo[];
1068
+ };
1069
+ };
1054
1070
  };
1055
1071
  occlusionTexture: {
1056
1072
  strength: MaterialAnimationPropertyInfo[];
@@ -1072,44 +1088,135 @@ export const animationPointerTree: {
1072
1088
  };
1073
1089
  };
1074
1090
  extensions: {
1075
- KHR_materials_ior: {
1076
- ior: MaterialAnimationPropertyInfo[];
1091
+ KHR_materials_anisotropy: {
1092
+ anisotropyStrength: MaterialAnimationPropertyInfo[];
1093
+ anisotropyRotation: MaterialAnimationPropertyInfo[];
1094
+ anisotropyTexture: {
1095
+ extensions: {
1096
+ KHR_texture_transform: {
1097
+ scale: MaterialAnimationPropertyInfo[];
1098
+ offset: MaterialAnimationPropertyInfo[];
1099
+ rotation: MaterialAnimationPropertyInfo[];
1100
+ };
1101
+ };
1102
+ };
1077
1103
  };
1078
1104
  KHR_materials_clearcoat: {
1079
1105
  clearcoatFactor: MaterialAnimationPropertyInfo[];
1080
1106
  clearcoatRoughnessFactor: MaterialAnimationPropertyInfo[];
1107
+ clearcoatTexture: {
1108
+ extensions: {
1109
+ KHR_texture_transform: {
1110
+ scale: MaterialAnimationPropertyInfo[];
1111
+ offset: MaterialAnimationPropertyInfo[];
1112
+ rotation: MaterialAnimationPropertyInfo[];
1113
+ };
1114
+ };
1115
+ };
1116
+ clearcoatNormalTexture: {
1117
+ scale: MaterialAnimationPropertyInfo[];
1118
+ extensions: {
1119
+ KHR_texture_transform: {
1120
+ scale: MaterialAnimationPropertyInfo[];
1121
+ offset: MaterialAnimationPropertyInfo[];
1122
+ rotation: MaterialAnimationPropertyInfo[];
1123
+ };
1124
+ };
1125
+ };
1126
+ clearcoatRoughnessTexture: {
1127
+ extensions: {
1128
+ KHR_texture_transform: {
1129
+ scale: MaterialAnimationPropertyInfo[];
1130
+ offset: MaterialAnimationPropertyInfo[];
1131
+ rotation: MaterialAnimationPropertyInfo[];
1132
+ };
1133
+ };
1134
+ };
1135
+ };
1136
+ KHR_materials_dispersion: {
1137
+ dispersion: MaterialAnimationPropertyInfo[];
1138
+ };
1139
+ KHR_materials_emissive_strength: {
1140
+ emissiveStrength: MaterialAnimationPropertyInfo[];
1141
+ };
1142
+ KHR_materials_ior: {
1143
+ ior: MaterialAnimationPropertyInfo[];
1144
+ };
1145
+ KHR_materials_iridescence: {
1146
+ iridescenceFactor: MaterialAnimationPropertyInfo[];
1147
+ iridescenceIor: MaterialAnimationPropertyInfo[];
1148
+ iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
1149
+ iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
1081
1150
  };
1082
1151
  KHR_materials_sheen: {
1083
1152
  sheenColorFactor: MaterialAnimationPropertyInfo[];
1084
1153
  sheenRoughnessFactor: MaterialAnimationPropertyInfo[];
1154
+ sheenColorTexture: {
1155
+ extensions: {
1156
+ KHR_texture_transform: {
1157
+ scale: MaterialAnimationPropertyInfo[];
1158
+ offset: MaterialAnimationPropertyInfo[];
1159
+ rotation: MaterialAnimationPropertyInfo[];
1160
+ };
1161
+ };
1162
+ };
1163
+ sheenRoughnessTexture: {
1164
+ extensions: {
1165
+ KHR_texture_transform: {
1166
+ scale: MaterialAnimationPropertyInfo[];
1167
+ offset: MaterialAnimationPropertyInfo[];
1168
+ rotation: MaterialAnimationPropertyInfo[];
1169
+ };
1170
+ };
1171
+ };
1085
1172
  };
1086
1173
  KHR_materials_specular: {
1087
1174
  specularFactor: MaterialAnimationPropertyInfo[];
1088
1175
  specularColorFactor: MaterialAnimationPropertyInfo[];
1089
- };
1090
- KHR_materials_emissive_strength: {
1091
- emissiveStrength: MaterialAnimationPropertyInfo[];
1176
+ specularTexture: {
1177
+ extensions: {
1178
+ KHR_texture_transform: {
1179
+ scale: MaterialAnimationPropertyInfo[];
1180
+ offset: MaterialAnimationPropertyInfo[];
1181
+ rotation: MaterialAnimationPropertyInfo[];
1182
+ };
1183
+ };
1184
+ };
1185
+ specularColorTexture: {
1186
+ extensions: {
1187
+ KHR_texture_transform: {
1188
+ scale: MaterialAnimationPropertyInfo[];
1189
+ offset: MaterialAnimationPropertyInfo[];
1190
+ rotation: MaterialAnimationPropertyInfo[];
1191
+ };
1192
+ };
1193
+ };
1092
1194
  };
1093
1195
  KHR_materials_transmission: {
1094
1196
  transmissionFactor: MaterialAnimationPropertyInfo[];
1197
+ transmissionTexture: {
1198
+ extensions: {
1199
+ KHR_texture_transform: {
1200
+ scale: MaterialAnimationPropertyInfo[];
1201
+ offset: MaterialAnimationPropertyInfo[];
1202
+ rotation: MaterialAnimationPropertyInfo[];
1203
+ };
1204
+ };
1205
+ };
1095
1206
  };
1096
1207
  KHR_materials_volume: {
1097
1208
  attenuationColor: MaterialAnimationPropertyInfo[];
1098
1209
  attenuationDistance: MaterialAnimationPropertyInfo[];
1099
1210
  thicknessFactor: MaterialAnimationPropertyInfo[];
1100
- };
1101
- KHR_materials_dispersion: {
1102
- dispersion: MaterialAnimationPropertyInfo[];
1103
- };
1104
- KHR_materials_iridescence: {
1105
- iridescenceFactor: MaterialAnimationPropertyInfo[];
1106
- iridescenceIor: MaterialAnimationPropertyInfo[];
1107
- iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
1108
- iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
1109
- };
1110
- KHR_materials_anisotropy: {
1111
- anisotropyStrength: MaterialAnimationPropertyInfo[];
1112
- anisotropyRotation: MaterialAnimationPropertyInfo[];
1211
+ thicknessTexture: {
1212
+ extensions: {
1213
+ KHR_texture_transform: {
1214
+ scale: MaterialAnimationPropertyInfo[];
1215
+ offset: MaterialAnimationPropertyInfo[];
1216
+ rotation: MaterialAnimationPropertyInfo[];
1217
+ };
1218
+ };
1219
+ };
1113
1220
  };
1114
1221
  };
1115
1222
  };
@@ -3600,6 +3707,10 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
3600
3707
  * Defaults to true for backwards compatibility.
3601
3708
  */
3602
3709
  static MATERIAL_LOADING_FAILS_SILENTLY: boolean;
3710
+ /**
3711
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
3712
+ */
3713
+ static USE_LEGACY_BEHAVIOR: boolean;
3603
3714
  /**
3604
3715
  * Defines the name of the plugin.
3605
3716
  */
@@ -3721,6 +3832,10 @@ export type OBJLoadingOptions = {
3721
3832
  * When a material fails to load OBJ loader will silently fail and onSuccess() callback will be triggered.
3722
3833
  */
3723
3834
  materialLoadingFailsSilently: boolean;
3835
+ /**
3836
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
3837
+ */
3838
+ useLegacyBehavior: boolean;
3724
3839
  };
3725
3840
 
3726
3841
  }
@@ -3793,6 +3908,8 @@ export class SolidParser {
3793
3908
  private _grayColor;
3794
3909
  private _materialToUse;
3795
3910
  private _babylonMeshesArray;
3911
+ private _pushTriangle;
3912
+ private _handednessSign;
3796
3913
  /**
3797
3914
  * Creates a new SolidParser
3798
3915
  * @param materialToUse defines the array to fill with the list of materials to use (it will be filled by the parse function)
@@ -5105,10 +5222,26 @@ declare module BABYLON.GLTF2.Loader.Extensions {
5105
5222
  };
5106
5223
  };
5107
5224
  };
5225
+ metallicRoughnessTexture: {
5226
+ extensions: {
5227
+ KHR_texture_transform: {
5228
+ scale: MaterialAnimationPropertyInfo[];
5229
+ offset: MaterialAnimationPropertyInfo[];
5230
+ rotation: MaterialAnimationPropertyInfo[];
5231
+ };
5232
+ };
5233
+ };
5108
5234
  };
5109
5235
  emissiveFactor: MaterialAnimationPropertyInfo[];
5110
5236
  normalTexture: {
5111
5237
  scale: MaterialAnimationPropertyInfo[];
5238
+ extensions: {
5239
+ KHR_texture_transform: {
5240
+ scale: MaterialAnimationPropertyInfo[];
5241
+ offset: MaterialAnimationPropertyInfo[];
5242
+ rotation: MaterialAnimationPropertyInfo[];
5243
+ };
5244
+ };
5112
5245
  };
5113
5246
  occlusionTexture: {
5114
5247
  strength: MaterialAnimationPropertyInfo[];
@@ -5130,44 +5263,135 @@ declare module BABYLON.GLTF2.Loader.Extensions {
5130
5263
  };
5131
5264
  };
5132
5265
  extensions: {
5133
- KHR_materials_ior: {
5134
- ior: MaterialAnimationPropertyInfo[];
5266
+ KHR_materials_anisotropy: {
5267
+ anisotropyStrength: MaterialAnimationPropertyInfo[];
5268
+ anisotropyRotation: MaterialAnimationPropertyInfo[];
5269
+ anisotropyTexture: {
5270
+ extensions: {
5271
+ KHR_texture_transform: {
5272
+ scale: MaterialAnimationPropertyInfo[];
5273
+ offset: MaterialAnimationPropertyInfo[];
5274
+ rotation: MaterialAnimationPropertyInfo[];
5275
+ };
5276
+ };
5277
+ };
5135
5278
  };
5136
5279
  KHR_materials_clearcoat: {
5137
5280
  clearcoatFactor: MaterialAnimationPropertyInfo[];
5138
5281
  clearcoatRoughnessFactor: MaterialAnimationPropertyInfo[];
5282
+ clearcoatTexture: {
5283
+ extensions: {
5284
+ KHR_texture_transform: {
5285
+ scale: MaterialAnimationPropertyInfo[];
5286
+ offset: MaterialAnimationPropertyInfo[];
5287
+ rotation: MaterialAnimationPropertyInfo[];
5288
+ };
5289
+ };
5290
+ };
5291
+ clearcoatNormalTexture: {
5292
+ scale: MaterialAnimationPropertyInfo[];
5293
+ extensions: {
5294
+ KHR_texture_transform: {
5295
+ scale: MaterialAnimationPropertyInfo[];
5296
+ offset: MaterialAnimationPropertyInfo[];
5297
+ rotation: MaterialAnimationPropertyInfo[];
5298
+ };
5299
+ };
5300
+ };
5301
+ clearcoatRoughnessTexture: {
5302
+ extensions: {
5303
+ KHR_texture_transform: {
5304
+ scale: MaterialAnimationPropertyInfo[];
5305
+ offset: MaterialAnimationPropertyInfo[];
5306
+ rotation: MaterialAnimationPropertyInfo[];
5307
+ };
5308
+ };
5309
+ };
5310
+ };
5311
+ KHR_materials_dispersion: {
5312
+ dispersion: MaterialAnimationPropertyInfo[];
5313
+ };
5314
+ KHR_materials_emissive_strength: {
5315
+ emissiveStrength: MaterialAnimationPropertyInfo[];
5316
+ };
5317
+ KHR_materials_ior: {
5318
+ ior: MaterialAnimationPropertyInfo[];
5319
+ };
5320
+ KHR_materials_iridescence: {
5321
+ iridescenceFactor: MaterialAnimationPropertyInfo[];
5322
+ iridescenceIor: MaterialAnimationPropertyInfo[];
5323
+ iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
5324
+ iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
5139
5325
  };
5140
5326
  KHR_materials_sheen: {
5141
5327
  sheenColorFactor: MaterialAnimationPropertyInfo[];
5142
5328
  sheenRoughnessFactor: MaterialAnimationPropertyInfo[];
5329
+ sheenColorTexture: {
5330
+ extensions: {
5331
+ KHR_texture_transform: {
5332
+ scale: MaterialAnimationPropertyInfo[];
5333
+ offset: MaterialAnimationPropertyInfo[];
5334
+ rotation: MaterialAnimationPropertyInfo[];
5335
+ };
5336
+ };
5337
+ };
5338
+ sheenRoughnessTexture: {
5339
+ extensions: {
5340
+ KHR_texture_transform: {
5341
+ scale: MaterialAnimationPropertyInfo[];
5342
+ offset: MaterialAnimationPropertyInfo[];
5343
+ rotation: MaterialAnimationPropertyInfo[];
5344
+ };
5345
+ };
5346
+ };
5143
5347
  };
5144
5348
  KHR_materials_specular: {
5145
5349
  specularFactor: MaterialAnimationPropertyInfo[];
5146
5350
  specularColorFactor: MaterialAnimationPropertyInfo[];
5147
- };
5148
- KHR_materials_emissive_strength: {
5149
- emissiveStrength: MaterialAnimationPropertyInfo[];
5351
+ specularTexture: {
5352
+ extensions: {
5353
+ KHR_texture_transform: {
5354
+ scale: MaterialAnimationPropertyInfo[];
5355
+ offset: MaterialAnimationPropertyInfo[];
5356
+ rotation: MaterialAnimationPropertyInfo[];
5357
+ };
5358
+ };
5359
+ };
5360
+ specularColorTexture: {
5361
+ extensions: {
5362
+ KHR_texture_transform: {
5363
+ scale: MaterialAnimationPropertyInfo[];
5364
+ offset: MaterialAnimationPropertyInfo[];
5365
+ rotation: MaterialAnimationPropertyInfo[];
5366
+ };
5367
+ };
5368
+ };
5150
5369
  };
5151
5370
  KHR_materials_transmission: {
5152
5371
  transmissionFactor: MaterialAnimationPropertyInfo[];
5372
+ transmissionTexture: {
5373
+ extensions: {
5374
+ KHR_texture_transform: {
5375
+ scale: MaterialAnimationPropertyInfo[];
5376
+ offset: MaterialAnimationPropertyInfo[];
5377
+ rotation: MaterialAnimationPropertyInfo[];
5378
+ };
5379
+ };
5380
+ };
5153
5381
  };
5154
5382
  KHR_materials_volume: {
5155
5383
  attenuationColor: MaterialAnimationPropertyInfo[];
5156
5384
  attenuationDistance: MaterialAnimationPropertyInfo[];
5157
5385
  thicknessFactor: MaterialAnimationPropertyInfo[];
5158
- };
5159
- KHR_materials_dispersion: {
5160
- dispersion: MaterialAnimationPropertyInfo[];
5161
- };
5162
- KHR_materials_iridescence: {
5163
- iridescenceFactor: MaterialAnimationPropertyInfo[];
5164
- iridescenceIor: MaterialAnimationPropertyInfo[];
5165
- iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
5166
- iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
5167
- };
5168
- KHR_materials_anisotropy: {
5169
- anisotropyStrength: MaterialAnimationPropertyInfo[];
5170
- anisotropyRotation: MaterialAnimationPropertyInfo[];
5386
+ thicknessTexture: {
5387
+ extensions: {
5388
+ KHR_texture_transform: {
5389
+ scale: MaterialAnimationPropertyInfo[];
5390
+ offset: MaterialAnimationPropertyInfo[];
5391
+ rotation: MaterialAnimationPropertyInfo[];
5392
+ };
5393
+ };
5394
+ };
5171
5395
  };
5172
5396
  };
5173
5397
  };
@@ -7584,6 +7808,10 @@ declare module BABYLON {
7584
7808
  * Defaults to true for backwards compatibility.
7585
7809
  */
7586
7810
  static MATERIAL_LOADING_FAILS_SILENTLY: boolean;
7811
+ /**
7812
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
7813
+ */
7814
+ static USE_LEGACY_BEHAVIOR: boolean;
7587
7815
  /**
7588
7816
  * Defines the name of the plugin.
7589
7817
  */
@@ -7703,6 +7931,10 @@ declare module BABYLON {
7703
7931
  * When a material fails to load OBJ loader will silently fail and onSuccess() callback will be triggered.
7704
7932
  */
7705
7933
  materialLoadingFailsSilently: boolean;
7934
+ /**
7935
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
7936
+ */
7937
+ useLegacyBehavior: boolean;
7706
7938
  };
7707
7939
 
7708
7940
 
@@ -7769,6 +8001,8 @@ declare module BABYLON {
7769
8001
  private _grayColor;
7770
8002
  private _materialToUse;
7771
8003
  private _babylonMeshesArray;
8004
+ private _pushTriangle;
8005
+ private _handednessSign;
7772
8006
  /**
7773
8007
  * Creates a new SolidParser
7774
8008
  * @param materialToUse defines the array to fill with the list of materials to use (it will be filled by the parse function)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "6.48.1",
3
+ "version": "7.0.0",
4
4
  "main": "babylonjs.loaders.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^6.48.1",
19
- "babylonjs-gltf2interface": "^6.48.1"
18
+ "babylonjs": "^7.0.0",
19
+ "babylonjs-gltf2interface": "^7.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",