forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
texture.schema.json
57 lines (57 loc) · 2.96 KB
/
texture.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "texture",
"type" : "object",
"description" : "A texture and its sampler.",
"extends" : { "$ref" : "glTFChildOfRootProperty.schema.json" },
"properties" : {
"format": {
"type" : "integer",
"description" : "The texture's format.",
"enum" : [6406, 6407, 6408, 6409, 6410],
"gltf_enumNames" : ["ALPHA", "RGB", "RGBA", "LUMINANCE", "LUMINANCE_ALPHA"],
"default" : 6408,
"gltf_detailedDescription" : "The texture's format. Valid values correspond to WebGL enums: `6406` (ALPHA), `6407` (RGB), `6408` (RGBA), `6409` (LUMINANCE), and `6410` (LUMINANCE_ALPHA).",
"gltf_webgl" : "`texImage2D()` format parameter"
},
"internalFormat": {
"type" : "integer",
"description" : "The texture's internal format.",
"enum" : [6406, 6407, 6408, 6409, 6410],
"gltf_enumNames" : ["ALPHA", "RGB", "RGBA", "LUMINANCE", "LUMINANCE_ALPHA"],
"default" : 6408,
"gltf_detailedDescription" : "The texture's internal format. Valid values correspond to WebGL enums: `6406` (ALPHA), `6407` (RGB), `6408` (RGBA), `6409` (LUMINANCE), and `6410` (LUMINANCE_ALPHA). Defaults to same value as format.",
"gltf_webgl" : "`texImage2D()` internalFormat parameter"
},
"sampler" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of the sampler used by this texture.",
"required" : true
},
"source" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of the image used by this texture.",
"required" : true
},
"target": {
"type" : "integer",
"description" : "The target that the WebGL texture should be bound to.",
"enum" : [3553],
"gltf_enumNames" : ["TEXTURE_2D"],
"default" : 3553,
"gltf_detailedDescription" : "The target that the WebGL texture should be bound to. Valid values correspond to WebGL enums: `3553` (TEXTURE_2D).",
"gltf_webgl" : "`bindTexture()`"
},
"type": {
"type" : "integer",
"description" : "Texel datatype.",
"enum" : [5121, 33635, 32819, 32820],
"gltf_enumNames" : ["UNSIGNED_BYTE", "UNSIGNED_SHORT_5_6_5", "UNSIGNED_SHORT_4_4_4_4", "UNSIGNED_SHORT_5_5_5_1"],
"default" : 5121,
"gltf_detailedDescription" : "Texel datatype. Valid values correspond to WebGL enums: `5121` (UNSIGNED_BYTE), `33635` (UNSIGNED_SHORT_5_6_5), `32819` (UNSIGNED_SHORT_4_4_4_4), and `32820` (UNSIGNED_SHORT_5_5_5_1).",
"gltf_webgl" : "`texImage2D()` type parameter"
}
},
"additionalProperties" : false,
"gltf_webgl" : "`createTexture()`, `deleteTexture()`, `bindTexture()`, `texImage2D()`, and `texParameterf()`"
}