@bendyline/molen-tooling 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE.md +15 -0
- package/README.md +91 -0
- package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
- package/dist/capture/basis/LICENSE.txt +55 -0
- package/dist/capture/basis/basis_transcoder.js +19 -0
- package/dist/capture/basis/basis_transcoder.wasm +0 -0
- package/dist/capture/capture.html +15 -0
- package/dist/capture/harness.js +4671 -0
- package/dist/capture/worldgen-preview.html +15 -0
- package/dist/capture/worldgen-preview.js +4617 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +1276 -0
- package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
- package/dist/docs-src/guide/3d-model-assets.md +286 -0
- package/dist/docs-src/guide/adaptive-performance.md +89 -0
- package/dist/docs-src/guide/agent-loop.md +156 -0
- package/dist/docs-src/guide/aircraft.md +225 -0
- package/dist/docs-src/guide/browser-mount.md +185 -0
- package/dist/docs-src/guide/building-interiors.md +175 -0
- package/dist/docs-src/guide/capability-authoring.md +69 -0
- package/dist/docs-src/guide/determinism.md +285 -0
- package/dist/docs-src/guide/entities.md +47 -0
- package/dist/docs-src/guide/examples.md +58 -0
- package/dist/docs-src/guide/experience-playback.md +57 -0
- package/dist/docs-src/guide/figures.md +164 -0
- package/dist/docs-src/guide/game-samples.md +100 -0
- package/dist/docs-src/guide/graphics-performance.md +167 -0
- package/dist/docs-src/guide/input.md +205 -0
- package/dist/docs-src/guide/materials.md +125 -0
- package/dist/docs-src/guide/project.md +157 -0
- package/dist/docs-src/guide/quickstart.md +63 -0
- package/dist/docs-src/guide/recognizable-places.md +158 -0
- package/dist/docs-src/guide/rendering-backends.md +231 -0
- package/dist/docs-src/guide/scripting.md +330 -0
- package/dist/docs-src/guide/sky.md +192 -0
- package/dist/docs-src/guide/source-bundles.md +42 -0
- package/dist/docs-src/guide/structure-library.md +114 -0
- package/dist/docs-src/guide/surface-rendering.md +203 -0
- package/dist/docs-src/guide/terrain.md +389 -0
- package/dist/docs-src/guide/three-surface.md +70 -0
- package/dist/docs-src/guide/vehicle-interiors.md +126 -0
- package/dist/docs-src/guide/vehicles.md +110 -0
- package/dist/docs-src/guide/weather.md +123 -0
- package/dist/docs-src/guide/worldgen.md +434 -0
- package/dist/docs-src/llms.txt +129 -0
- package/dist/docs-src/schemas/README.md +36 -0
- package/dist/docs-src/schemas/archstyle.md +2340 -0
- package/dist/docs-src/schemas/assert.md +169 -0
- package/dist/docs-src/schemas/asset.md +543 -0
- package/dist/docs-src/schemas/business-catalog.md +162 -0
- package/dist/docs-src/schemas/cameratrack.md +132 -0
- package/dist/docs-src/schemas/command.md +112 -0
- package/dist/docs-src/schemas/components.md +5826 -0
- package/dist/docs-src/schemas/delta.md +204 -0
- package/dist/docs-src/schemas/experience-play.md +452 -0
- package/dist/docs-src/schemas/figure.md +290 -0
- package/dist/docs-src/schemas/interior-catalog.md +230 -0
- package/dist/docs-src/schemas/keyframe.md +314 -0
- package/dist/docs-src/schemas/landmark-catalog.md +56 -0
- package/dist/docs-src/schemas/landmark.md +293 -0
- package/dist/docs-src/schemas/matgraph.md +1163 -0
- package/dist/docs-src/schemas/pack-index.md +82 -0
- package/dist/docs-src/schemas/pack-source.md +139 -0
- package/dist/docs-src/schemas/pack.md +225 -0
- package/dist/docs-src/schemas/pixelgrid.md +108 -0
- package/dist/docs-src/schemas/prefab.md +106 -0
- package/dist/docs-src/schemas/project.md +271 -0
- package/dist/docs-src/schemas/region-atlas.md +612 -0
- package/dist/docs-src/schemas/replay.md +807 -0
- package/dist/docs-src/schemas/scatter.md +541 -0
- package/dist/docs-src/schemas/scene.md +1152 -0
- package/dist/docs-src/schemas/source-bundle.md +266 -0
- package/dist/docs-src/schemas/stylepack.md +420 -0
- package/dist/docs-src/schemas/terrain-package.md +731 -0
- package/dist/docs-src/schemas/terrain.md +313 -0
- package/dist/docs-src/schemas/types.md +218 -0
- package/dist/docs-src/schemas/uvpaint.md +149 -0
- package/dist/docs-src/schemas/worldgen-batch.md +743 -0
- package/dist/index.d.mts +1271 -0
- package/dist/index.mjs +78 -0
- package/dist/mcp-BFnCWrg0.mjs +796 -0
- package/dist/ops-BGxhSP6w.mjs +7246 -0
- package/package.json +96 -0
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
# Procedural material graph (`molen/matgraph@1`)
|
|
2
|
+
|
|
3
|
+
A small node graph (noise, gradients, ramps, blends) CPU-rasterized to textures.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/matgraph@1",
|
|
10
|
+
"size": [
|
|
11
|
+
256,
|
|
12
|
+
256
|
|
13
|
+
],
|
|
14
|
+
"seed": 1337,
|
|
15
|
+
"nodes": [
|
|
16
|
+
{
|
|
17
|
+
"id": "n1",
|
|
18
|
+
"type": "noise",
|
|
19
|
+
"params": {
|
|
20
|
+
"kind": "simplex",
|
|
21
|
+
"octaves": 5,
|
|
22
|
+
"scale": 4
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "n2",
|
|
27
|
+
"type": "ramp",
|
|
28
|
+
"input": "n1",
|
|
29
|
+
"params": {
|
|
30
|
+
"stops": [
|
|
31
|
+
{
|
|
32
|
+
"t": 0,
|
|
33
|
+
"color": "#4a4a52"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"t": 0.6,
|
|
37
|
+
"color": "#6e6a63"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"t": 1,
|
|
41
|
+
"color": "#9a948a"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"outputs": {
|
|
48
|
+
"baseColor": "n2"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## JSON Schema
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"format": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "molen/matgraph@1",
|
|
63
|
+
"description": "Format envelope; always 'molen/matgraph@1'."
|
|
64
|
+
},
|
|
65
|
+
"size": {
|
|
66
|
+
"default": [
|
|
67
|
+
512,
|
|
68
|
+
512
|
|
69
|
+
],
|
|
70
|
+
"minItems": 2,
|
|
71
|
+
"maxItems": 2,
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "integer",
|
|
75
|
+
"minimum": 1,
|
|
76
|
+
"maximum": 2048
|
|
77
|
+
},
|
|
78
|
+
"description": "Output texture size [width, height] in pixels, 1..2048 (default [512, 512])."
|
|
79
|
+
},
|
|
80
|
+
"seed": {
|
|
81
|
+
"default": 0,
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": -9007199254740991,
|
|
84
|
+
"maximum": 9007199254740991,
|
|
85
|
+
"description": "Deterministic seed for noise nodes (default 0)."
|
|
86
|
+
},
|
|
87
|
+
"nodes": {
|
|
88
|
+
"minItems": 1,
|
|
89
|
+
"maxItems": 256,
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"oneOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"id": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"description": "Node id, unique within the graph."
|
|
100
|
+
},
|
|
101
|
+
"input": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
105
|
+
},
|
|
106
|
+
"inputs": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"propertyNames": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
115
|
+
},
|
|
116
|
+
"type": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "const",
|
|
119
|
+
"description": "Constant scalar or RGBA value."
|
|
120
|
+
},
|
|
121
|
+
"params": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"value": {
|
|
125
|
+
"anyOf": [
|
|
126
|
+
{
|
|
127
|
+
"type": "number"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"minItems": 4,
|
|
131
|
+
"maxItems": 4,
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "number"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"description": "Scalar 0..1 or [r, g, b, a] 0..1."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"value"
|
|
143
|
+
],
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"description": "Node parameters."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"id",
|
|
150
|
+
"type",
|
|
151
|
+
"params"
|
|
152
|
+
],
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"id": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"minLength": 1,
|
|
161
|
+
"description": "Node id, unique within the graph."
|
|
162
|
+
},
|
|
163
|
+
"input": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 1,
|
|
166
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
167
|
+
},
|
|
168
|
+
"inputs": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"propertyNames": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"additionalProperties": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
177
|
+
},
|
|
178
|
+
"type": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"const": "uv",
|
|
181
|
+
"description": "Raw UV coordinates as a value."
|
|
182
|
+
},
|
|
183
|
+
"params": {
|
|
184
|
+
"default": {},
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {},
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"description": "No parameters."
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"id",
|
|
193
|
+
"type"
|
|
194
|
+
],
|
|
195
|
+
"additionalProperties": false
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"id": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1,
|
|
203
|
+
"description": "Node id, unique within the graph."
|
|
204
|
+
},
|
|
205
|
+
"input": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"minLength": 1,
|
|
208
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
209
|
+
},
|
|
210
|
+
"inputs": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"propertyNames": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"additionalProperties": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
219
|
+
},
|
|
220
|
+
"type": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"const": "uv-transform",
|
|
223
|
+
"description": "Scale/offset/rotate the UV space of the upstream node."
|
|
224
|
+
},
|
|
225
|
+
"params": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"properties": {
|
|
228
|
+
"scale": {
|
|
229
|
+
"default": 1,
|
|
230
|
+
"type": "number",
|
|
231
|
+
"exclusiveMinimum": 0,
|
|
232
|
+
"maximum": 1000000,
|
|
233
|
+
"description": "Pattern repeats across the 0..1 UV range (default 1)."
|
|
234
|
+
},
|
|
235
|
+
"offset": {
|
|
236
|
+
"default": [
|
|
237
|
+
0,
|
|
238
|
+
0
|
|
239
|
+
],
|
|
240
|
+
"minItems": 2,
|
|
241
|
+
"maxItems": 2,
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "number"
|
|
245
|
+
},
|
|
246
|
+
"description": "UV offset [u, v] in 0..1 units (default [0, 0])."
|
|
247
|
+
},
|
|
248
|
+
"rotateDeg": {
|
|
249
|
+
"default": 0,
|
|
250
|
+
"type": "number",
|
|
251
|
+
"description": "Rotation in degrees about the UV origin (default 0)."
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"description": "Node parameters."
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"id",
|
|
260
|
+
"type",
|
|
261
|
+
"params"
|
|
262
|
+
],
|
|
263
|
+
"additionalProperties": false
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"id": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"minLength": 1,
|
|
271
|
+
"description": "Node id, unique within the graph."
|
|
272
|
+
},
|
|
273
|
+
"input": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"minLength": 1,
|
|
276
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
277
|
+
},
|
|
278
|
+
"inputs": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"propertyNames": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
"additionalProperties": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
287
|
+
},
|
|
288
|
+
"type": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"const": "noise",
|
|
291
|
+
"description": "Fractal noise field (0..1)."
|
|
292
|
+
},
|
|
293
|
+
"params": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"properties": {
|
|
296
|
+
"kind": {
|
|
297
|
+
"default": "simplex",
|
|
298
|
+
"type": "string",
|
|
299
|
+
"enum": [
|
|
300
|
+
"simplex",
|
|
301
|
+
"value"
|
|
302
|
+
],
|
|
303
|
+
"description": "Base noise: simplex (default) or value noise."
|
|
304
|
+
},
|
|
305
|
+
"octaves": {
|
|
306
|
+
"default": 4,
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"minimum": 1,
|
|
309
|
+
"maximum": 8,
|
|
310
|
+
"description": "Number of fBm octaves, 1..8 (default 4)."
|
|
311
|
+
},
|
|
312
|
+
"lacunarity": {
|
|
313
|
+
"default": 2,
|
|
314
|
+
"type": "number",
|
|
315
|
+
"exclusiveMinimum": 0,
|
|
316
|
+
"maximum": 16,
|
|
317
|
+
"description": "Frequency multiplier per octave (default 2)."
|
|
318
|
+
},
|
|
319
|
+
"gain": {
|
|
320
|
+
"default": 0.5,
|
|
321
|
+
"type": "number",
|
|
322
|
+
"minimum": 0,
|
|
323
|
+
"maximum": 1,
|
|
324
|
+
"description": "Amplitude multiplier per octave, 0..1 (default 0.5)."
|
|
325
|
+
},
|
|
326
|
+
"scale": {
|
|
327
|
+
"default": 4,
|
|
328
|
+
"type": "number",
|
|
329
|
+
"exclusiveMinimum": 0,
|
|
330
|
+
"maximum": 1000000,
|
|
331
|
+
"description": "Pattern repeats across the 0..1 UV range (default 4)."
|
|
332
|
+
},
|
|
333
|
+
"seedOffset": {
|
|
334
|
+
"default": 0,
|
|
335
|
+
"type": "integer",
|
|
336
|
+
"minimum": -9007199254740991,
|
|
337
|
+
"maximum": 9007199254740991,
|
|
338
|
+
"description": "Added to the document seed so sibling noise nodes differ (default 0)."
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"additionalProperties": false,
|
|
342
|
+
"description": "Node parameters."
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"required": [
|
|
346
|
+
"id",
|
|
347
|
+
"type",
|
|
348
|
+
"params"
|
|
349
|
+
],
|
|
350
|
+
"additionalProperties": false
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"id": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"minLength": 1,
|
|
358
|
+
"description": "Node id, unique within the graph."
|
|
359
|
+
},
|
|
360
|
+
"input": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"minLength": 1,
|
|
363
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
364
|
+
},
|
|
365
|
+
"inputs": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"propertyNames": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"additionalProperties": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
374
|
+
},
|
|
375
|
+
"type": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"const": "worley",
|
|
378
|
+
"description": "Worley (cellular) noise (0..1)."
|
|
379
|
+
},
|
|
380
|
+
"params": {
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"scale": {
|
|
384
|
+
"default": 4,
|
|
385
|
+
"type": "number",
|
|
386
|
+
"exclusiveMinimum": 0,
|
|
387
|
+
"maximum": 1000000,
|
|
388
|
+
"description": "Pattern repeats across the 0..1 UV range (default 4)."
|
|
389
|
+
},
|
|
390
|
+
"jitter": {
|
|
391
|
+
"default": 1,
|
|
392
|
+
"type": "number",
|
|
393
|
+
"minimum": 0,
|
|
394
|
+
"maximum": 1,
|
|
395
|
+
"description": "Cell point randomness, 0 (regular grid) .. 1 (default)."
|
|
396
|
+
},
|
|
397
|
+
"output": {
|
|
398
|
+
"default": "f1",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"enum": [
|
|
401
|
+
"f1",
|
|
402
|
+
"f2",
|
|
403
|
+
"f2-f1"
|
|
404
|
+
],
|
|
405
|
+
"description": "Distance output: nearest (f1, default), second-nearest (f2), or their difference (f2-f1)."
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"additionalProperties": false,
|
|
409
|
+
"description": "Node parameters."
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"required": [
|
|
413
|
+
"id",
|
|
414
|
+
"type",
|
|
415
|
+
"params"
|
|
416
|
+
],
|
|
417
|
+
"additionalProperties": false
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "object",
|
|
421
|
+
"properties": {
|
|
422
|
+
"id": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1,
|
|
425
|
+
"description": "Node id, unique within the graph."
|
|
426
|
+
},
|
|
427
|
+
"input": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1,
|
|
430
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
431
|
+
},
|
|
432
|
+
"inputs": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"propertyNames": {
|
|
435
|
+
"type": "string"
|
|
436
|
+
},
|
|
437
|
+
"additionalProperties": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
441
|
+
},
|
|
442
|
+
"type": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"const": "gradient",
|
|
445
|
+
"description": "Linear or radial gradient (0..1)."
|
|
446
|
+
},
|
|
447
|
+
"params": {
|
|
448
|
+
"type": "object",
|
|
449
|
+
"properties": {
|
|
450
|
+
"kind": {
|
|
451
|
+
"default": "linear",
|
|
452
|
+
"type": "string",
|
|
453
|
+
"enum": [
|
|
454
|
+
"linear",
|
|
455
|
+
"radial"
|
|
456
|
+
],
|
|
457
|
+
"description": "linear across UV (default) or radial from the center."
|
|
458
|
+
},
|
|
459
|
+
"angleDeg": {
|
|
460
|
+
"default": 0,
|
|
461
|
+
"type": "number",
|
|
462
|
+
"description": "Direction of a linear gradient in degrees (0 = along +u; default 0)."
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"description": "Node parameters."
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"required": [
|
|
470
|
+
"id",
|
|
471
|
+
"type",
|
|
472
|
+
"params"
|
|
473
|
+
],
|
|
474
|
+
"additionalProperties": false
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"type": "object",
|
|
478
|
+
"properties": {
|
|
479
|
+
"id": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"minLength": 1,
|
|
482
|
+
"description": "Node id, unique within the graph."
|
|
483
|
+
},
|
|
484
|
+
"input": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"minLength": 1,
|
|
487
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
488
|
+
},
|
|
489
|
+
"inputs": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"propertyNames": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"additionalProperties": {
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
497
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
498
|
+
},
|
|
499
|
+
"type": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"const": "checker",
|
|
502
|
+
"description": "Checkerboard (0/1)."
|
|
503
|
+
},
|
|
504
|
+
"params": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"scale": {
|
|
508
|
+
"default": 8,
|
|
509
|
+
"type": "number",
|
|
510
|
+
"exclusiveMinimum": 0,
|
|
511
|
+
"maximum": 1000000,
|
|
512
|
+
"description": "Pattern repeats across the 0..1 UV range (default 8)."
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"additionalProperties": false,
|
|
516
|
+
"description": "Node parameters."
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"required": [
|
|
520
|
+
"id",
|
|
521
|
+
"type",
|
|
522
|
+
"params"
|
|
523
|
+
],
|
|
524
|
+
"additionalProperties": false
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"id": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"minLength": 1,
|
|
532
|
+
"description": "Node id, unique within the graph."
|
|
533
|
+
},
|
|
534
|
+
"input": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"minLength": 1,
|
|
537
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
538
|
+
},
|
|
539
|
+
"inputs": {
|
|
540
|
+
"type": "object",
|
|
541
|
+
"propertyNames": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
"additionalProperties": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
},
|
|
547
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
548
|
+
},
|
|
549
|
+
"type": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"const": "bricks",
|
|
552
|
+
"description": "Brick/mortar mask (1 = brick, 0 = mortar)."
|
|
553
|
+
},
|
|
554
|
+
"params": {
|
|
555
|
+
"type": "object",
|
|
556
|
+
"properties": {
|
|
557
|
+
"rows": {
|
|
558
|
+
"default": 8,
|
|
559
|
+
"type": "integer",
|
|
560
|
+
"exclusiveMinimum": 0,
|
|
561
|
+
"maximum": 4096,
|
|
562
|
+
"description": "Brick rows across V (default 8)."
|
|
563
|
+
},
|
|
564
|
+
"cols": {
|
|
565
|
+
"default": 4,
|
|
566
|
+
"type": "integer",
|
|
567
|
+
"exclusiveMinimum": 0,
|
|
568
|
+
"maximum": 4096,
|
|
569
|
+
"description": "Brick columns across U (default 4)."
|
|
570
|
+
},
|
|
571
|
+
"mortarWidth": {
|
|
572
|
+
"default": 0.05,
|
|
573
|
+
"type": "number",
|
|
574
|
+
"minimum": 0,
|
|
575
|
+
"maximum": 0.5,
|
|
576
|
+
"description": "Mortar width as a fraction of one brick cell, 0..0.5 (default 0.05)."
|
|
577
|
+
},
|
|
578
|
+
"offset": {
|
|
579
|
+
"default": 0.5,
|
|
580
|
+
"type": "number",
|
|
581
|
+
"minimum": 0,
|
|
582
|
+
"maximum": 1,
|
|
583
|
+
"description": "Horizontal shift of alternate rows as a fraction of a brick, 0..1 (default 0.5)."
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"additionalProperties": false,
|
|
587
|
+
"description": "Node parameters."
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": [
|
|
591
|
+
"id",
|
|
592
|
+
"type",
|
|
593
|
+
"params"
|
|
594
|
+
],
|
|
595
|
+
"additionalProperties": false
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "object",
|
|
599
|
+
"properties": {
|
|
600
|
+
"id": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"minLength": 1,
|
|
603
|
+
"description": "Node id, unique within the graph."
|
|
604
|
+
},
|
|
605
|
+
"input": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"minLength": 1,
|
|
608
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
609
|
+
},
|
|
610
|
+
"inputs": {
|
|
611
|
+
"type": "object",
|
|
612
|
+
"propertyNames": {
|
|
613
|
+
"type": "string"
|
|
614
|
+
},
|
|
615
|
+
"additionalProperties": {
|
|
616
|
+
"type": "string"
|
|
617
|
+
},
|
|
618
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
619
|
+
},
|
|
620
|
+
"type": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"const": "ramp",
|
|
623
|
+
"description": "Map the scalar input 0..1 through a color ramp."
|
|
624
|
+
},
|
|
625
|
+
"params": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {
|
|
628
|
+
"stops": {
|
|
629
|
+
"minItems": 2,
|
|
630
|
+
"type": "array",
|
|
631
|
+
"items": {
|
|
632
|
+
"type": "object",
|
|
633
|
+
"properties": {
|
|
634
|
+
"t": {
|
|
635
|
+
"type": "number",
|
|
636
|
+
"minimum": 0,
|
|
637
|
+
"maximum": 1,
|
|
638
|
+
"description": "Position of the stop along the input 0..1."
|
|
639
|
+
},
|
|
640
|
+
"color": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
|
|
643
|
+
"description": "Stop color '#rrggbb' or '#rrggbbaa'."
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"required": [
|
|
647
|
+
"t",
|
|
648
|
+
"color"
|
|
649
|
+
],
|
|
650
|
+
"additionalProperties": false
|
|
651
|
+
},
|
|
652
|
+
"description": "Color stops ordered by t (at least two)."
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"required": [
|
|
656
|
+
"stops"
|
|
657
|
+
],
|
|
658
|
+
"additionalProperties": false,
|
|
659
|
+
"description": "Node parameters."
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"required": [
|
|
663
|
+
"id",
|
|
664
|
+
"type",
|
|
665
|
+
"params"
|
|
666
|
+
],
|
|
667
|
+
"additionalProperties": false
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"type": "object",
|
|
671
|
+
"properties": {
|
|
672
|
+
"id": {
|
|
673
|
+
"type": "string",
|
|
674
|
+
"minLength": 1,
|
|
675
|
+
"description": "Node id, unique within the graph."
|
|
676
|
+
},
|
|
677
|
+
"input": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"minLength": 1,
|
|
680
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
681
|
+
},
|
|
682
|
+
"inputs": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"propertyNames": {
|
|
685
|
+
"type": "string"
|
|
686
|
+
},
|
|
687
|
+
"additionalProperties": {
|
|
688
|
+
"type": "string"
|
|
689
|
+
},
|
|
690
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
691
|
+
},
|
|
692
|
+
"type": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"const": "blend",
|
|
695
|
+
"description": "Combine inputs.a and inputs.b."
|
|
696
|
+
},
|
|
697
|
+
"params": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"mode": {
|
|
701
|
+
"default": "mix",
|
|
702
|
+
"type": "string",
|
|
703
|
+
"enum": [
|
|
704
|
+
"mix",
|
|
705
|
+
"multiply",
|
|
706
|
+
"add",
|
|
707
|
+
"screen",
|
|
708
|
+
"overlay"
|
|
709
|
+
],
|
|
710
|
+
"description": "Blend mode (default mix)."
|
|
711
|
+
},
|
|
712
|
+
"factor": {
|
|
713
|
+
"default": 0.5,
|
|
714
|
+
"type": "number",
|
|
715
|
+
"minimum": 0,
|
|
716
|
+
"maximum": 1,
|
|
717
|
+
"description": "Weight of input b, 0..1 (default 0.5)."
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"additionalProperties": false,
|
|
721
|
+
"description": "Node parameters."
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"required": [
|
|
725
|
+
"id",
|
|
726
|
+
"type",
|
|
727
|
+
"params"
|
|
728
|
+
],
|
|
729
|
+
"additionalProperties": false
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"type": "object",
|
|
733
|
+
"properties": {
|
|
734
|
+
"id": {
|
|
735
|
+
"type": "string",
|
|
736
|
+
"minLength": 1,
|
|
737
|
+
"description": "Node id, unique within the graph."
|
|
738
|
+
},
|
|
739
|
+
"input": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"minLength": 1,
|
|
742
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
743
|
+
},
|
|
744
|
+
"inputs": {
|
|
745
|
+
"type": "object",
|
|
746
|
+
"propertyNames": {
|
|
747
|
+
"type": "string"
|
|
748
|
+
},
|
|
749
|
+
"additionalProperties": {
|
|
750
|
+
"type": "string"
|
|
751
|
+
},
|
|
752
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
753
|
+
},
|
|
754
|
+
"type": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"const": "threshold",
|
|
757
|
+
"description": "Soft step of the scalar input around an edge."
|
|
758
|
+
},
|
|
759
|
+
"params": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"properties": {
|
|
762
|
+
"edge": {
|
|
763
|
+
"default": 0.5,
|
|
764
|
+
"type": "number",
|
|
765
|
+
"description": "Input value at which the output crosses 0.5 (default 0.5)."
|
|
766
|
+
},
|
|
767
|
+
"smoothness": {
|
|
768
|
+
"default": 0.05,
|
|
769
|
+
"type": "number",
|
|
770
|
+
"minimum": 0,
|
|
771
|
+
"maximum": 1,
|
|
772
|
+
"description": "Half-width of the smooth transition around edge, 0..1 (default 0.05)."
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"additionalProperties": false,
|
|
776
|
+
"description": "Node parameters."
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"required": [
|
|
780
|
+
"id",
|
|
781
|
+
"type",
|
|
782
|
+
"params"
|
|
783
|
+
],
|
|
784
|
+
"additionalProperties": false
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"type": "object",
|
|
788
|
+
"properties": {
|
|
789
|
+
"id": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"minLength": 1,
|
|
792
|
+
"description": "Node id, unique within the graph."
|
|
793
|
+
},
|
|
794
|
+
"input": {
|
|
795
|
+
"type": "string",
|
|
796
|
+
"minLength": 1,
|
|
797
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
798
|
+
},
|
|
799
|
+
"inputs": {
|
|
800
|
+
"type": "object",
|
|
801
|
+
"propertyNames": {
|
|
802
|
+
"type": "string"
|
|
803
|
+
},
|
|
804
|
+
"additionalProperties": {
|
|
805
|
+
"type": "string"
|
|
806
|
+
},
|
|
807
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
808
|
+
},
|
|
809
|
+
"type": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"const": "invert",
|
|
812
|
+
"description": "1 - input."
|
|
813
|
+
},
|
|
814
|
+
"params": {
|
|
815
|
+
"default": {},
|
|
816
|
+
"type": "object",
|
|
817
|
+
"properties": {},
|
|
818
|
+
"additionalProperties": false,
|
|
819
|
+
"description": "No parameters."
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
"required": [
|
|
823
|
+
"id",
|
|
824
|
+
"type"
|
|
825
|
+
],
|
|
826
|
+
"additionalProperties": false
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"type": "object",
|
|
830
|
+
"properties": {
|
|
831
|
+
"id": {
|
|
832
|
+
"type": "string",
|
|
833
|
+
"minLength": 1,
|
|
834
|
+
"description": "Node id, unique within the graph."
|
|
835
|
+
},
|
|
836
|
+
"input": {
|
|
837
|
+
"type": "string",
|
|
838
|
+
"minLength": 1,
|
|
839
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
840
|
+
},
|
|
841
|
+
"inputs": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"propertyNames": {
|
|
844
|
+
"type": "string"
|
|
845
|
+
},
|
|
846
|
+
"additionalProperties": {
|
|
847
|
+
"type": "string"
|
|
848
|
+
},
|
|
849
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
850
|
+
},
|
|
851
|
+
"type": {
|
|
852
|
+
"type": "string",
|
|
853
|
+
"const": "levels",
|
|
854
|
+
"description": "Remap input range to output range with gamma."
|
|
855
|
+
},
|
|
856
|
+
"params": {
|
|
857
|
+
"type": "object",
|
|
858
|
+
"properties": {
|
|
859
|
+
"inMin": {
|
|
860
|
+
"default": 0,
|
|
861
|
+
"type": "number",
|
|
862
|
+
"description": "Input value mapped to outMin (default 0)."
|
|
863
|
+
},
|
|
864
|
+
"inMax": {
|
|
865
|
+
"default": 1,
|
|
866
|
+
"type": "number",
|
|
867
|
+
"description": "Input value mapped to outMax (default 1; must exceed inMin)."
|
|
868
|
+
},
|
|
869
|
+
"gamma": {
|
|
870
|
+
"default": 1,
|
|
871
|
+
"type": "number",
|
|
872
|
+
"exclusiveMinimum": 0,
|
|
873
|
+
"maximum": 100,
|
|
874
|
+
"description": "Gamma exponent (default 1)."
|
|
875
|
+
},
|
|
876
|
+
"outMin": {
|
|
877
|
+
"default": 0,
|
|
878
|
+
"type": "number",
|
|
879
|
+
"description": "Output low value (default 0)."
|
|
880
|
+
},
|
|
881
|
+
"outMax": {
|
|
882
|
+
"default": 1,
|
|
883
|
+
"type": "number",
|
|
884
|
+
"description": "Output high value (default 1)."
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"additionalProperties": false,
|
|
888
|
+
"description": "Node parameters."
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"required": [
|
|
892
|
+
"id",
|
|
893
|
+
"type",
|
|
894
|
+
"params"
|
|
895
|
+
],
|
|
896
|
+
"additionalProperties": false
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"type": "object",
|
|
900
|
+
"properties": {
|
|
901
|
+
"id": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"minLength": 1,
|
|
904
|
+
"description": "Node id, unique within the graph."
|
|
905
|
+
},
|
|
906
|
+
"input": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"minLength": 1,
|
|
909
|
+
"description": "Id of the single upstream node this node reads (single-input nodes)."
|
|
910
|
+
},
|
|
911
|
+
"inputs": {
|
|
912
|
+
"type": "object",
|
|
913
|
+
"propertyNames": {
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
"additionalProperties": {
|
|
917
|
+
"type": "string"
|
|
918
|
+
},
|
|
919
|
+
"description": "Named upstream node ids for multi-input nodes, e.g. { a: 'n1', b: 'n2' } for blend."
|
|
920
|
+
},
|
|
921
|
+
"type": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"const": "height-to-normal",
|
|
924
|
+
"description": "Derive a tangent-space normal map from a height input."
|
|
925
|
+
},
|
|
926
|
+
"params": {
|
|
927
|
+
"type": "object",
|
|
928
|
+
"properties": {
|
|
929
|
+
"strength": {
|
|
930
|
+
"default": 1,
|
|
931
|
+
"type": "number",
|
|
932
|
+
"minimum": 0,
|
|
933
|
+
"maximum": 100,
|
|
934
|
+
"description": "Height gradient multiplier (default 1)."
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
"additionalProperties": false,
|
|
938
|
+
"description": "Node parameters."
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"required": [
|
|
942
|
+
"id",
|
|
943
|
+
"type",
|
|
944
|
+
"params"
|
|
945
|
+
],
|
|
946
|
+
"additionalProperties": false
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
"description": "Graph nodes (1..256); each is a pure per-UV function of its inputs."
|
|
951
|
+
},
|
|
952
|
+
"outputs": {
|
|
953
|
+
"anyOf": [
|
|
954
|
+
{
|
|
955
|
+
"type": "object",
|
|
956
|
+
"properties": {
|
|
957
|
+
"baseColor": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
960
|
+
},
|
|
961
|
+
"roughness": {
|
|
962
|
+
"type": "string",
|
|
963
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
964
|
+
},
|
|
965
|
+
"metalness": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
968
|
+
},
|
|
969
|
+
"normal": {
|
|
970
|
+
"type": "string",
|
|
971
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
972
|
+
},
|
|
973
|
+
"emissive": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
976
|
+
},
|
|
977
|
+
"ao": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"required": [
|
|
983
|
+
"baseColor"
|
|
984
|
+
],
|
|
985
|
+
"additionalProperties": false
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"type": "object",
|
|
989
|
+
"properties": {
|
|
990
|
+
"baseColor": {
|
|
991
|
+
"type": "string",
|
|
992
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
993
|
+
},
|
|
994
|
+
"roughness": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
997
|
+
},
|
|
998
|
+
"metalness": {
|
|
999
|
+
"type": "string",
|
|
1000
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
1001
|
+
},
|
|
1002
|
+
"normal": {
|
|
1003
|
+
"type": "string",
|
|
1004
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
1005
|
+
},
|
|
1006
|
+
"emissive": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
1009
|
+
},
|
|
1010
|
+
"ao": {
|
|
1011
|
+
"type": "string",
|
|
1012
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
"required": [
|
|
1016
|
+
"roughness"
|
|
1017
|
+
],
|
|
1018
|
+
"additionalProperties": false
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"type": "object",
|
|
1022
|
+
"properties": {
|
|
1023
|
+
"baseColor": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
1026
|
+
},
|
|
1027
|
+
"roughness": {
|
|
1028
|
+
"type": "string",
|
|
1029
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
1030
|
+
},
|
|
1031
|
+
"metalness": {
|
|
1032
|
+
"type": "string",
|
|
1033
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
1034
|
+
},
|
|
1035
|
+
"normal": {
|
|
1036
|
+
"type": "string",
|
|
1037
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
1038
|
+
},
|
|
1039
|
+
"emissive": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
1042
|
+
},
|
|
1043
|
+
"ao": {
|
|
1044
|
+
"type": "string",
|
|
1045
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"required": [
|
|
1049
|
+
"metalness"
|
|
1050
|
+
],
|
|
1051
|
+
"additionalProperties": false
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"type": "object",
|
|
1055
|
+
"properties": {
|
|
1056
|
+
"baseColor": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
1059
|
+
},
|
|
1060
|
+
"roughness": {
|
|
1061
|
+
"type": "string",
|
|
1062
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
1063
|
+
},
|
|
1064
|
+
"metalness": {
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
1067
|
+
},
|
|
1068
|
+
"normal": {
|
|
1069
|
+
"type": "string",
|
|
1070
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
1071
|
+
},
|
|
1072
|
+
"emissive": {
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
1075
|
+
},
|
|
1076
|
+
"ao": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"required": [
|
|
1082
|
+
"normal"
|
|
1083
|
+
],
|
|
1084
|
+
"additionalProperties": false
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"type": "object",
|
|
1088
|
+
"properties": {
|
|
1089
|
+
"baseColor": {
|
|
1090
|
+
"type": "string",
|
|
1091
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
1092
|
+
},
|
|
1093
|
+
"roughness": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
1096
|
+
},
|
|
1097
|
+
"metalness": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
1100
|
+
},
|
|
1101
|
+
"normal": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
1104
|
+
},
|
|
1105
|
+
"emissive": {
|
|
1106
|
+
"type": "string",
|
|
1107
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
1108
|
+
},
|
|
1109
|
+
"ao": {
|
|
1110
|
+
"type": "string",
|
|
1111
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
"required": [
|
|
1115
|
+
"emissive"
|
|
1116
|
+
],
|
|
1117
|
+
"additionalProperties": false
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"type": "object",
|
|
1121
|
+
"properties": {
|
|
1122
|
+
"baseColor": {
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"description": "Id of the node rasterized into the baseColor texture."
|
|
1125
|
+
},
|
|
1126
|
+
"roughness": {
|
|
1127
|
+
"type": "string",
|
|
1128
|
+
"description": "Id of the node rasterized into the roughness texture."
|
|
1129
|
+
},
|
|
1130
|
+
"metalness": {
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"description": "Id of the node rasterized into the metalness texture."
|
|
1133
|
+
},
|
|
1134
|
+
"normal": {
|
|
1135
|
+
"type": "string",
|
|
1136
|
+
"description": "Id of the node rasterized into the normal texture."
|
|
1137
|
+
},
|
|
1138
|
+
"emissive": {
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"description": "Id of the node rasterized into the emissive texture."
|
|
1141
|
+
},
|
|
1142
|
+
"ao": {
|
|
1143
|
+
"type": "string",
|
|
1144
|
+
"description": "Id of the node rasterized into the ambient-occlusion texture."
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"required": [
|
|
1148
|
+
"ao"
|
|
1149
|
+
],
|
|
1150
|
+
"additionalProperties": false
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
"description": "Texture slot to node id (at least one slot)."
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
"required": [
|
|
1157
|
+
"format",
|
|
1158
|
+
"nodes",
|
|
1159
|
+
"outputs"
|
|
1160
|
+
],
|
|
1161
|
+
"additionalProperties": false
|
|
1162
|
+
}
|
|
1163
|
+
```
|