babylonjs-gltf2interface 5.1.0 → 5.4.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.
@@ -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 IKHRLightsPunctual_LightType {
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: IKHRLightsPunctual_LightType;
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?() : boolean;
1031
+ hasTextures?(): boolean;
1029
1032
  }
1030
1033
 
1031
1034
  /** @hidden */
@@ -1037,14 +1040,57 @@ declare module BABYLON.GLTF2 {
1037
1040
  clearcoatNormalTexture?: IMaterialNormalTextureInfo;
1038
1041
  }
1039
1042
 
1043
+ /** @hidden */
1044
+ interface IKHRMaterialsIridescence extends IMaterialExtension {
1045
+ iridescenceFactor?: number;
1046
+ iridescenceIor?: number;
1047
+ iridescenceThicknessMinimum?: number;
1048
+ iridescenceThicknessMaximum?: number;
1049
+ iridescenceTexture?: ITextureInfo;
1050
+ iridescenceThicknessTexture?: ITextureInfo;
1051
+ }
1052
+
1040
1053
  /**
1041
1054
  * Interfaces from the KHR_materials_ior extension
1042
- * !!! Experimental Extension Subject to Changes !!!
1043
1055
  */
1044
1056
 
1045
1057
  /** @hidden */
1046
1058
  interface IKHRMaterialsIor extends IMaterialExtension {
1047
- ior: number;
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;
1048
1094
  }
1049
1095
 
1050
1096
  /**
@@ -1072,7 +1118,6 @@ declare module BABYLON.GLTF2 {
1072
1118
 
1073
1119
  /**
1074
1120
  * Interfaces from the KHR_materials_sheen extension
1075
- * !!! Experimental Extension Subject to Changes !!!
1076
1121
  */
1077
1122
 
1078
1123
  /** @hidden */
@@ -1083,30 +1128,6 @@ declare module BABYLON.GLTF2 {
1083
1128
  sheenRoughnessTexture?: ITextureInfo;
1084
1129
  }
1085
1130
 
1086
- /**
1087
- * Interfaces from the KHR_materials_specular extension
1088
- * !!! Experimental Extension Subject to Changes !!!
1089
- */
1090
-
1091
- /** @hidden */
1092
- interface IKHRMaterialsSpecular extends IMaterialExtension {
1093
- specularFactor: number;
1094
- specularColorFactor: number[];
1095
- specularTexture: ITextureInfo;
1096
- specularColorTexture: ITextureInfo;
1097
- }
1098
-
1099
- /**
1100
- * Interfaces from the KHR_materials_transmission extension
1101
- * !!! Experimental Extension Subject to Changes !!!
1102
- */
1103
-
1104
- /** @hidden */
1105
- interface IKHRMaterialsTransmission extends IMaterialExtension {
1106
- transmissionFactor?: number;
1107
- transmissionTexture?: ITextureInfo;
1108
- }
1109
-
1110
1131
  /**
1111
1132
  * Interfaces from the KHR_materials_translucency extension
1112
1133
  * !!! Experimental Extension Subject to Changes !!!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "babylonjs-gltf2interface",
3
3
  "description": "A typescript declaration of babylon's gltf2 interface.",
4
- "version": "5.1.0",
4
+ "version": "5.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/BabylonJS/Babylon.js.git"