babylonjs-gltf2interface 5.2.0 → 5.5.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 +45 -34
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
3
|
declare module "babylonjs-gltf2interface" {
|
|
2
4
|
export = BABYLON.GLTF2;
|
|
3
5
|
}
|
|
6
|
+
|
|
4
7
|
/**
|
|
5
8
|
* Module for glTF 2.0 Interface
|
|
6
9
|
*/
|
|
@@ -903,7 +906,7 @@ declare module BABYLON.GLTF2 {
|
|
|
903
906
|
hasSkins: boolean;
|
|
904
907
|
hasTextures: boolean;
|
|
905
908
|
maxAttributesUsed: number;
|
|
906
|
-
primitivesCount: number
|
|
909
|
+
primitivesCount: number;
|
|
907
910
|
};
|
|
908
911
|
issues: {
|
|
909
912
|
messages: Array<string>;
|
|
@@ -911,7 +914,7 @@ declare module BABYLON.GLTF2 {
|
|
|
911
914
|
numHints: number;
|
|
912
915
|
numInfos: number;
|
|
913
916
|
numWarnings: number;
|
|
914
|
-
truncated: boolean
|
|
917
|
+
truncated: boolean;
|
|
915
918
|
};
|
|
916
919
|
mimeType: string;
|
|
917
920
|
uri: string;
|
|
@@ -995,10 +998,10 @@ declare module BABYLON.GLTF2 {
|
|
|
995
998
|
*/
|
|
996
999
|
|
|
997
1000
|
/** @hidden */
|
|
998
|
-
const enum
|
|
1001
|
+
const enum KHRLightsPunctual_LightType {
|
|
999
1002
|
DIRECTIONAL = "directional",
|
|
1000
1003
|
POINT = "point",
|
|
1001
|
-
SPOT = "spot"
|
|
1004
|
+
SPOT = "spot",
|
|
1002
1005
|
}
|
|
1003
1006
|
|
|
1004
1007
|
/** @hidden */
|
|
@@ -1008,7 +1011,7 @@ declare module BABYLON.GLTF2 {
|
|
|
1008
1011
|
|
|
1009
1012
|
/** @hidden */
|
|
1010
1013
|
interface IKHRLightsPunctual_Light extends IChildRootProperty {
|
|
1011
|
-
type:
|
|
1014
|
+
type: KHRLightsPunctual_LightType;
|
|
1012
1015
|
color?: number[];
|
|
1013
1016
|
intensity?: number;
|
|
1014
1017
|
range?: number;
|
|
@@ -1025,7 +1028,7 @@ declare module BABYLON.GLTF2 {
|
|
|
1025
1028
|
|
|
1026
1029
|
/** @hidden */
|
|
1027
1030
|
interface IMaterialExtension {
|
|
1028
|
-
hasTextures?()
|
|
1031
|
+
hasTextures?(): boolean;
|
|
1029
1032
|
}
|
|
1030
1033
|
|
|
1031
1034
|
/** @hidden */
|
|
@@ -1040,7 +1043,7 @@ declare module BABYLON.GLTF2 {
|
|
|
1040
1043
|
/** @hidden */
|
|
1041
1044
|
interface IKHRMaterialsIridescence extends IMaterialExtension {
|
|
1042
1045
|
iridescenceFactor?: number;
|
|
1043
|
-
|
|
1046
|
+
iridescenceIor?: number;
|
|
1044
1047
|
iridescenceThicknessMinimum?: number;
|
|
1045
1048
|
iridescenceThicknessMaximum?: number;
|
|
1046
1049
|
iridescenceTexture?: ITextureInfo;
|
|
@@ -1049,12 +1052,45 @@ declare module BABYLON.GLTF2 {
|
|
|
1049
1052
|
|
|
1050
1053
|
/**
|
|
1051
1054
|
* Interfaces from the KHR_materials_ior extension
|
|
1052
|
-
* !!! Experimental Extension Subject to Changes !!!
|
|
1053
1055
|
*/
|
|
1054
1056
|
|
|
1055
1057
|
/** @hidden */
|
|
1056
1058
|
interface IKHRMaterialsIor extends IMaterialExtension {
|
|
1057
|
-
ior
|
|
1059
|
+
ior?: number;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Interfaces from the KHR_materials_volume extension
|
|
1064
|
+
*/
|
|
1065
|
+
|
|
1066
|
+
/** @hidden */
|
|
1067
|
+
interface IKHRMaterialsVolume extends IMaterialExtension {
|
|
1068
|
+
thicknessFactor?: number;
|
|
1069
|
+
thicknessTexture?: ITextureInfo;
|
|
1070
|
+
attenuationDistance?: number;
|
|
1071
|
+
attenuationColor?: number[];
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Interfaces from the KHR_materials_specular extension
|
|
1076
|
+
*/
|
|
1077
|
+
|
|
1078
|
+
/** @hidden */
|
|
1079
|
+
interface IKHRMaterialsSpecular extends IMaterialExtension {
|
|
1080
|
+
specularFactor?: number;
|
|
1081
|
+
specularColorFactor?: number[];
|
|
1082
|
+
specularTexture?: ITextureInfo;
|
|
1083
|
+
specularColorTexture?: ITextureInfo;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Interfaces from the KHR_materials_transmission extension
|
|
1088
|
+
*/
|
|
1089
|
+
|
|
1090
|
+
/** @hidden */
|
|
1091
|
+
interface IKHRMaterialsTransmission extends IMaterialExtension {
|
|
1092
|
+
transmissionFactor?: number;
|
|
1093
|
+
transmissionTexture?: ITextureInfo;
|
|
1058
1094
|
}
|
|
1059
1095
|
|
|
1060
1096
|
/**
|
|
@@ -1082,7 +1118,6 @@ declare module BABYLON.GLTF2 {
|
|
|
1082
1118
|
|
|
1083
1119
|
/**
|
|
1084
1120
|
* Interfaces from the KHR_materials_sheen extension
|
|
1085
|
-
* !!! Experimental Extension Subject to Changes !!!
|
|
1086
1121
|
*/
|
|
1087
1122
|
|
|
1088
1123
|
/** @hidden */
|
|
@@ -1093,30 +1128,6 @@ declare module BABYLON.GLTF2 {
|
|
|
1093
1128
|
sheenRoughnessTexture?: ITextureInfo;
|
|
1094
1129
|
}
|
|
1095
1130
|
|
|
1096
|
-
/**
|
|
1097
|
-
* Interfaces from the KHR_materials_specular extension
|
|
1098
|
-
* !!! Experimental Extension Subject to Changes !!!
|
|
1099
|
-
*/
|
|
1100
|
-
|
|
1101
|
-
/** @hidden */
|
|
1102
|
-
interface IKHRMaterialsSpecular extends IMaterialExtension {
|
|
1103
|
-
specularFactor?: number;
|
|
1104
|
-
specularColorFactor?: number[];
|
|
1105
|
-
specularTexture?: ITextureInfo;
|
|
1106
|
-
specularColorTexture?: ITextureInfo;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
/**
|
|
1110
|
-
* Interfaces from the KHR_materials_transmission extension
|
|
1111
|
-
* !!! Experimental Extension Subject to Changes !!!
|
|
1112
|
-
*/
|
|
1113
|
-
|
|
1114
|
-
/** @hidden */
|
|
1115
|
-
interface IKHRMaterialsTransmission extends IMaterialExtension {
|
|
1116
|
-
transmissionFactor?: number;
|
|
1117
|
-
transmissionTexture?: ITextureInfo;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
1131
|
/**
|
|
1121
1132
|
* Interfaces from the KHR_materials_translucency extension
|
|
1122
1133
|
* !!! Experimental Extension Subject to Changes !!!
|
package/package.json
CHANGED