/
sampler.schema.json
122 lines (122 loc) · 3.87 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
112
113
114
115
116
117
118
119
120
121
122
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "sampler.schema.json",
"title": "Sampler",
"type": "object",
"description": "Texture sampler properties for filtering and wrapping modes.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
"properties": {
"magFilter": {
"description": "Magnification filter.",
"gltf_webgl": "`samplerParameteri()` with pname equal to TEXTURE_MAG_FILTER",
"anyOf": [
{
"const": 9728,
"description": "NEAREST",
"type": "integer"
},
{
"const": 9729,
"description": "LINEAR",
"type": "integer"
},
{
"type": "integer"
}
]
},
"minFilter": {
"description": "Minification filter.",
"gltf_webgl": "`samplerParameteri()` with pname equal to TEXTURE_MIN_FILTER",
"anyOf": [
{
"const": 9728,
"description": "NEAREST",
"type": "integer"
},
{
"const": 9729,
"description": "LINEAR",
"type": "integer"
},
{
"const": 9984,
"description": "NEAREST_MIPMAP_NEAREST",
"type": "integer"
},
{
"const": 9985,
"description": "LINEAR_MIPMAP_NEAREST",
"type": "integer"
},
{
"const": 9986,
"description": "NEAREST_MIPMAP_LINEAR",
"type": "integer"
},
{
"const": 9987,
"description": "LINEAR_MIPMAP_LINEAR",
"type": "integer"
},
{
"type": "integer"
}
]
},
"wrapS": {
"description": "S (U) wrapping mode.",
"default": 10497,
"gltf_detailedDescription": "S (U) wrapping mode. All valid values correspond to WebGL enums.",
"gltf_webgl": "`samplerParameteri()` with pname equal to TEXTURE_WRAP_S",
"anyOf": [
{
"const": 33071,
"description": "CLAMP_TO_EDGE",
"type": "integer"
},
{
"const": 33648,
"description": "MIRRORED_REPEAT",
"type": "integer"
},
{
"const": 10497,
"description": "REPEAT",
"type": "integer"
},
{
"type": "integer"
}
]
},
"wrapT": {
"description": "T (V) wrapping mode.",
"default": 10497,
"gltf_webgl": "`samplerParameteri()` with pname equal to TEXTURE_WRAP_T",
"anyOf": [
{
"const": 33071,
"description": "CLAMP_TO_EDGE",
"type": "integer"
},
{
"const": 33648,
"description": "MIRRORED_REPEAT",
"type": "integer"
},
{
"const": 10497,
"description": "REPEAT",
"type": "integer"
},
{
"type": "integer"
}
]
},
"name": { },
"extensions": { },
"extras": { }
}
}