forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglTF.KHR_materials_pbrSpecularGlossiness.schema.json
55 lines (55 loc) · 2.97 KB
/
glTF.KHR_materials_pbrSpecularGlossiness.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "KHR_materials_pbrSpecularGlossiness glTF extension",
"type": "object",
"description": "glTF extension that defines the specular-glossiness material model from Physically-Based Rendering (PBR) methodology.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"diffuseFactor": {
"type": "array",
"items": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0
},
"description": "The reflected diffuse factor of the material.",
"default": [ 1.0, 1.0, 1.0, 1.0 ],
"minItems": 4,
"maxItems": 4,
"gltf_detailedDescription": "The RGBA components of the reflected diffuse color of the material. Metals have a diffuse value of `[0.0, 0.0, 0.0]`. The fourth component (A) is the alpha coverage of the material. The `alphaMode` property specifies how alpha is interpreted. The values are linear."
},
"diffuseTexture": {
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"description": "The diffuse texture.",
"gltf_detailedDescription": "The diffuse texture. This texture contains RGB components of the reflected diffuse color of the material encoded with the sRGB transfer function. If the fourth component (A) is present, it represents the linear alpha coverage of the material. Otherwise, an alpha of 1.0 is assumed. The `alphaMode` property specifies how alpha is interpreted. The stored texels must not be premultiplied."
},
"specularFactor": {
"type": "array",
"items": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0
},
"description": "The specular RGB color of the material.",
"default": [ 1.0, 1.0, 1.0 ],
"minItems": 3,
"maxItems": 3,
"gltf_detailedDescription": "The specular RGB color of the material. This value is linear."
},
"glossinessFactor": {
"type": "number",
"description": "The glossiness or smoothness of the material.",
"default": 1.0,
"minimum": 0.0,
"maximum": 1.0,
"gltf_detailedDescription": "The glossiness or smoothness of the material. A value of 1.0 means the material has full glossiness or is perfectly smooth. A value of 0.0 means the material has no glossiness or is completely rough. This value is linear."
},
"specularGlossinessTexture": {
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"description": "The specular-glossiness texture.",
"gltf_detailedDescription": "The specular-glossiness texture is an RGBA texture, containing the specular color (RGB) encoded with the sRGB transfer function and the linear glossiness value (A)."
},
"extensions": { },
"extras": { }
}
}