forked from AntonPalmqvist/physically-based-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema-materials.json
176 lines (176 loc) · 4.55 KB
/
schema-materials.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"$schema": "http://json-schema.org/schema",
"title": "Material",
"description": "PBR material using the Autodesk Standard Surface naming conventions: https://autodesk.github.io/standard-surface/",
"type": "array",
"items": {
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of the material.",
"type": "string",
"default": "Name"
},
"color": {
"description": "Albedo, or metal color, RGB triplet (vec3) in linear decimal format in rec709 primaries.",
"type": "array",
"items": {
"type": "number"
},
"default": [0.5, 0.5, 0.5],
"minItems": 3,
"maxItems": 3
},
"metalness": {
"type": "number",
"default": 0
},
"specularColor": {
"description": "Specular tint for metals (edge tint), calculated from n and k values.",
"type": "array",
"items": {
"type": "number"
},
"default": [1, 1, 1],
"minItems": 3,
"maxItems": 3
},
"roughness": {
"type": "number",
"default": 0.5
},
"ior": {
"type": "number",
"default": 1.5
},
"subsurfaceRadius": {
"description": "The approximate distance up to which light can scatter below the surface, also known as “mean free path” (MFP).",
"type": "array",
"items": {
"type": "number"
},
"default": [1, 1, 1],
"minItems": 3,
"maxItems": 3
},
"transmission": {
"description": "",
"type": "number",
"default": 0
},
"transmissionColor": {
"description": "",
"type": "array",
"items": {
"type": "number"
},
"default": [1, 1, 1],
"minItems": 3,
"maxItems": 3
},
"transmissionDispersion": {
"description": "Abbe number, describing how much the index of refraction varies across wavelengths. For glass and diamonds, this is typically in the range of 10 to 70, with lower numbers giving more dispersion.",
"type": "number",
"default": 0
},
"complexIor": {
"description": "Complex IOR values, n (refractive index), and k (extinction coefficient), for each color channel, in the following order: nR, kR, nG, kG, nB, kB. Calculated with a wavelength of 0.65 for red, 0.55 for green and 0.45 for blue.",
"type": "array",
"items": {
"type": "number"
},
"default": [0, 0, 0, 0, 0, 0],
"minItems": 6,
"maxItems": 6
},
"density": {
"description": "Density measured in kg/m3.",
"type": "number",
"default": 1000
},
"densityRange": {
"description": "The typical range of density.",
"type": "array",
"items": {
"type": "number"
},
"default": [1000, 1000],
"minItems": 2,
"maxItems": 2
},
"acousticAbsorption": {
"description": "Absorption coefficients at 125, 250, 500, 1000, 2000, and 4000 kHz.",
"type": "array",
"items": {
"type": "number"
},
"default": [0.5, 0.5, 0.5, 0.5, 0.5, 0.5],
"minItems": 6,
"maxItems": 6
},
"category": {
"type": "array",
"items": {
"enum": [
"Calibration",
"Crystal",
"Gas",
"Human",
"Liquid",
"Manmade",
"Metal",
"Organic",
"Plastic"
]
},
"minItems": 1,
"maxItems": 1
},
"group": {
"description": "Can be used to group similar materials together.",
"type": "string",
"default": "Group"
},
"description": {
"type": "string",
"maxLength": 500
},
"sources": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
"tags": {
"description": "Tags",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"reference": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
}
},
"required": [
"name",
"color",
"metalness",
"roughness",
"ior",
"density",
"category",
"description",
"sources"
]
}
}