forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshader.schema.json
23 lines (22 loc) · 975 Bytes
/
shader.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "shader",
"type" : "object",
"description" : "A vertex or fragment shader. WebGL: see createShader(), deleteShader(), shaderSource(), compileShader(), getShaderParameter(), and getShaderInfoLog().",
"extends" : { "$ref" : "glTFChildOfRootProperty.schema.json" },
"properties" : {
"uri" : {
"type" : "string",
"description" : "The uri of the GLSL source. Relative paths are relative to the .json file. Instead of referencing an external file, the uri can also be a data-uri.",
"format" : "uri",
"required" : true
},
"type" : {
"type" : "integer",
"description" : "Specifies the shader stage. Allowed values are 35632 (FRAGMENT_SHADER) and 35633 (VERTEX_SHADER).",
"enum" : [35632, 35633],
"required" : true
}
},
"additionalProperties" : false
}