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