@babylonjs/loaders 5.0.0-rc.7 → 5.0.0-rc.9
Sign up to get free protection for your applications and to get access to all the features.
- package/OBJ/index.d.ts +4 -4
- package/OBJ/index.js +4 -4
- package/OBJ/mtlFileLoader.d.ts +41 -41
- package/OBJ/mtlFileLoader.js +232 -232
- package/OBJ/objFileLoader.d.ts +126 -126
- package/OBJ/objFileLoader.js +296 -296
- package/OBJ/objLoadingOptions.d.ts +43 -43
- package/OBJ/objLoadingOptions.js +1 -1
- package/OBJ/solidParser.d.ts +154 -154
- package/OBJ/solidParser.js +693 -693
- package/STL/index.d.ts +1 -1
- package/STL/index.js +1 -1
- package/STL/stlFileLoader.d.ts +64 -64
- package/STL/stlFileLoader.js +233 -233
- package/glTF/1.0/glTFBinaryExtension.d.ts +13 -13
- package/glTF/1.0/glTFBinaryExtension.js +60 -60
- package/glTF/1.0/glTFLoader.d.ts +136 -136
- package/glTF/1.0/glTFLoader.js +1815 -1815
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -412
- package/glTF/1.0/glTFLoaderInterfaces.js +95 -95
- package/glTF/1.0/glTFLoaderUtils.d.ts +62 -62
- package/glTF/1.0/glTFLoaderUtils.js +250 -250
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +10 -10
- package/glTF/1.0/glTFMaterialsCommonExtension.js +129 -129
- package/glTF/1.0/index.d.ts +5 -5
- package/glTF/1.0/index.js +5 -5
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +43 -43
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +117 -117
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +36 -36
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +88 -88
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +34 -34
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +49 -49
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +29 -29
- package/glTF/2.0/Extensions/EXT_texture_webp.js +40 -40
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +50 -50
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -73
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +112 -112
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +36 -36
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +89 -89
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +94 -94
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +53 -53
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +42 -42
- package/glTF/2.0/Extensions/KHR_materials_ior.js +62 -62
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -80
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +84 -84
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_specular.js +74 -74
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +83 -83
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +288 -288
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +73 -73
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +87 -87
- package/glTF/2.0/Extensions/KHR_materials_variants.js +254 -254
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_volume.js +85 -85
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +22 -22
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +23 -23
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +29 -29
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +40 -40
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +33 -33
- package/glTF/2.0/Extensions/KHR_texture_transform.js +61 -61
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +32 -32
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +49 -49
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +54 -54
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +240 -240
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +109 -109
- package/glTF/2.0/Extensions/MSFT_lod.js +369 -369
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +36 -36
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +36 -36
- package/glTF/2.0/Extensions/index.d.ts +26 -26
- package/glTF/2.0/Extensions/index.js +26 -26
- package/glTF/2.0/glTFLoader.d.ts +405 -405
- package/glTF/2.0/glTFLoader.js +2366 -2366
- package/glTF/2.0/glTFLoaderExtension.d.ts +152 -152
- package/glTF/2.0/glTFLoaderExtension.js +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +211 -211
- package/glTF/2.0/glTFLoaderInterfaces.js +1 -1
- package/glTF/2.0/index.d.ts +4 -4
- package/glTF/2.0/index.js +4 -4
- package/glTF/glTFFileLoader.d.ts +433 -433
- package/glTF/glTFFileLoader.js +927 -927
- package/glTF/glTFValidation.d.ts +29 -29
- package/glTF/glTFValidation.js +123 -123
- package/glTF/index.d.ts +5 -5
- package/glTF/index.js +5 -5
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/legacy/legacy-glTF.d.ts +2 -2
- package/legacy/legacy-glTF.js +18 -18
- package/legacy/legacy-glTF1.d.ts +2 -2
- package/legacy/legacy-glTF1.js +14 -14
- package/legacy/legacy-glTF1FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF1FileLoader.js +3 -3
- package/legacy/legacy-glTF2.d.ts +2 -2
- package/legacy/legacy-glTF2.js +32 -32
- package/legacy/legacy-glTF2FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF2FileLoader.js +3 -3
- package/legacy/legacy-glTFFileLoader.d.ts +3 -3
- package/legacy/legacy-glTFFileLoader.js +4 -4
- package/legacy/legacy-objFileLoader.d.ts +1 -1
- package/legacy/legacy-objFileLoader.js +12 -12
- package/legacy/legacy-stlFileLoader.d.ts +1 -1
- package/legacy/legacy-stlFileLoader.js +12 -12
- package/legacy/legacy.d.ts +6 -6
- package/legacy/legacy.js +7 -7
- package/package.json +3 -3
@@ -1,96 +1,96 @@
|
|
1
|
-
/**
|
2
|
-
* Enums
|
3
|
-
* @hidden
|
4
|
-
*/
|
5
|
-
export var EComponentType;
|
6
|
-
(function (EComponentType) {
|
7
|
-
EComponentType[EComponentType["BYTE"] = 5120] = "BYTE";
|
8
|
-
EComponentType[EComponentType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
9
|
-
EComponentType[EComponentType["SHORT"] = 5122] = "SHORT";
|
10
|
-
EComponentType[EComponentType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
11
|
-
EComponentType[EComponentType["FLOAT"] = 5126] = "FLOAT";
|
12
|
-
})(EComponentType || (EComponentType = {}));
|
13
|
-
/** @hidden */
|
14
|
-
export var EShaderType;
|
15
|
-
(function (EShaderType) {
|
16
|
-
EShaderType[EShaderType["FRAGMENT"] = 35632] = "FRAGMENT";
|
17
|
-
EShaderType[EShaderType["VERTEX"] = 35633] = "VERTEX";
|
18
|
-
})(EShaderType || (EShaderType = {}));
|
19
|
-
/** @hidden */
|
20
|
-
export var EParameterType;
|
21
|
-
(function (EParameterType) {
|
22
|
-
EParameterType[EParameterType["BYTE"] = 5120] = "BYTE";
|
23
|
-
EParameterType[EParameterType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
24
|
-
EParameterType[EParameterType["SHORT"] = 5122] = "SHORT";
|
25
|
-
EParameterType[EParameterType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
26
|
-
EParameterType[EParameterType["INT"] = 5124] = "INT";
|
27
|
-
EParameterType[EParameterType["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
28
|
-
EParameterType[EParameterType["FLOAT"] = 5126] = "FLOAT";
|
29
|
-
EParameterType[EParameterType["FLOAT_VEC2"] = 35664] = "FLOAT_VEC2";
|
30
|
-
EParameterType[EParameterType["FLOAT_VEC3"] = 35665] = "FLOAT_VEC3";
|
31
|
-
EParameterType[EParameterType["FLOAT_VEC4"] = 35666] = "FLOAT_VEC4";
|
32
|
-
EParameterType[EParameterType["INT_VEC2"] = 35667] = "INT_VEC2";
|
33
|
-
EParameterType[EParameterType["INT_VEC3"] = 35668] = "INT_VEC3";
|
34
|
-
EParameterType[EParameterType["INT_VEC4"] = 35669] = "INT_VEC4";
|
35
|
-
EParameterType[EParameterType["BOOL"] = 35670] = "BOOL";
|
36
|
-
EParameterType[EParameterType["BOOL_VEC2"] = 35671] = "BOOL_VEC2";
|
37
|
-
EParameterType[EParameterType["BOOL_VEC3"] = 35672] = "BOOL_VEC3";
|
38
|
-
EParameterType[EParameterType["BOOL_VEC4"] = 35673] = "BOOL_VEC4";
|
39
|
-
EParameterType[EParameterType["FLOAT_MAT2"] = 35674] = "FLOAT_MAT2";
|
40
|
-
EParameterType[EParameterType["FLOAT_MAT3"] = 35675] = "FLOAT_MAT3";
|
41
|
-
EParameterType[EParameterType["FLOAT_MAT4"] = 35676] = "FLOAT_MAT4";
|
42
|
-
EParameterType[EParameterType["SAMPLER_2D"] = 35678] = "SAMPLER_2D";
|
43
|
-
})(EParameterType || (EParameterType = {}));
|
44
|
-
/** @hidden */
|
45
|
-
export var ETextureWrapMode;
|
46
|
-
(function (ETextureWrapMode) {
|
47
|
-
ETextureWrapMode[ETextureWrapMode["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
|
48
|
-
ETextureWrapMode[ETextureWrapMode["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
49
|
-
ETextureWrapMode[ETextureWrapMode["REPEAT"] = 10497] = "REPEAT";
|
50
|
-
})(ETextureWrapMode || (ETextureWrapMode = {}));
|
51
|
-
/** @hidden */
|
52
|
-
export var ETextureFilterType;
|
53
|
-
(function (ETextureFilterType) {
|
54
|
-
ETextureFilterType[ETextureFilterType["NEAREST"] = 9728] = "NEAREST";
|
55
|
-
ETextureFilterType[ETextureFilterType["LINEAR"] = 9728] = "LINEAR";
|
56
|
-
ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
|
57
|
-
ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
|
58
|
-
ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
|
59
|
-
ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
|
60
|
-
})(ETextureFilterType || (ETextureFilterType = {}));
|
61
|
-
/** @hidden */
|
62
|
-
export var ETextureFormat;
|
63
|
-
(function (ETextureFormat) {
|
64
|
-
ETextureFormat[ETextureFormat["ALPHA"] = 6406] = "ALPHA";
|
65
|
-
ETextureFormat[ETextureFormat["RGB"] = 6407] = "RGB";
|
66
|
-
ETextureFormat[ETextureFormat["RGBA"] = 6408] = "RGBA";
|
67
|
-
ETextureFormat[ETextureFormat["LUMINANCE"] = 6409] = "LUMINANCE";
|
68
|
-
ETextureFormat[ETextureFormat["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
69
|
-
})(ETextureFormat || (ETextureFormat = {}));
|
70
|
-
/** @hidden */
|
71
|
-
export var ECullingType;
|
72
|
-
(function (ECullingType) {
|
73
|
-
ECullingType[ECullingType["FRONT"] = 1028] = "FRONT";
|
74
|
-
ECullingType[ECullingType["BACK"] = 1029] = "BACK";
|
75
|
-
ECullingType[ECullingType["FRONT_AND_BACK"] = 1032] = "FRONT_AND_BACK";
|
76
|
-
})(ECullingType || (ECullingType = {}));
|
77
|
-
/** @hidden */
|
78
|
-
export var EBlendingFunction;
|
79
|
-
(function (EBlendingFunction) {
|
80
|
-
EBlendingFunction[EBlendingFunction["ZERO"] = 0] = "ZERO";
|
81
|
-
EBlendingFunction[EBlendingFunction["ONE"] = 1] = "ONE";
|
82
|
-
EBlendingFunction[EBlendingFunction["SRC_COLOR"] = 768] = "SRC_COLOR";
|
83
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_COLOR"] = 769] = "ONE_MINUS_SRC_COLOR";
|
84
|
-
EBlendingFunction[EBlendingFunction["DST_COLOR"] = 774] = "DST_COLOR";
|
85
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_COLOR"] = 775] = "ONE_MINUS_DST_COLOR";
|
86
|
-
EBlendingFunction[EBlendingFunction["SRC_ALPHA"] = 770] = "SRC_ALPHA";
|
87
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_ALPHA"] = 771] = "ONE_MINUS_SRC_ALPHA";
|
88
|
-
EBlendingFunction[EBlendingFunction["DST_ALPHA"] = 772] = "DST_ALPHA";
|
89
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_ALPHA"] = 773] = "ONE_MINUS_DST_ALPHA";
|
90
|
-
EBlendingFunction[EBlendingFunction["CONSTANT_COLOR"] = 32769] = "CONSTANT_COLOR";
|
91
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_COLOR"] = 32770] = "ONE_MINUS_CONSTANT_COLOR";
|
92
|
-
EBlendingFunction[EBlendingFunction["CONSTANT_ALPHA"] = 32771] = "CONSTANT_ALPHA";
|
93
|
-
EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_ALPHA"] = 32772] = "ONE_MINUS_CONSTANT_ALPHA";
|
94
|
-
EBlendingFunction[EBlendingFunction["SRC_ALPHA_SATURATE"] = 776] = "SRC_ALPHA_SATURATE";
|
95
|
-
})(EBlendingFunction || (EBlendingFunction = {}));
|
1
|
+
/**
|
2
|
+
* Enums
|
3
|
+
* @hidden
|
4
|
+
*/
|
5
|
+
export var EComponentType;
|
6
|
+
(function (EComponentType) {
|
7
|
+
EComponentType[EComponentType["BYTE"] = 5120] = "BYTE";
|
8
|
+
EComponentType[EComponentType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
9
|
+
EComponentType[EComponentType["SHORT"] = 5122] = "SHORT";
|
10
|
+
EComponentType[EComponentType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
11
|
+
EComponentType[EComponentType["FLOAT"] = 5126] = "FLOAT";
|
12
|
+
})(EComponentType || (EComponentType = {}));
|
13
|
+
/** @hidden */
|
14
|
+
export var EShaderType;
|
15
|
+
(function (EShaderType) {
|
16
|
+
EShaderType[EShaderType["FRAGMENT"] = 35632] = "FRAGMENT";
|
17
|
+
EShaderType[EShaderType["VERTEX"] = 35633] = "VERTEX";
|
18
|
+
})(EShaderType || (EShaderType = {}));
|
19
|
+
/** @hidden */
|
20
|
+
export var EParameterType;
|
21
|
+
(function (EParameterType) {
|
22
|
+
EParameterType[EParameterType["BYTE"] = 5120] = "BYTE";
|
23
|
+
EParameterType[EParameterType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
24
|
+
EParameterType[EParameterType["SHORT"] = 5122] = "SHORT";
|
25
|
+
EParameterType[EParameterType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
26
|
+
EParameterType[EParameterType["INT"] = 5124] = "INT";
|
27
|
+
EParameterType[EParameterType["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
28
|
+
EParameterType[EParameterType["FLOAT"] = 5126] = "FLOAT";
|
29
|
+
EParameterType[EParameterType["FLOAT_VEC2"] = 35664] = "FLOAT_VEC2";
|
30
|
+
EParameterType[EParameterType["FLOAT_VEC3"] = 35665] = "FLOAT_VEC3";
|
31
|
+
EParameterType[EParameterType["FLOAT_VEC4"] = 35666] = "FLOAT_VEC4";
|
32
|
+
EParameterType[EParameterType["INT_VEC2"] = 35667] = "INT_VEC2";
|
33
|
+
EParameterType[EParameterType["INT_VEC3"] = 35668] = "INT_VEC3";
|
34
|
+
EParameterType[EParameterType["INT_VEC4"] = 35669] = "INT_VEC4";
|
35
|
+
EParameterType[EParameterType["BOOL"] = 35670] = "BOOL";
|
36
|
+
EParameterType[EParameterType["BOOL_VEC2"] = 35671] = "BOOL_VEC2";
|
37
|
+
EParameterType[EParameterType["BOOL_VEC3"] = 35672] = "BOOL_VEC3";
|
38
|
+
EParameterType[EParameterType["BOOL_VEC4"] = 35673] = "BOOL_VEC4";
|
39
|
+
EParameterType[EParameterType["FLOAT_MAT2"] = 35674] = "FLOAT_MAT2";
|
40
|
+
EParameterType[EParameterType["FLOAT_MAT3"] = 35675] = "FLOAT_MAT3";
|
41
|
+
EParameterType[EParameterType["FLOAT_MAT4"] = 35676] = "FLOAT_MAT4";
|
42
|
+
EParameterType[EParameterType["SAMPLER_2D"] = 35678] = "SAMPLER_2D";
|
43
|
+
})(EParameterType || (EParameterType = {}));
|
44
|
+
/** @hidden */
|
45
|
+
export var ETextureWrapMode;
|
46
|
+
(function (ETextureWrapMode) {
|
47
|
+
ETextureWrapMode[ETextureWrapMode["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
|
48
|
+
ETextureWrapMode[ETextureWrapMode["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
49
|
+
ETextureWrapMode[ETextureWrapMode["REPEAT"] = 10497] = "REPEAT";
|
50
|
+
})(ETextureWrapMode || (ETextureWrapMode = {}));
|
51
|
+
/** @hidden */
|
52
|
+
export var ETextureFilterType;
|
53
|
+
(function (ETextureFilterType) {
|
54
|
+
ETextureFilterType[ETextureFilterType["NEAREST"] = 9728] = "NEAREST";
|
55
|
+
ETextureFilterType[ETextureFilterType["LINEAR"] = 9728] = "LINEAR";
|
56
|
+
ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
|
57
|
+
ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
|
58
|
+
ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
|
59
|
+
ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
|
60
|
+
})(ETextureFilterType || (ETextureFilterType = {}));
|
61
|
+
/** @hidden */
|
62
|
+
export var ETextureFormat;
|
63
|
+
(function (ETextureFormat) {
|
64
|
+
ETextureFormat[ETextureFormat["ALPHA"] = 6406] = "ALPHA";
|
65
|
+
ETextureFormat[ETextureFormat["RGB"] = 6407] = "RGB";
|
66
|
+
ETextureFormat[ETextureFormat["RGBA"] = 6408] = "RGBA";
|
67
|
+
ETextureFormat[ETextureFormat["LUMINANCE"] = 6409] = "LUMINANCE";
|
68
|
+
ETextureFormat[ETextureFormat["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
69
|
+
})(ETextureFormat || (ETextureFormat = {}));
|
70
|
+
/** @hidden */
|
71
|
+
export var ECullingType;
|
72
|
+
(function (ECullingType) {
|
73
|
+
ECullingType[ECullingType["FRONT"] = 1028] = "FRONT";
|
74
|
+
ECullingType[ECullingType["BACK"] = 1029] = "BACK";
|
75
|
+
ECullingType[ECullingType["FRONT_AND_BACK"] = 1032] = "FRONT_AND_BACK";
|
76
|
+
})(ECullingType || (ECullingType = {}));
|
77
|
+
/** @hidden */
|
78
|
+
export var EBlendingFunction;
|
79
|
+
(function (EBlendingFunction) {
|
80
|
+
EBlendingFunction[EBlendingFunction["ZERO"] = 0] = "ZERO";
|
81
|
+
EBlendingFunction[EBlendingFunction["ONE"] = 1] = "ONE";
|
82
|
+
EBlendingFunction[EBlendingFunction["SRC_COLOR"] = 768] = "SRC_COLOR";
|
83
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_COLOR"] = 769] = "ONE_MINUS_SRC_COLOR";
|
84
|
+
EBlendingFunction[EBlendingFunction["DST_COLOR"] = 774] = "DST_COLOR";
|
85
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_COLOR"] = 775] = "ONE_MINUS_DST_COLOR";
|
86
|
+
EBlendingFunction[EBlendingFunction["SRC_ALPHA"] = 770] = "SRC_ALPHA";
|
87
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_ALPHA"] = 771] = "ONE_MINUS_SRC_ALPHA";
|
88
|
+
EBlendingFunction[EBlendingFunction["DST_ALPHA"] = 772] = "DST_ALPHA";
|
89
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_ALPHA"] = 773] = "ONE_MINUS_DST_ALPHA";
|
90
|
+
EBlendingFunction[EBlendingFunction["CONSTANT_COLOR"] = 32769] = "CONSTANT_COLOR";
|
91
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_COLOR"] = 32770] = "ONE_MINUS_CONSTANT_COLOR";
|
92
|
+
EBlendingFunction[EBlendingFunction["CONSTANT_ALPHA"] = 32771] = "CONSTANT_ALPHA";
|
93
|
+
EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_ALPHA"] = 32772] = "ONE_MINUS_CONSTANT_ALPHA";
|
94
|
+
EBlendingFunction[EBlendingFunction["SRC_ALPHA_SATURATE"] = 776] = "SRC_ALPHA_SATURATE";
|
95
|
+
})(EBlendingFunction || (EBlendingFunction = {}));
|
96
96
|
//# sourceMappingURL=glTFLoaderInterfaces.js.map
|
@@ -1,62 +1,62 @@
|
|
1
|
-
import { IGLTFTechniqueParameter, IGLTFAccessor, ETextureFilterType, IGLTFRuntime, IGLTFBufferView, EComponentType } from "./glTFLoaderInterfaces";
|
2
|
-
import { Effect } from "@babylonjs/core/Materials/effect.js";
|
3
|
-
import { ShaderMaterial } from "@babylonjs/core/Materials/shaderMaterial.js";
|
4
|
-
import { Node } from "@babylonjs/core/node.js";
|
5
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
6
|
-
/**
|
7
|
-
* Utils functions for GLTF
|
8
|
-
* @hidden
|
9
|
-
*/
|
10
|
-
export declare class GLTFUtils {
|
11
|
-
/**
|
12
|
-
* Sets the given "parameter" matrix
|
13
|
-
* @param scene the Scene object
|
14
|
-
* @param source the source node where to pick the matrix
|
15
|
-
* @param parameter the GLTF technique parameter
|
16
|
-
* @param uniformName the name of the shader's uniform
|
17
|
-
* @param shaderMaterial the shader material
|
18
|
-
*/
|
19
|
-
static SetMatrix(scene: Scene, source: Node, parameter: IGLTFTechniqueParameter, uniformName: string, shaderMaterial: ShaderMaterial | Effect): void;
|
20
|
-
/**
|
21
|
-
* Sets the given "parameter" matrix
|
22
|
-
* @param shaderMaterial the shader material
|
23
|
-
* @param uniform the name of the shader's uniform
|
24
|
-
* @param value the value of the uniform
|
25
|
-
* @param type the uniform's type (EParameterType FLOAT, VEC2, VEC3 or VEC4)
|
26
|
-
*/
|
27
|
-
static SetUniform(shaderMaterial: ShaderMaterial | Effect, uniform: string, value: any, type: number): boolean;
|
28
|
-
/**
|
29
|
-
* Returns the wrap mode of the texture
|
30
|
-
* @param mode the mode value
|
31
|
-
*/
|
32
|
-
static GetWrapMode(mode: number): number;
|
33
|
-
/**
|
34
|
-
* Returns the byte stride giving an accessor
|
35
|
-
* @param accessor the GLTF accessor objet
|
36
|
-
*/
|
37
|
-
static GetByteStrideFromType(accessor: IGLTFAccessor): number;
|
38
|
-
/**
|
39
|
-
* Returns the texture filter mode giving a mode value
|
40
|
-
* @param mode the filter mode value
|
41
|
-
*/
|
42
|
-
static GetTextureFilterMode(mode: number): ETextureFilterType;
|
43
|
-
static GetBufferFromBufferView(gltfRuntime: IGLTFRuntime, bufferView: IGLTFBufferView, byteOffset: number, byteLength: number, componentType: EComponentType): ArrayBufferView;
|
44
|
-
/**
|
45
|
-
* Returns a buffer from its accessor
|
46
|
-
* @param gltfRuntime the GLTF runtime
|
47
|
-
* @param accessor the GLTF accessor
|
48
|
-
*/
|
49
|
-
static GetBufferFromAccessor(gltfRuntime: IGLTFRuntime, accessor: IGLTFAccessor): any;
|
50
|
-
/**
|
51
|
-
* Decodes a buffer view into a string
|
52
|
-
* @param view the buffer view
|
53
|
-
*/
|
54
|
-
static DecodeBufferToText(view: ArrayBufferView): string;
|
55
|
-
/**
|
56
|
-
* Returns the default material of gltf. Related to
|
57
|
-
* https://github.com/KhronosGroup/glTF/tree/master/specification/1.0#appendix-a-default-material
|
58
|
-
* @param scene the Babylon.js scene
|
59
|
-
*/
|
60
|
-
static GetDefaultMaterial(scene: Scene): ShaderMaterial;
|
61
|
-
private static _DefaultMaterial;
|
62
|
-
}
|
1
|
+
import { IGLTFTechniqueParameter, IGLTFAccessor, ETextureFilterType, IGLTFRuntime, IGLTFBufferView, EComponentType } from "./glTFLoaderInterfaces";
|
2
|
+
import { Effect } from "@babylonjs/core/Materials/effect.js";
|
3
|
+
import { ShaderMaterial } from "@babylonjs/core/Materials/shaderMaterial.js";
|
4
|
+
import { Node } from "@babylonjs/core/node.js";
|
5
|
+
import { Scene } from "@babylonjs/core/scene.js";
|
6
|
+
/**
|
7
|
+
* Utils functions for GLTF
|
8
|
+
* @hidden
|
9
|
+
*/
|
10
|
+
export declare class GLTFUtils {
|
11
|
+
/**
|
12
|
+
* Sets the given "parameter" matrix
|
13
|
+
* @param scene the Scene object
|
14
|
+
* @param source the source node where to pick the matrix
|
15
|
+
* @param parameter the GLTF technique parameter
|
16
|
+
* @param uniformName the name of the shader's uniform
|
17
|
+
* @param shaderMaterial the shader material
|
18
|
+
*/
|
19
|
+
static SetMatrix(scene: Scene, source: Node, parameter: IGLTFTechniqueParameter, uniformName: string, shaderMaterial: ShaderMaterial | Effect): void;
|
20
|
+
/**
|
21
|
+
* Sets the given "parameter" matrix
|
22
|
+
* @param shaderMaterial the shader material
|
23
|
+
* @param uniform the name of the shader's uniform
|
24
|
+
* @param value the value of the uniform
|
25
|
+
* @param type the uniform's type (EParameterType FLOAT, VEC2, VEC3 or VEC4)
|
26
|
+
*/
|
27
|
+
static SetUniform(shaderMaterial: ShaderMaterial | Effect, uniform: string, value: any, type: number): boolean;
|
28
|
+
/**
|
29
|
+
* Returns the wrap mode of the texture
|
30
|
+
* @param mode the mode value
|
31
|
+
*/
|
32
|
+
static GetWrapMode(mode: number): number;
|
33
|
+
/**
|
34
|
+
* Returns the byte stride giving an accessor
|
35
|
+
* @param accessor the GLTF accessor objet
|
36
|
+
*/
|
37
|
+
static GetByteStrideFromType(accessor: IGLTFAccessor): number;
|
38
|
+
/**
|
39
|
+
* Returns the texture filter mode giving a mode value
|
40
|
+
* @param mode the filter mode value
|
41
|
+
*/
|
42
|
+
static GetTextureFilterMode(mode: number): ETextureFilterType;
|
43
|
+
static GetBufferFromBufferView(gltfRuntime: IGLTFRuntime, bufferView: IGLTFBufferView, byteOffset: number, byteLength: number, componentType: EComponentType): ArrayBufferView;
|
44
|
+
/**
|
45
|
+
* Returns a buffer from its accessor
|
46
|
+
* @param gltfRuntime the GLTF runtime
|
47
|
+
* @param accessor the GLTF accessor
|
48
|
+
*/
|
49
|
+
static GetBufferFromAccessor(gltfRuntime: IGLTFRuntime, accessor: IGLTFAccessor): any;
|
50
|
+
/**
|
51
|
+
* Decodes a buffer view into a string
|
52
|
+
* @param view the buffer view
|
53
|
+
*/
|
54
|
+
static DecodeBufferToText(view: ArrayBufferView): string;
|
55
|
+
/**
|
56
|
+
* Returns the default material of gltf. Related to
|
57
|
+
* https://github.com/KhronosGroup/glTF/tree/master/specification/1.0#appendix-a-default-material
|
58
|
+
* @param scene the Babylon.js scene
|
59
|
+
*/
|
60
|
+
static GetDefaultMaterial(scene: Scene): ShaderMaterial;
|
61
|
+
private static _DefaultMaterial;
|
62
|
+
}
|