babylonjs-loaders 6.48.0 → 6.49.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.
@@ -1025,10 +1025,26 @@ declare module BABYLON.GLTF2.Loader.Extensions {
1025
1025
  };
1026
1026
  };
1027
1027
  };
1028
+ metallicRoughnessTexture: {
1029
+ extensions: {
1030
+ KHR_texture_transform: {
1031
+ scale: MaterialAnimationPropertyInfo[];
1032
+ offset: MaterialAnimationPropertyInfo[];
1033
+ rotation: MaterialAnimationPropertyInfo[];
1034
+ };
1035
+ };
1036
+ };
1028
1037
  };
1029
1038
  emissiveFactor: MaterialAnimationPropertyInfo[];
1030
1039
  normalTexture: {
1031
1040
  scale: MaterialAnimationPropertyInfo[];
1041
+ extensions: {
1042
+ KHR_texture_transform: {
1043
+ scale: MaterialAnimationPropertyInfo[];
1044
+ offset: MaterialAnimationPropertyInfo[];
1045
+ rotation: MaterialAnimationPropertyInfo[];
1046
+ };
1047
+ };
1032
1048
  };
1033
1049
  occlusionTexture: {
1034
1050
  strength: MaterialAnimationPropertyInfo[];
@@ -1050,44 +1066,135 @@ declare module BABYLON.GLTF2.Loader.Extensions {
1050
1066
  };
1051
1067
  };
1052
1068
  extensions: {
1053
- KHR_materials_ior: {
1054
- ior: MaterialAnimationPropertyInfo[];
1069
+ KHR_materials_anisotropy: {
1070
+ anisotropyStrength: MaterialAnimationPropertyInfo[];
1071
+ anisotropyRotation: MaterialAnimationPropertyInfo[];
1072
+ anisotropyTexture: {
1073
+ extensions: {
1074
+ KHR_texture_transform: {
1075
+ scale: MaterialAnimationPropertyInfo[];
1076
+ offset: MaterialAnimationPropertyInfo[];
1077
+ rotation: MaterialAnimationPropertyInfo[];
1078
+ };
1079
+ };
1080
+ };
1055
1081
  };
1056
1082
  KHR_materials_clearcoat: {
1057
1083
  clearcoatFactor: MaterialAnimationPropertyInfo[];
1058
1084
  clearcoatRoughnessFactor: MaterialAnimationPropertyInfo[];
1085
+ clearcoatTexture: {
1086
+ extensions: {
1087
+ KHR_texture_transform: {
1088
+ scale: MaterialAnimationPropertyInfo[];
1089
+ offset: MaterialAnimationPropertyInfo[];
1090
+ rotation: MaterialAnimationPropertyInfo[];
1091
+ };
1092
+ };
1093
+ };
1094
+ clearcoatNormalTexture: {
1095
+ scale: MaterialAnimationPropertyInfo[];
1096
+ extensions: {
1097
+ KHR_texture_transform: {
1098
+ scale: MaterialAnimationPropertyInfo[];
1099
+ offset: MaterialAnimationPropertyInfo[];
1100
+ rotation: MaterialAnimationPropertyInfo[];
1101
+ };
1102
+ };
1103
+ };
1104
+ clearcoatRoughnessTexture: {
1105
+ extensions: {
1106
+ KHR_texture_transform: {
1107
+ scale: MaterialAnimationPropertyInfo[];
1108
+ offset: MaterialAnimationPropertyInfo[];
1109
+ rotation: MaterialAnimationPropertyInfo[];
1110
+ };
1111
+ };
1112
+ };
1113
+ };
1114
+ KHR_materials_dispersion: {
1115
+ dispersion: MaterialAnimationPropertyInfo[];
1116
+ };
1117
+ KHR_materials_emissive_strength: {
1118
+ emissiveStrength: MaterialAnimationPropertyInfo[];
1119
+ };
1120
+ KHR_materials_ior: {
1121
+ ior: MaterialAnimationPropertyInfo[];
1122
+ };
1123
+ KHR_materials_iridescence: {
1124
+ iridescenceFactor: MaterialAnimationPropertyInfo[];
1125
+ iridescenceIor: MaterialAnimationPropertyInfo[];
1126
+ iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
1127
+ iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
1059
1128
  };
1060
1129
  KHR_materials_sheen: {
1061
1130
  sheenColorFactor: MaterialAnimationPropertyInfo[];
1062
1131
  sheenRoughnessFactor: MaterialAnimationPropertyInfo[];
1132
+ sheenColorTexture: {
1133
+ extensions: {
1134
+ KHR_texture_transform: {
1135
+ scale: MaterialAnimationPropertyInfo[];
1136
+ offset: MaterialAnimationPropertyInfo[];
1137
+ rotation: MaterialAnimationPropertyInfo[];
1138
+ };
1139
+ };
1140
+ };
1141
+ sheenRoughnessTexture: {
1142
+ extensions: {
1143
+ KHR_texture_transform: {
1144
+ scale: MaterialAnimationPropertyInfo[];
1145
+ offset: MaterialAnimationPropertyInfo[];
1146
+ rotation: MaterialAnimationPropertyInfo[];
1147
+ };
1148
+ };
1149
+ };
1063
1150
  };
1064
1151
  KHR_materials_specular: {
1065
1152
  specularFactor: MaterialAnimationPropertyInfo[];
1066
1153
  specularColorFactor: MaterialAnimationPropertyInfo[];
1067
- };
1068
- KHR_materials_emissive_strength: {
1069
- emissiveStrength: MaterialAnimationPropertyInfo[];
1154
+ specularTexture: {
1155
+ extensions: {
1156
+ KHR_texture_transform: {
1157
+ scale: MaterialAnimationPropertyInfo[];
1158
+ offset: MaterialAnimationPropertyInfo[];
1159
+ rotation: MaterialAnimationPropertyInfo[];
1160
+ };
1161
+ };
1162
+ };
1163
+ specularColorTexture: {
1164
+ extensions: {
1165
+ KHR_texture_transform: {
1166
+ scale: MaterialAnimationPropertyInfo[];
1167
+ offset: MaterialAnimationPropertyInfo[];
1168
+ rotation: MaterialAnimationPropertyInfo[];
1169
+ };
1170
+ };
1171
+ };
1070
1172
  };
1071
1173
  KHR_materials_transmission: {
1072
1174
  transmissionFactor: MaterialAnimationPropertyInfo[];
1175
+ transmissionTexture: {
1176
+ extensions: {
1177
+ KHR_texture_transform: {
1178
+ scale: MaterialAnimationPropertyInfo[];
1179
+ offset: MaterialAnimationPropertyInfo[];
1180
+ rotation: MaterialAnimationPropertyInfo[];
1181
+ };
1182
+ };
1183
+ };
1073
1184
  };
1074
1185
  KHR_materials_volume: {
1075
1186
  attenuationColor: MaterialAnimationPropertyInfo[];
1076
1187
  attenuationDistance: MaterialAnimationPropertyInfo[];
1077
1188
  thicknessFactor: MaterialAnimationPropertyInfo[];
1078
- };
1079
- KHR_materials_dispersion: {
1080
- dispersion: MaterialAnimationPropertyInfo[];
1081
- };
1082
- KHR_materials_iridescence: {
1083
- iridescenceFactor: MaterialAnimationPropertyInfo[];
1084
- iridescenceIor: MaterialAnimationPropertyInfo[];
1085
- iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
1086
- iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
1087
- };
1088
- KHR_materials_anisotropy: {
1089
- anisotropyStrength: MaterialAnimationPropertyInfo[];
1090
- anisotropyRotation: MaterialAnimationPropertyInfo[];
1189
+ thicknessTexture: {
1190
+ extensions: {
1191
+ KHR_texture_transform: {
1192
+ scale: MaterialAnimationPropertyInfo[];
1193
+ offset: MaterialAnimationPropertyInfo[];
1194
+ rotation: MaterialAnimationPropertyInfo[];
1195
+ };
1196
+ };
1197
+ };
1091
1198
  };
1092
1199
  };
1093
1200
  };
@@ -3504,6 +3611,10 @@ declare module BABYLON {
3504
3611
  * Defaults to true for backwards compatibility.
3505
3612
  */
3506
3613
  static MATERIAL_LOADING_FAILS_SILENTLY: boolean;
3614
+ /**
3615
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
3616
+ */
3617
+ static USE_LEGACY_BEHAVIOR: boolean;
3507
3618
  /**
3508
3619
  * Defines the name of the plugin.
3509
3620
  */
@@ -3623,6 +3734,10 @@ declare module BABYLON {
3623
3734
  * When a material fails to load OBJ loader will silently fail and onSuccess() callback will be triggered.
3624
3735
  */
3625
3736
  materialLoadingFailsSilently: boolean;
3737
+ /**
3738
+ * Loads assets without handedness conversions. This flag is for compatibility. Use it only if absolutely required. Defaults to false.
3739
+ */
3740
+ useLegacyBehavior: boolean;
3626
3741
  };
3627
3742
 
3628
3743
 
@@ -3689,6 +3804,8 @@ declare module BABYLON {
3689
3804
  private _grayColor;
3690
3805
  private _materialToUse;
3691
3806
  private _babylonMeshesArray;
3807
+ private _pushTriangle;
3808
+ private _handednessSign;
3692
3809
  /**
3693
3810
  * Creates a new SolidParser
3694
3811
  * @param materialToUse defines the array to fill with the list of materials to use (it will be filled by the parse function)