-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtexture_presets.json
More file actions
381 lines (353 loc) · 12.7 KB
/
texture_presets.json
File metadata and controls
381 lines (353 loc) · 12.7 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
{
"_comment": "Texture wiring presets — controls how textures are discovered, classified, and wired into Blender's Principled BSDF. Edit this file to add new suffix patterns, change channel mappings, or create per-material overrides.",
"version": 1,
"ignore_textures": ["DefaultTexture", "xColorFlat-White"],
"ignore_patterns": ["BlendFunc"],
"presets": {
"default_pbr": {
"description": "Standard PBR with packed ORM/RMA maps. Handles most UE4/5 assets.",
"enable_keyword_fallback": true,
"_fallback_note": "When suffix and param_name matching produce empty slots, the resolver scans the source PSK's nearest Textures/Materials folder and tries to fill empty slots by name keywords (basecolor/diffuse/albedo/normal/etc). Set false to disable.",
"priority_order": [
"base_color",
"alb",
"orm",
"rma",
"normal",
"nor",
"nrm_normal",
"metallic",
"roughness",
"refl",
"ao",
"ao_masks",
"emissive",
"alpha",
"specular",
"height",
"id_mask",
"rgb_masks",
"packed_nrm"
],
"texture_slots": {
"base_color": {
"suffixes": [
"_C",
"_CS",
"_Diffuse",
"_D",
"_BaseColor",
"_BC",
"_Albedo",
"_Color"
],
"regex_suffixes": [
"[-_]DIFFR?(?:_[A-Z])?(?:_(?:\\d+|DIRT))?$"
],
"_regex_note": "Obduction-style: _DIFF / _DIFFR with optional _<letter> variant and optional _<digits> or _DIRT overlay. Hyphen separator handles VintageMetal-DiffR.",
"param_names": [
"BaseColor",
"Diffuse",
"Base Color",
"DiffuseTexture",
"Color"
],
"colorspace": "sRGB",
"wiring": {
"type": "direct",
"target_input": "Base Color"
}
},
"orm": {
"suffixes": ["_ORM", "_OcclusionRoughnessMetallic"],
"colorspace": "Non-Color",
"wiring": {
"type": "split_channels",
"channels": {
"R": {
"target_input": "BASE_COLOR_MIX",
"method": "ao_multiply",
"label": "Occlusion"
},
"G": { "target_input": "Roughness", "label": "Roughness" },
"B": { "target_input": "Metallic", "label": "Metallic" }
}
}
},
"rma": {
"suffixes": ["_RMA", "_RoughnessMetallicAO"],
"colorspace": "Non-Color",
"wiring": {
"type": "split_channels",
"channels": {
"R": { "target_input": "Roughness", "label": "Roughness" },
"G": { "target_input": "Metallic", "label": "Metallic" },
"B": {
"target_input": "BASE_COLOR_MIX",
"method": "ao_multiply",
"label": "Occlusion"
}
}
}
},
"normal": {
"suffixes": ["_N", "_Normal", "_Norm"],
"regex_suffixes": [
"[-_](?:NMRL|NRML|NRM)(?:_[A-Z])?(?:_(?:\\d+|DIRT))?$"
],
"_regex_note": "Obduction-style: _NMRL / _NRML / _NRM with optional _<letter> variant and optional _<digits> or _DIRT overlay. Hyphen separator handles VintageMetal-NRM.",
"param_names": ["Normal", "NormalMap", "NormalTexture"],
"colorspace": "Non-Color",
"wiring": {
"type": "normal_map",
"target_input": "Normal"
}
},
"nrm_normal": {
"suffixes": ["_NRM"],
"colorspace": "Non-Color",
"wiring": {
"type": "normal_map",
"target_input": "Normal"
},
"_note": "NRM is treated as Normal by default. If you need it as a packed Normal+Roughness+Metallic map, create a material override below."
},
"emissive": {
"suffixes": ["_E", "_Emissive", "_Glow", "_Emission", "_EmisiveC"],
"param_names": ["Emissive", "EmissiveColor", "EmissiveTexture"],
"colorspace": "sRGB",
"wiring": {
"type": "direct",
"target_input": "Emission Color"
}
},
"alpha": {
"suffixes": ["_A", "_Alpha", "_Opacity"],
"regex_suffixes": [
"_ALPHA(?:_[A-Z])?(?:_\\d+)?$"
],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "Alpha"
}
},
"metallic": {
"suffixes": ["_M", "_Metallic", "_Met", "_Metal"],
"regex_suffixes": [
"_METALLIC_MASK(?:_[A-Z])?(?:_\\d+)?$"
],
"_regex_note": "Obduction packs Metallic_Mask_<letter>_<digits> as a metallic-only mask map.",
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "Metallic"
}
},
"roughness": {
"suffixes": ["_R", "_Roughness", "_Rough"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "Roughness"
}
},
"ao": {
"suffixes": ["_AO", "_Occlusion", "_O"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "BASE_COLOR_MIX",
"method": "ao_multiply"
}
},
"height": {
"suffixes": ["_H", "_Height", "_Displacement", "_Disp"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "SKIP",
"_note": "Height maps have no direct Principled BSDF input; imported for completeness."
}
},
"id_mask": {
"suffixes": ["_ID", "_Mask_ID", "_MaskID"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "SKIP",
"_note": "ID/tint mask maps are used by UE master materials for region coloring; no direct BSDF target."
}
},
"specular": {
"suffixes": ["_S", "_Specular", "_Spec"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "Specular IOR Level"
}
},
"rgb_masks": {
"suffixes": [
"_Masks",
"_MASKS",
"_masks",
"_RGB_Masks",
"_MASK",
"_Mask"
],
"regex_suffixes": [
"_MASK(?:_[A-Z])?(?:_\\d+)?$"
],
"param_names": ["RGBMask", "RGB Mask"],
"colorspace": "Non-Color",
"wiring": {
"type": "rgb_mask_tint",
"_note": "RGB channels are masks for color tinting. Each channel (R/G/B) is used as a factor to mix a corresponding ColorTint (RColorTint/GColorTint/BColorTint from props) onto the base color. Tints are read from VectorParameterValues in the material props file.",
"channels": {
"R": { "tint_param": "RColorTint", "label": "R Mask Tint" },
"G": { "tint_param": "GColorTint", "label": "G Mask Tint" },
"B": { "tint_param": "BColorTint", "label": "B Mask Tint" }
}
}
},
"alb": {
"suffixes": ["_Alb"],
"colorspace": "sRGB",
"wiring": {
"type": "direct",
"target_input": "Base Color"
}
},
"refl": {
"suffixes": ["_Refl", "_refl", "_relf", "_RelfMasks", "_mrea", "_MREA"],
"colorspace": "Non-Color",
"wiring": {
"type": "direct",
"target_input": "Roughness"
}
},
"nor": {
"suffixes": ["_Nor"],
"colorspace": "Non-Color",
"wiring": {
"type": "normal_map",
"target_input": "Normal"
}
},
"ao_masks": {
"suffixes": ["_AOMasks"],
"colorspace": "Non-Color",
"wiring": {
"type": "ao_mask",
"target_input": "Base Color",
"_note": "Factor of a Mix (Color) node. A=base color texture, B=white (default). Output feeds BSDF Base Color."
}
},
"packed_nrm": {
"suffixes": [],
"param_names": ["NormalRoughnessMetallic", "NRM"],
"colorspace": "Non-Color",
"wiring": {
"type": "split_channels",
"_note": "Packed Normal XY + Roughness (+ Metallic in Alpha). Normal reconstruction from separate channels not yet implemented.",
"channels": {
"R": { "target_input": "NORMAL_X", "label": "Normal X" },
"G": { "target_input": "NORMAL_Y", "label": "Normal Y" },
"B": { "target_input": "Roughness", "label": "Roughness" }
}
}
}
}
},
"simple_diffuse": {
"description": "Simple diffuse-only material. No PBR maps.",
"priority_order": ["base_color", "normal"],
"texture_slots": {
"base_color": {
"suffixes": [
"_C",
"_Diffuse",
"_D",
"_BaseColor",
"_BC",
"_Albedo",
"_T"
],
"colorspace": "sRGB",
"wiring": {
"type": "direct",
"target_input": "Base Color"
}
},
"normal": {
"suffixes": ["_N", "_Normal", "_NRM"],
"colorspace": "Non-Color",
"wiring": {
"type": "normal_map",
"target_input": "Normal"
}
}
}
},
"nrm_packed": {
"description": "For assets where _NRM is a packed Normal+Roughness+Metallic map (RG=Normal, B=Roughness, A=Metallic).",
"priority_order": ["base_color", "nrm_packed"],
"texture_slots": {
"base_color": {
"suffixes": ["_C", "_Diffuse", "_D"],
"colorspace": "sRGB",
"wiring": {
"type": "direct",
"target_input": "Base Color"
}
},
"nrm_packed": {
"suffixes": ["_NRM"],
"colorspace": "Non-Color",
"wiring": {
"type": "split_channels",
"channels": {
"R": { "target_input": "NORMAL_X", "label": "Normal X" },
"G": { "target_input": "NORMAL_Y", "label": "Normal Y" },
"B": { "target_input": "Roughness", "label": "Roughness" }
},
"_note": "Alpha channel used for Metallic if present"
}
}
}
}
},
"material_overrides": {
"_example_M_SomeMaterialName": {
"_comment": "Remove the leading underscore from the key to activate this override. The key must match the material name exactly as it appears in Blender after PSK import.",
"preset": "default_pbr",
"force_textures": {
"base_color": "SomeSpecificTextureName_C",
"normal": "SomeSpecificTextureName_N"
}
},
"_example_M_GlassMaterial": {
"_comment": "Example: override for a glass material that should use a different preset.",
"preset": "simple_diffuse",
"bsdf_overrides": {
"Transmission Weight": 0.95,
"Roughness": 0.05,
"IOR": 1.45
}
}
},
"wiring_types_reference": {
"_comment": "This section documents the available wiring types. It is NOT processed by the app — it's here for your reference when editing.",
"direct": "Connects an Image Texture node directly to a Principled BSDF input. Specify 'target_input' (e.g., 'Base Color', 'Roughness', 'Metallic', 'Emission Color', 'Alpha').",
"split_channels": "Adds a Separate RGB node after the Image Texture. Each channel (R/G/B) can target a different BSDF input. Use 'method': 'ao_multiply' on a channel to multiply it with the Base Color via a MixRGB node instead of connecting directly.",
"normal_map": "Adds a Normal Map node between the Image Texture and the BSDF Normal input. Blender auto-handles tangent space.",
"special_targets": {
"BASE_COLOR_MIX": "Indicates this channel should be mixed (multiplied) with the Base Color texture. Used for AO channels in ORM/RMA maps.",
"NORMAL_X": "X component of a reconstructed normal (for packed NRM maps).",
"NORMAL_Y": "Y component of a reconstructed normal (for packed NRM maps).",
"SKIP": "Imports the texture node but does not wire it (for height maps, ID masks, etc)."
},
"rgb_mask_tint": "Separates R/G/B channels and uses each as a factor to mix a color tint (from VectorParameterValues) onto the base color. Creates a chain of MixColor nodes. Tint colors are read from the material's .props.txt (RColorTint, GColorTint, BColorTint)."
}
}