-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaticMaterialDatabase.ts
More file actions
212 lines (211 loc) · 6.81 KB
/
Copy pathstaticMaterialDatabase.ts
File metadata and controls
212 lines (211 loc) · 6.81 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/**
* The static material database
*
* This database contains the material definitions for the different materials that can be applied to the models.
* This database is used to when no material in the dynamic material database is found.
*
* Material definitions can be created by visiting the [iJewel3d playground](https://playground.ijewel3d.com/).
* You can load a test model there and edit the materials (or assign new ones).
* Once you are content, you can export the material as a JSON by clicking on `Download pmat` (or `Download dmat` for gem stones) on the right side of the UI while the object is selected.
* If you store the material definition with the same name that the material of the geometry has, the new material definition will be assigned.
*/
export const staticMaterialDatabase: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any
} = {
'head.stone': {
'metadata': {
'version': 4.6,
'type': 'DiamondMaterial',
'generator': 'DiamondMaterial.toJSON'
},
'name': '4ab054b4-6fef-46d6-80c9-cf350e89e2a0',
'uuid': 'f3144d6f-7a0c-4219-9f7f-91e6cc580899',
'color': 3904722,
'envMapIntensity': 1,
'envMapIndex': 0,
'envMapRotationOffset': 0,
'dispersion': 0.0098,
'squashFactor': 0.98,
'geometryFactor': 0.5,
'gammaFactor': 1,
'absorptionFactor': 1.6,
'reflectivity': 0.5,
'refractiveIndex': 2.17,
'rayBounces': 5,
'diamondOrientedEnvMap': 0,
'boostFactors': {
'x': 1,
'y': 1,
'z': 1.2,
'isVector3': true
},
'transmission': 0,
'isDiamondMaterialParameters': true,
'type': 'DiamondMaterial',
'userData': {
'separateEnvMapIntensity': true,
'rootPath': 'https://playground.ijewel3d.com/assets/materials/gem/gem-sapphire-1.dmat',
'cloneId': '0_1',
'cloneCount': 0,
'uuid': 'f3144d6f-7a0c-4219-9f7f-91e6cc580899'
}
},
'shank.accentStones':
{
'metadata': {
'version': 4.6,
'type': 'DiamondMaterial',
'generator': 'DiamondMaterial.toJSON'
},
'name': '4ab054b4-6fef-46d6-80c9-cf350e89e2a0',
'uuid': 'a7d0ea13-217f-4d7d-afbf-e796fec08d94',
'color': 16777215,
'envMapIntensity': 1,
'envMapIndex': 0,
'envMapRotationOffset': 0,
'dispersion': 0.012,
'squashFactor': 0.98,
'geometryFactor': 0.5,
'gammaFactor': 1,
'absorptionFactor': 1,
'reflectivity': 0.5,
'refractiveIndex': 2.6,
'rayBounces': 5,
'diamondOrientedEnvMap': 0,
'boostFactors': {
'x': 1,
'y': 1,
'z': 1,
'isVector3': true
},
'transmission': 0,
'isDiamondMaterialParameters': true,
'type': 'DiamondMaterial',
'userData': {
'separateEnvMapIntensity': true,
'rootPath': 'https://playground.ijewel3d.com/assets/materials/gem/gem-diamond-white1.dmat',
'cloneId': '0_1',
'cloneCount': 0,
'uuid': 'a7d0ea13-217f-4d7d-afbf-e796fec08d94'
}
},
'head.metal': {
'metadata': {
'version': 4.6,
'type': 'Material',
'generator': 'Material.toJSON'
},
'uuid': '4cbfe0d0-631f-4c20-bae2-4ead8bfb4048',
'type': 'MeshStandardMaterial2',
'name': '4ab054b4-6fef-46d6-80c9-cf350e89e2a0',
'color': 12763843,
'roughness': 0,
'metalness': 1,
'sheen': 0,
'sheenColor': 0,
'sheenRoughness': 1,
'emissive': 0,
'specularIntensity': 1,
'specularColor': 16777215,
'clearcoat': 0,
'clearcoatRoughness': 0,
'iridescence': 0,
'iridescenceIOR': 1.3,
'iridescenceThicknessRange': [
100,
400
],
'anisotropy': 0,
'anisotropyRotation': 0,
'envMapIntensity': 1,
'reflectivity': 0.49999999999999983,
'transmission': 0,
'thickness': 0,
'attenuationDistance': 0,
'attenuationColor': 16777215,
'side': 2,
'depthFunc': 3,
'depthTest': true,
'depthWrite': true,
'colorWrite': true,
'stencilWrite': false,
'stencilWriteMask': 255,
'stencilFunc': 519,
'stencilRef': 0,
'stencilFuncMask': 255,
'stencilFail': 7680,
'stencilZFail': 7680,
'stencilZPass': 7680,
'fog': false,
'userData': {
'gltfExtensions': {},
'cloneId': '0_1_1',
'_6b1395aa-194b-4458-bd49-22ec4592cfc2_version': 1,
'cloneCount': 0,
'rootPath': 'https://playground.ijewel3d.com/assets/materials/metal/polished/metal-whitegold-polished.pmat',
'uuid': '4cbfe0d0-631f-4c20-bae2-4ead8bfb4048'
},
'textures': [],
'images': []
},
'shank.metal': {
'metadata': {
'version': 4.6,
'type': 'Material',
'generator': 'Material.toJSON'
},
'uuid': '4cbfe0d0-631f-4c20-bae2-4ead8bfb4048',
'type': 'MeshStandardMaterial2',
'name': '4ab054b4-6fef-46d6-80c9-cf350e89e2a0',
'color': 12763843,
'roughness': 0,
'metalness': 1,
'sheen': 0,
'sheenColor': 0,
'sheenRoughness': 1,
'emissive': 0,
'specularIntensity': 1,
'specularColor': 16777215,
'clearcoat': 0,
'clearcoatRoughness': 0,
'iridescence': 0,
'iridescenceIOR': 1.3,
'iridescenceThicknessRange': [
100,
400
],
'anisotropy': 0,
'anisotropyRotation': 0,
'envMapIntensity': 1,
'reflectivity': 0.49999999999999983,
'transmission': 0,
'thickness': 0,
'attenuationDistance': 0,
'attenuationColor': 16777215,
'side': 2,
'depthFunc': 3,
'depthTest': true,
'depthWrite': true,
'colorWrite': true,
'stencilWrite': false,
'stencilWriteMask': 255,
'stencilFunc': 519,
'stencilRef': 0,
'stencilFuncMask': 255,
'stencilFail': 7680,
'stencilZFail': 7680,
'stencilZPass': 7680,
'fog': false,
'userData': {
'gltfExtensions': {},
'cloneId': '0_1_1',
'_6b1395aa-194b-4458-bd49-22ec4592cfc2_version': 1,
'cloneCount': 0,
'rootPath': 'https://playground.ijewel3d.com/assets/materials/metal/polished/metal-whitegold-polished.pmat',
'uuid': '4cbfe0d0-631f-4c20-bae2-4ead8bfb4048'
},
'textures': [],
'images': []
}
};