-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathprogram.schema.json
34 lines (34 loc) · 1.34 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
31
32
33
34
{
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "program",
"type" : "object",
"description" : "A shader program, including its vertex and fragment shader, and names of vertex shader attributes.",
"allOf" : [ { "$ref" : "glTFChildOfRootProperty.schema.json" } ],
"properties": {
"name" : {},
"extensions" : {},
"extras" : {},
"attributes" : {
"type" : "array",
"description" : "Names of GLSL vertex shader attributes.",
"items" : {
"type" : "string",
"minLength" : 1,
"maxLength" : 256
},
"default" : [],
"gltf_webgl" : "`bindAttribLocation()`"
},
"fragmentShader" : {
"allOf" : [ { "$ref" : "glTFid.schema.json" } ],
"description" : "The ID of the fragment shader."
},
"vertexShader" : {
"allOf" : [ { "$ref" : "glTFid.schema.json" } ],
"description" : "The ID of the vertex shader."
}
},
"additionalProperties" : false,
"required": ["fragmentShader", "vertexShader"],
"gltf_webgl" : "`attachShader()`, `bindAttribLocation()`, `createProgram()`, `deleteProgram()`, `getProgramParameter()`, `getProgramInfoLog()`, `linkProgram()`, `useProgram()`, and `validateProgram()`"
}