forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogram.schema.json
30 lines (30 loc) · 1.19 KB
/
program.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
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "program",
"type" : "object",
"description" : "A shader program. WebGL: see attachShader(), bindAttribLocation(), createProgram(), deleteProgram(), getProgramParameter(), getProgramInfoLog(), linkProgram(), useProgram(), and validateProgram().",
"extends" : { "$ref" : "glTFChildOfRootProperty.schema.json" },
"properties": {
"attributes" : {
"type" : "array",
"description" : "Names of GLSL vertex shader attributes. WebGL: see bindAttribLocation().",
"items" : {
"type" : "string",
"minLength" : "1",
"maxLength" : "256"
},
"default" : []
},
"fragmentShader" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The id (JSON property name) of the fragment shader.",
"required" : true
},
"vertexShader" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The id (JSON property name) of the vertex shader.",
"required" : true
}
},
"additionalProperties" : false
}