babylonjs-gltf2interface 5.24.0 → 5.26.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.
- package/babylon.glTF2Interface.d.ts +50 -43
- package/package.json +1 -1
@@ -948,7 +948,7 @@ declare module BABYLON.GLTF2 {
|
|
948
948
|
|
949
949
|
/**
|
950
950
|
* The glTF validator object
|
951
|
-
* @
|
951
|
+
* @internal
|
952
952
|
*/
|
953
953
|
interface IGLTFValidator {
|
954
954
|
validateBytes: (data: Uint8Array, options?: IGLTFValidationOptions) => Promise<IGLTFValidationResults>;
|
@@ -959,12 +959,12 @@ declare module BABYLON.GLTF2 {
|
|
959
959
|
* Interfaces from the EXT_lights_image_based extension
|
960
960
|
*/
|
961
961
|
|
962
|
-
/** @
|
962
|
+
/** @internal */
|
963
963
|
interface IEXTLightsImageBased_LightReferenceImageBased {
|
964
964
|
light: number;
|
965
965
|
}
|
966
966
|
|
967
|
-
/** @
|
967
|
+
/** @internal */
|
968
968
|
interface IEXTLightsImageBased_LightImageBased extends IChildRootProperty {
|
969
969
|
intensity: number;
|
970
970
|
rotation: number[];
|
@@ -973,7 +973,7 @@ declare module BABYLON.GLTF2 {
|
|
973
973
|
irradianceCoefficients: number[][];
|
974
974
|
}
|
975
975
|
|
976
|
-
/** @
|
976
|
+
/** @internal */
|
977
977
|
interface IEXTLightsImageBased {
|
978
978
|
lights: IEXTLightsImageBased_LightImageBased[];
|
979
979
|
}
|
@@ -983,7 +983,7 @@ declare module BABYLON.GLTF2 {
|
|
983
983
|
* !!! Experimental Extension Subject to Changes !!!
|
984
984
|
*/
|
985
985
|
|
986
|
-
/** @
|
986
|
+
/** @internal */
|
987
987
|
interface IEXTMeshGpuInstancing {
|
988
988
|
mesh?: number;
|
989
989
|
attributes: { [name: string]: number };
|
@@ -993,7 +993,7 @@ declare module BABYLON.GLTF2 {
|
|
993
993
|
* Interfaces from the KHR_draco_mesh_compression extension
|
994
994
|
*/
|
995
995
|
|
996
|
-
/** @
|
996
|
+
/** @internal */
|
997
997
|
interface IKHRDracoMeshCompression {
|
998
998
|
bufferView: number;
|
999
999
|
attributes: { [name: string]: number };
|
@@ -1003,19 +1003,19 @@ declare module BABYLON.GLTF2 {
|
|
1003
1003
|
* Interfaces from the KHR_lights_punctual extension
|
1004
1004
|
*/
|
1005
1005
|
|
1006
|
-
/** @
|
1006
|
+
/** @internal */
|
1007
1007
|
const enum KHRLightsPunctual_LightType {
|
1008
1008
|
DIRECTIONAL = "directional",
|
1009
1009
|
POINT = "point",
|
1010
1010
|
SPOT = "spot",
|
1011
1011
|
}
|
1012
1012
|
|
1013
|
-
/** @
|
1013
|
+
/** @internal */
|
1014
1014
|
interface IKHRLightsPunctual_LightReference {
|
1015
1015
|
light: number;
|
1016
1016
|
}
|
1017
1017
|
|
1018
|
-
/** @
|
1018
|
+
/** @internal */
|
1019
1019
|
interface IKHRLightsPunctual_Light extends IChildRootProperty {
|
1020
1020
|
type: KHRLightsPunctual_LightType;
|
1021
1021
|
color?: number[];
|
@@ -1027,17 +1027,17 @@ declare module BABYLON.GLTF2 {
|
|
1027
1027
|
};
|
1028
1028
|
}
|
1029
1029
|
|
1030
|
-
/** @
|
1030
|
+
/** @internal */
|
1031
1031
|
interface IKHRLightsPunctual {
|
1032
1032
|
lights: IKHRLightsPunctual_Light[];
|
1033
1033
|
}
|
1034
1034
|
|
1035
|
-
/** @
|
1035
|
+
/** @internal */
|
1036
1036
|
interface IMaterialExtension {
|
1037
1037
|
hasTextures?(): boolean;
|
1038
1038
|
}
|
1039
1039
|
|
1040
|
-
/** @
|
1040
|
+
/** @internal */
|
1041
1041
|
interface IKHRMaterialsClearcoat extends IMaterialExtension {
|
1042
1042
|
clearcoatFactor?: number;
|
1043
1043
|
clearcoatTexture?: ITextureInfo;
|
@@ -1046,7 +1046,7 @@ declare module BABYLON.GLTF2 {
|
|
1046
1046
|
clearcoatNormalTexture?: IMaterialNormalTextureInfo;
|
1047
1047
|
}
|
1048
1048
|
|
1049
|
-
/** @
|
1049
|
+
/** @internal */
|
1050
1050
|
interface IKHRMaterialsIridescence extends IMaterialExtension {
|
1051
1051
|
iridescenceFactor?: number;
|
1052
1052
|
iridescenceIor?: number;
|
@@ -1060,7 +1060,7 @@ declare module BABYLON.GLTF2 {
|
|
1060
1060
|
* Interfaces from the KHR_materials_ior extension
|
1061
1061
|
*/
|
1062
1062
|
|
1063
|
-
/** @
|
1063
|
+
/** @internal */
|
1064
1064
|
interface IKHRMaterialsIor extends IMaterialExtension {
|
1065
1065
|
ior?: number;
|
1066
1066
|
}
|
@@ -1069,7 +1069,7 @@ declare module BABYLON.GLTF2 {
|
|
1069
1069
|
* Interfaces from the KHR_materials_volume extension
|
1070
1070
|
*/
|
1071
1071
|
|
1072
|
-
/** @
|
1072
|
+
/** @internal */
|
1073
1073
|
interface IKHRMaterialsVolume extends IMaterialExtension {
|
1074
1074
|
thicknessFactor?: number;
|
1075
1075
|
thicknessTexture?: ITextureInfo;
|
@@ -1081,7 +1081,7 @@ declare module BABYLON.GLTF2 {
|
|
1081
1081
|
* Interfaces from the KHR_materials_specular extension
|
1082
1082
|
*/
|
1083
1083
|
|
1084
|
-
/** @
|
1084
|
+
/** @internal */
|
1085
1085
|
interface IKHRMaterialsSpecular extends IMaterialExtension {
|
1086
1086
|
specularFactor?: number;
|
1087
1087
|
specularColorFactor?: number[];
|
@@ -1093,7 +1093,7 @@ declare module BABYLON.GLTF2 {
|
|
1093
1093
|
* Interfaces from the KHR_materials_transmission extension
|
1094
1094
|
*/
|
1095
1095
|
|
1096
|
-
/** @
|
1096
|
+
/** @internal */
|
1097
1097
|
interface IKHRMaterialsTransmission extends IMaterialExtension {
|
1098
1098
|
transmissionFactor?: number;
|
1099
1099
|
transmissionTexture?: ITextureInfo;
|
@@ -1101,10 +1101,9 @@ declare module BABYLON.GLTF2 {
|
|
1101
1101
|
|
1102
1102
|
/**
|
1103
1103
|
* Interfaces from the KHR_materials_emissive_strength extension
|
1104
|
-
* !!! Experimental Extension Subject to Changes !!!
|
1105
1104
|
*/
|
1106
1105
|
|
1107
|
-
/** @
|
1106
|
+
/** @internal */
|
1108
1107
|
interface IKHRMaterialsEmissiveStrength extends IMaterialExtension {
|
1109
1108
|
emissiveStrength: number;
|
1110
1109
|
}
|
@@ -1113,7 +1112,7 @@ declare module BABYLON.GLTF2 {
|
|
1113
1112
|
* Interfaces from the KHR_materials_pbrSpecularGlossiness extension
|
1114
1113
|
*/
|
1115
1114
|
|
1116
|
-
/** @
|
1115
|
+
/** @internal */
|
1117
1116
|
interface IKHRMaterialsPbrSpecularGlossiness extends IMaterialExtension {
|
1118
1117
|
diffuseFactor: number[];
|
1119
1118
|
diffuseTexture: ITextureInfo;
|
@@ -1126,7 +1125,7 @@ declare module BABYLON.GLTF2 {
|
|
1126
1125
|
* Interfaces from the KHR_materials_sheen extension
|
1127
1126
|
*/
|
1128
1127
|
|
1129
|
-
/** @
|
1128
|
+
/** @internal */
|
1130
1129
|
interface IKHRMaterialsSheen extends IMaterialExtension {
|
1131
1130
|
sheenColorFactor?: number[];
|
1132
1131
|
sheenColorTexture?: ITextureInfo;
|
@@ -1139,7 +1138,7 @@ declare module BABYLON.GLTF2 {
|
|
1139
1138
|
* !!! Experimental Extension Subject to Changes !!!
|
1140
1139
|
*/
|
1141
1140
|
|
1142
|
-
/** @
|
1141
|
+
/** @internal */
|
1143
1142
|
interface IKHRMaterialsTranslucency extends IMaterialExtension {
|
1144
1143
|
translucencyFactor?: number;
|
1145
1144
|
translucencyTexture?: ITextureInfo;
|
@@ -1147,10 +1146,9 @@ declare module BABYLON.GLTF2 {
|
|
1147
1146
|
|
1148
1147
|
/**
|
1149
1148
|
* Interfaces from the KHR_materials_variants extension
|
1150
|
-
* !!! Experimental Extension Subject to Changes !!!
|
1151
1149
|
*/
|
1152
1150
|
|
1153
|
-
/** @
|
1151
|
+
/** @internal */
|
1154
1152
|
interface IKHRMaterialVariants_Mapping extends IProperty {
|
1155
1153
|
mappings: Array<{
|
1156
1154
|
variants: number[];
|
@@ -1158,22 +1156,21 @@ declare module BABYLON.GLTF2 {
|
|
1158
1156
|
}>;
|
1159
1157
|
}
|
1160
1158
|
|
1161
|
-
/** @
|
1159
|
+
/** @internal */
|
1162
1160
|
interface IKHRMaterialVariants_Variant extends IProperty {
|
1163
1161
|
name: string;
|
1164
1162
|
}
|
1165
1163
|
|
1166
|
-
/** @
|
1164
|
+
/** @internal */
|
1167
1165
|
interface IKHRMaterialVariants_Variants extends IChildRootProperty {
|
1168
1166
|
variants: Array<IKHRMaterialVariants_Variant>;
|
1169
1167
|
}
|
1170
1168
|
|
1171
1169
|
/**
|
1172
1170
|
* Interfaces from the KHR_texture_basisu extension
|
1173
|
-
* !!! Experimental Extension Subject to Changes !!!
|
1174
1171
|
*/
|
1175
1172
|
|
1176
|
-
/** @
|
1173
|
+
/** @internal */
|
1177
1174
|
interface IKHRTextureBasisU {
|
1178
1175
|
source: number;
|
1179
1176
|
}
|
@@ -1182,7 +1179,7 @@ declare module BABYLON.GLTF2 {
|
|
1182
1179
|
* Interfaces from the EXT_texture_webp extension
|
1183
1180
|
*/
|
1184
1181
|
|
1185
|
-
/** @
|
1182
|
+
/** @internal */
|
1186
1183
|
interface IEXTTextureWebP {
|
1187
1184
|
source: number;
|
1188
1185
|
}
|
@@ -1191,7 +1188,7 @@ declare module BABYLON.GLTF2 {
|
|
1191
1188
|
* Interfaces from the KHR_texture_transform extension
|
1192
1189
|
*/
|
1193
1190
|
|
1194
|
-
/** @
|
1191
|
+
/** @internal */
|
1195
1192
|
interface IKHRTextureTransform {
|
1196
1193
|
offset?: number[];
|
1197
1194
|
rotation?: number;
|
@@ -1201,44 +1198,54 @@ declare module BABYLON.GLTF2 {
|
|
1201
1198
|
|
1202
1199
|
/**
|
1203
1200
|
* Interfaces from the KHR_xmp_json_ld extension
|
1204
|
-
* !!! Experimental Extension Subject to Changes !!!
|
1205
1201
|
*/
|
1206
1202
|
|
1207
|
-
/** @
|
1203
|
+
/** @internal */
|
1208
1204
|
interface IKHRXmpJsonLd_Gltf {
|
1209
1205
|
packets: Array<{
|
1210
1206
|
[key: string]: unknown;
|
1211
1207
|
}>;
|
1212
1208
|
}
|
1213
1209
|
|
1214
|
-
/** @
|
1210
|
+
/** @internal */
|
1215
1211
|
interface IKHRXmpJsonLd_Node {
|
1216
1212
|
packet: number;
|
1217
1213
|
}
|
1218
1214
|
|
1215
|
+
|
1219
1216
|
/**
|
1220
|
-
* Interfaces from the
|
1217
|
+
* Interfaces from the KHR_animation_pointer extension
|
1218
|
+
* !!! Experimental Extension Subject to Changes !!!
|
1221
1219
|
*/
|
1222
1220
|
|
1223
1221
|
/** @hidden */
|
1222
|
+
interface IKHRAnimationPointer {
|
1223
|
+
pointer: string;
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
/**
|
1227
|
+
* Interfaces from the MSFT_audio_emitter extension
|
1228
|
+
*/
|
1229
|
+
|
1230
|
+
/** @internal */
|
1224
1231
|
interface IMSFTAudioEmitter_ClipReference {
|
1225
1232
|
clip: number;
|
1226
1233
|
weight?: number;
|
1227
1234
|
}
|
1228
1235
|
|
1229
|
-
/** @
|
1236
|
+
/** @internal */
|
1230
1237
|
interface IMSFTAudioEmitter_EmittersReference {
|
1231
1238
|
emitters: number[];
|
1232
1239
|
}
|
1233
1240
|
|
1234
|
-
/** @
|
1241
|
+
/** @internal */
|
1235
1242
|
const enum IMSFTAudioEmitter_DistanceModel {
|
1236
1243
|
linear = "linear",
|
1237
1244
|
inverse = "inverse",
|
1238
1245
|
exponential = "exponential",
|
1239
1246
|
}
|
1240
1247
|
|
1241
|
-
/** @
|
1248
|
+
/** @internal */
|
1242
1249
|
interface IMSFTAudioEmitter_Emitter {
|
1243
1250
|
name?: string;
|
1244
1251
|
distanceModel?: IMSFTAudioEmitter_DistanceModel;
|
@@ -1252,26 +1259,26 @@ declare module BABYLON.GLTF2 {
|
|
1252
1259
|
clips: IMSFTAudioEmitter_ClipReference[];
|
1253
1260
|
}
|
1254
1261
|
|
1255
|
-
/** @
|
1262
|
+
/** @internal */
|
1256
1263
|
const enum IMSFTAudioEmitter_AudioMimeType {
|
1257
1264
|
WAV = "audio/wav",
|
1258
1265
|
}
|
1259
1266
|
|
1260
|
-
/** @
|
1267
|
+
/** @internal */
|
1261
1268
|
interface IMSFTAudioEmitter_Clip extends IProperty {
|
1262
1269
|
uri?: string;
|
1263
1270
|
bufferView?: number;
|
1264
1271
|
mimeType?: IMSFTAudioEmitter_AudioMimeType;
|
1265
1272
|
}
|
1266
1273
|
|
1267
|
-
/** @
|
1274
|
+
/** @internal */
|
1268
1275
|
const enum IMSFTAudioEmitter_AnimationEventAction {
|
1269
1276
|
play = "play",
|
1270
1277
|
pause = "pause",
|
1271
1278
|
stop = "stop",
|
1272
1279
|
}
|
1273
1280
|
|
1274
|
-
/** @
|
1281
|
+
/** @internal */
|
1275
1282
|
interface IMSFTAudioEmitter_AnimationEvent {
|
1276
1283
|
action: IMSFTAudioEmitter_AnimationEventAction;
|
1277
1284
|
emitter: number;
|
@@ -1283,7 +1290,7 @@ declare module BABYLON.GLTF2 {
|
|
1283
1290
|
* Interfaces from the MSFT_lod extension
|
1284
1291
|
*/
|
1285
1292
|
|
1286
|
-
/** @
|
1293
|
+
/** @internal */
|
1287
1294
|
interface IMSFTLOD {
|
1288
1295
|
ids: number[];
|
1289
1296
|
}
|
@@ -1292,7 +1299,7 @@ declare module BABYLON.GLTF2 {
|
|
1292
1299
|
* Interfaces from the EXT_meshopt_compression extension
|
1293
1300
|
*/
|
1294
1301
|
|
1295
|
-
/** @
|
1302
|
+
/** @internal */
|
1296
1303
|
interface IEXTMeshoptCompression {
|
1297
1304
|
buffer: number;
|
1298
1305
|
byteOffset?: number;
|
package/package.json
CHANGED