forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sampler.schema.json
111 lines (111 loc) · 3.71 KB
/
sampler.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Sampler",
"type": "object",
"description": "Texture sampler properties for filtering and wrapping modes.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
"properties": {
"magFilter": {
"description": "Magnification filter.",
"gltf_detailedDescription": "Magnification filter. Valid values correspond to WebGL enums: `9728` (NEAREST) and `9729` (LINEAR).",
"gltf_webgl": "`texParameterf()` with pname equal to TEXTURE_MAG_FILTER",
"anyOf": [
{
"enum": [ 9728 ],
"description": "NEAREST"
},
{
"enum": [ 9729 ],
"description": "LINEAR"
},
{
"type": "integer"
}
]
},
"minFilter": {
"description": "Minification filter.",
"gltf_detailedDescription": "Minification filter. All valid values correspond to WebGL enums.",
"gltf_webgl": "`texParameterf()` with pname equal to TEXTURE_MIN_FILTER",
"anyOf": [
{
"enum": [ 9728 ],
"description": "NEAREST"
},
{
"enum": [ 9729 ],
"description": "LINEAR"
},
{
"enum": [ 9984 ],
"description": "NEAREST_MIPMAP_NEAREST"
},
{
"enum": [ 9985 ],
"description": "LINEAR_MIPMAP_NEAREST"
},
{
"enum": [ 9986 ],
"description": "NEAREST_MIPMAP_LINEAR"
},
{
"enum": [ 9987 ],
"description": "LINEAR_MIPMAP_LINEAR"
},
{
"type": "integer"
}
]
},
"wrapS": {
"description": "s wrapping mode.",
"default": 10497,
"gltf_detailedDescription": "S (U) wrapping mode. All valid values correspond to WebGL enums.",
"gltf_webgl": "`texParameterf()` with pname equal to TEXTURE_WRAP_S",
"anyOf": [
{
"enum": [ 33071 ],
"description": "CLAMP_TO_EDGE"
},
{
"enum": [ 33648 ],
"description": "MIRRORED_REPEAT"
},
{
"enum": [ 10497 ],
"description": "REPEAT"
},
{
"type": "integer"
}
]
},
"wrapT": {
"description": "t wrapping mode.",
"default": 10497,
"gltf_detailedDescription": "T (V) wrapping mode. All valid values correspond to WebGL enums.",
"gltf_webgl": "`texParameterf()` with pname equal to TEXTURE_WRAP_T",
"anyOf": [
{
"enum": [ 33071 ],
"description": "CLAMP_TO_EDGE"
},
{
"enum": [ 33648 ],
"description": "MIRRORED_REPEAT"
},
{
"enum": [ 10497 ],
"description": "REPEAT"
},
{
"type": "integer"
}
]
},
"name": { },
"extensions": { },
"extras": { }
},
"gltf_webgl": "`texParameterf()`"
}