forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
technique.states.functions.schema.json
162 lines (162 loc) · 6.56 KB
/
technique.states.functions.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
157
158
159
160
161
162
{
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "functions",
"type" : "object",
"description" : "Arguments for fixed-function rendering state functions other than `enable()`/`disable()`.",
"allOf" : [ { "$ref" : "glTFProperty.schema.json" } ],
"properties" : {
"extensions" : {},
"extras" : {},
"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],
"gltf_webgl" : "`blendColor()`"
},
"blendEquationSeparate" : {
"type" : "array",
"description" : "Integer values passed to `blendEquationSeparate()`.",
"items" : {
"type" : "integer",
"enum" : [32774, 32778, 32779],
"gltf_enumNames" : ["FUNC_ADD", "FUNC_SUBTRACT", "FUNC_REVERSE_SUBTRACT"]
},
"minItems" : 2,
"maxItems" : 2,
"default" : [32774, 32774],
"gltf_detailedDescription" : "Integer values passed to `blendEquationSeparate()`. [rgb, alpha]. All valid values correspond to WebGL enums.",
"gltf_webgl" : "`blendEquationSeparate()`"
},
"blendFuncSeparate" : {
"type" : "array",
"description" : "Integer values passed to `blendFuncSeparate()`.",
"items" : {
"type" : "integer",
"enum" : [0, 1, 768, 769, 774, 775, 770, 771, 772, 773, 32769, 32770, 32771, 32772, 776],
"gltf_enumNames" : ["ZERO", "ONE", "SRC_COLOR", "ONE_MINUS_SRC_COLOR", "DST_COLOR", "ONE_MINUS_DST_COLOR", "SRC_ALPHA", "ONE_MINUS_SRC_ALPHA", "DST_ALPHA", "ONE_MINUS_DST_ALPHA", "CONSTANT_COLOR", "ONE_MINUS_CONSTANT_COLOR", "CONSTANT_ALPHA", "ONE_MINUS_CONSTANT_ALPHA", "SRC_ALPHA_SATURATE"]
},
"minItems" : 4,
"maxItems" : 4,
"default" : [1, 0, 1, 0],
"gltf_detailedDescription" : "Integer values passed to `blendFuncSeparate()`. [srcRGB, dstRGB, srcAlpha, dstAlpha]. All valid values correspond to WebGL enums.",
"gltf_webgl" : "`blendFuncSeparate()`"
},
"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],
"gltf_webgl" : "`colorMask()`"
},
"cullFace" : {
"type" : "array",
"description" : "Integer value passed to `cullFace()`.",
"items" : {
"type" : "integer",
"enum" : [1028, 1029, 1032],
"gltf_enumNames" : ["FRONT", "BACK", "FRONT_AND_BACK"]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [1029],
"gltf_detailedDescription" : "Integer value passed to `cullFace()`. All valid values correspond to WebGL enums.",
"gltf_webgl" : "`cullFace()`"
},
"depthFunc" : {
"type" : "array",
"description" : "Integer values passed to `depthFunc()`.",
"items" : {
"type" : "integer",
"enum" : [512, 513, 515, 514, 516, 517, 518, 519],
"gltf_enumNames" : ["NEVER", "LESS", "LEQUAL", "EQUAL", "GREATER", "NOTEQUAL", "GEQUAL", "ALWAYS"]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [513],
"gltf_detailedDescription" : "Integer values passed to `depthFunc()`. All valid values correspond to WebGL enums.",
"gltf_webgl" : "`depthFunc()`"
},
"depthMask" : {
"type" : "array",
"description" : "Boolean value passed to `depthMask()`.",
"items" : {
"type" : "boolean"
},
"minItems" : 1,
"maxItems" : 1,
"default" : [true],
"gltf_webgl" : "`depthMask()`"
},
"depthRange" : {
"type" : "array",
"description" : "Floating-point values passed to `depthRange()`. [zNear, zFar]",
"items" : {
"type" : "number"
},
"minItems" : 2,
"maxItems" : 2,
"default" : [0.0, 1.0],
"gltf_webgl" : "`depthRange()`"
},
"frontFace" : {
"type" : "array",
"description" : "Integer value passed to `frontFace()`.",
"items" : {
"type" : "integer",
"enum" : [2304, 2305],
"gltf_enumNames" : ["CW", "CCW"]
},
"minItems" : 1,
"maxItems" : 1,
"default" : [2305],
"gltf_detailedDescription" : "Integer value passed to `frontFace()`. All valid values correspond to WebGL enums.",
"gltf_webgl" : "`frontFace()`"
},
"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],
"gltf_webgl" : "`lineWidth()`"
},
"polygonOffset" : {
"type" : "array",
"description" : "Floating-point value passed to `polygonOffset()`. [factor, units]",
"items" : {
"type" : "number"
},
"minItems" : 2,
"maxItems" : 2,
"default" : [0.0, 0.0],
"gltf_webgl" : "`polygonOffset()`"
},
"scissor" : {
"type" : "array",
"description" : "Floating-point value passed to `scissor()`. [x, y, width, height].",
"items" : {
"type" : "number"
},
"minItems" : 4,
"maxItems" : 4,
"default" : [0.0, 0.0, 0.0, 0.0],
"gltf_detailedDescription" : "Floating-point value passed to `scissor()`. [x, y, width, height]. The default is the dimensions of the canvas when the WebGL context is created. width and height must be greater than zero.",
"gltf_webgl" : "`scissor()`"
}
},
"additionalProperties" : false
}