forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtechniquePassStates.schema.json
156 lines (156 loc) · 7 KB
/
techniquePassStates.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "states",
"type" : "object",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"enable" : {
"type" : "array",
"description" : "WebGL states to enable. Valid values are (3042) BLEND, (2884) CULL_FACE, (2929) DEPTH_TEST, (32823) POLYGON_OFFSET_FILL, (32926) SAMPLE_ALPHA_TO_COVERAGE, and (3089) SCISSOR_TEST.",
"items" : {
"type" : "integer",
"enum" : [3042, 2884, 2929, 32823, 32926, 3089]
},
"uniqueItems" : true,
"default" : []
},
"functions" : {
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "states functions",
"type" : "object",
"description" : "Arguments for state functions.",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"blendColor" : {
"type" : "array",
"description" : "Floating-point values passed to blendColor(). [red, green, blue, alpha]",
"items" : {
"type" : "number"
},
"minItems" : 4,
"maxItems" : 4,
"default" : [0.0, 0.0, 0.0, 0.0]
},
"blendEquationSeparate" : {
"type" : "array",
"description" : "Integer values passed to blendEquationSeparate(). [rgb, alpha]. Valid values are (32774) FUNC_ADD, (32778) FUNC_SUBTRACT, and (32779) FUNC_REVERSE_SUBTRACT.",
"items" : {
"type" : "integer",
"enum" : [32774, 32778, 32779]
},
"minItems" : 2,
"maxItems" : 2,
"default" : [32774, 32774]
},
"blendFuncSeparate" : {
"type" : "array",
"description" : "Integer values passed to blendFuncSeparate(). [srcRGB, srcAlpha, dstRGB, dstAlpha]. Valid values are (0) ZERO, (1) ONE, (768) SRC_COLOR, (769) ONE_MINUS_SRC_COLOR, (774) DST_COLOR, (775) ONE_MINUS_DST_COLOR, (770) SRC_ALPHA, (771) ONE_MINUS_SRC_ALPHA, (772) DST_ALPHA, (773) ONE_MINUS_DST_ALPHA, (32769) CONSTANT_COLOR, (32770) ONE_MINUS_CONSTANT_COLOR, (32771) CONSTANT_ALPHA, (32772) ONE_MINUS_CONSTANT_ALPHA, and (776) SRC_ALPHA_SATURATE.",
"items" : {
"type" : "integer",
"enum" : [0, 1, 768, 769, 774, 775, 770, 771, 772, 773, 32769, 32770, 32771, 32772, 776]
},
"minItems" : 4,
"maxItems" : 4,
"default" : [1, 1, 0, 0]
},
"colorMask" : {
"type" : "array",
"description" : "Boolean values passed to colorMask(). [red, green, blue, alpha].",
"items" : {
"type" : "boolean"
},
"minItems" : 4,
"maxItems" : 4,
"default" : [true, true, true, true]
},
"cullFace" : {
"type" : "array",
"description" : "Integer value passed to cullFace(). Valid values are (1028) FRONT, (1029) BACK, and (1032) FRONT_AND_BACK.",
"items" : {
"type" : "integer",
"enum" : [1028, 1029, 1032]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [1029]
},
"depthFunc" : {
"type" : "array",
"description" : "Integer values passed to depthFunc(). Valid values are (512) NEVER, (513) LESS, (515) LEQUAL, (514) EQUAL, (516) GREATER, (517) NOTEQUAL, (518) GEQUAL, and (519) ALWAYS.",
"items" : {
"type" : "integer",
"enum" : [512, 513, 515, 514, 516, 517, 518, 519]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [513]
},
"depthMask" : {
"type" : "array",
"description" : "Boolean value passed to depthMask().",
"items" : {
"type" : "boolean"
},
"minItems" : 1,
"maxItems" : 1,
"default" : [true]
},
"depthRange" : {
"type" : "array",
"description" : "Floating-point values passed to depthRange(). [zNear, zFar]",
"items" : {
"type" : "number"
},
"minItems" : 2,
"maxItems" : 2,
"default" : [0.0, 1.0]
},
"frontFace" : {
"type" : "array",
"description" : "Integer value passed to frontFace(). Valid values are (2304) CW and (2305) CCW.",
"items" : {
"type" : "integer",
"enum" : [2304, 2305]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [2305]
},
"lineWidth" : {
"type" : "array",
"description" : "Floating-point value passed to lineWidth().",
"items" : {
"type" : "number",
"minimum" : 0.0,
"exclusiveMinimum" : true
},
"minItems" : 1,
"maxItems" : 1,
"default" : [1.0]
},
"polygonOffset" : {
"type" : "array",
"description" : "Floating-point value passed to polygonOffset(). [factor, units]",
"items" : {
"type" : "number"
},
"minItems" : 2,
"maxItems" : 2,
"default" : [0.0, 0.0]
},
"scissor" : {
"type" : "array",
"description" : "Floating-point value passed to scissor(). [x, y, width, height]. The defaults is the dimensions of the canvas when the WebGL context is created. TODO: width and height must be > 0.0, items should be an array below.",
"items" : {
"type" : "number"
},
"minItems" : 4,
"maxItems" : 4,
"default" : [0.0, 0.0, 0.0, 0.0]
}
},
"additionalProperties" : false
}
},
"additionalProperties" : false
}