forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeshPrimitive.schema.json
34 lines (34 loc) · 1.32 KB
/
meshPrimitive.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-03/schema",
"title" : "mesh/primitive",
"type" : "object",
"description" : "Geometry and material. WebGL: see drawElements() and drawArrays().",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"attributes" : {
"properties" : {
},
"additionalProperties" : {
"$ref" : "meshPrimitiveAttribute.schema.json"
},
"default" : {}
},
"indices" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The id (JSON property name) of the accessor that contains the indices.",
"required" : true
},
"material" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The id (JSON property name) of the material to apply to this primitive when rendering.",
"required" : true
},
"primitive" : {
"type" : "integer",
"description" : "The type of primitives to render. Allowed values are 0 (POINTS), 1 (LINES), 2 (LINE_LOOP), 3 (LINE_STRIP), 4 (TRIANGLES), 5 (TRIANGLE_STRIP), and 6 (TRIANGLE_FAN).",
"enum" : [0, 1, 2, 3, 4, 5, 6],
"default" : 4
}
},
"additionalProperties" : false
}