-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathmaterial.KHR_materials_anisotropy.schema.json
30 lines (30 loc) · 1.57 KB
/
material.KHR_materials_anisotropy.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-04/schema",
"title": "KHR_materials_anisotropy glTF Material Extension",
"type": "object",
"description": "glTF extension that defines anisotropy.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"anisotropyStrength": {
"type": "number",
"description": "The anisotropy strength.",
"default": 0.0,
"minimum": 0.0,
"maximum": 1.0,
"gltf_detailedDescription": "The anisotropy strength. When the anisotropy texture is present, this value is multiplied by the texture's blue channel."
},
"anisotropyRotation": {
"type": "number",
"description": "The rotation of the anisotropy.",
"default": 0.0,
"gltf_detailedDescription": "The rotation of the anisotropy in tangent, bitangent space, measured in radians counter-clockwise from the tangent. When the anisotropy texture is present, this value provides additional rotation to the vectors in the texture."
},
"anisotropyTexture": {
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"description": "The anisotropy texture.",
"gltf_detailedDescription": "The anisotropy texture. Red and green channels represent the anisotropy direction in $[-1, 1]$ tangent, bitangent space, to be rotated by the anisotropy rotation. The blue channel contains strength as $[0, 1]$ to be multiplied by the anisotropy strength."
},
"extensions": { },
"extras": { }
}
}