{
  "openapi": "3.1.1",
  "info": {
    "title": "Procedural Material Graph (PBR) API",
    "version": "1.0.0",
    "summary": "Evaluate a seamless procedural material graph and preview it on a sphere.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://renderloommaterialgraph.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculate",
        "summary": "Evaluate a seamless procedural material graph and preview it on a sphere.",
        "description": "Run a Renderloom Material Nodes graph — noise, Voronoi, bricks, gradients, blends, domain warp, levels, curves and surface-from-height nodes — and get base color, normal, roughness, metallic, ambient occlusion and height maps, a lit sphere and a tiled plane preview, a per-node report and the editable graph. Start from brick, wood, stone, metal or fabric.\n\nMethodology:\n- Every generator is periodic over the tile: Perlin and value noise wrap their integer lattice indices, simplex noise is sampled on a 4-D torus, Voronoi cells wrap their cell indices, and bricks, waves, ramps and checkers repeat a whole number of times. Warp, blur, normal, occlusion and curvature sample with wrap-around, so every map tiles seamlessly.\n- Perlin noise uses Ken Perlin’s 2002 Improved Noise with his reference permutation for seed 0 (noise(3.14, 42, 7) = 0.13691995878400012). Other seeds shuffle the permutation deterministically. Octaves double the frequency, so periods stay whole numbers.\n- Blend modes are the W3C separable formulas shared with the Lumina compositor, on display (sRGB-encoded) values. Curves are monotone Fritsch–Carlson splines. Gray inputs feed color ports as equal RGB; color feeds gray ports through Rec. 709 luma weights.\n- Normals use wrapped central differences with the height range expressed as a fraction of the tile width (resolution independent, +Y up). Ambient occlusion is horizon based: 1 − strength × mean over 8 directions of the sine of the highest horizon within the radius. Curvature is 0.5 − strength × (ring mean − centre) × depth / radius.\n- Previews use the glTF 2.0 metallic-roughness BRDF (GGX, separable Smith-GGX visibility, Schlick Fresnel) with one directional light and a dim ambient term. The continuity check compares the steps across the wrap edges with the steps inside the tile.\n\nProcedural approximations for games, previews and look development. Height, occlusion and curvature are derived from the generated height field, not measured from real materials. The preview is a single-light illustration.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "renderloom_material_graph",
        "x-owner-app": "renderloom",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenderloomMaterialGraphInput"
              },
              "examples": {
                "example1": {
                  "summary": "Red brick wall",
                  "value": {
                    "preset": "brick"
                  }
                },
                "example2": {
                  "summary": "Cobblestones with roughness from curvature, new seed",
                  "value": {
                    "preset": "stone",
                    "seed": 42,
                    "size": 192
                  }
                },
                "example3": {
                  "summary": "Custom graph: warped Voronoi tiles",
                  "value": {
                    "preset": "custom",
                    "size": 128,
                    "graph": "{\"format\":\"renderloom-material-graph\",\"version\":1,\"name\":\"Warped tiles\",\"size\":128,\"seed\":3,\"nodes\":[{\"id\":\"cells\",\"type\":\"voronoi\",\"params\":{\"mode\":\"edge\",\"scaleX\":4,\"scaleY\":4,\"jitter\":0.6}},{\"id\":\"wobble\",\"type\":\"noise\",\"params\":{\"kind\":\"simplex\",\"scaleX\":3,\"scaleY\":3,\"octaves\":3}},{\"id\":\"warped\",\"type\":\"warp\",\"params\":{\"strength\":0.04},\"inputs\":{\"source\":\"cells\",\"warpX\":\"wobble\"}},{\"id\":\"tiles\",\"type\":\"levels\",\"params\":{\"inHigh\":0.2},\"inputs\":{\"source\":\"warped\"}},{\"id\":\"paint\",\"type\":\"colorize\",\"params\":{\"low\":\"#203040\",\"high\":\"#d0a060\"},\"inputs\":{\"source\":\"tiles\"}},{\"id\":\"out\",\"type\":\"output\",\"inputs\":{\"baseColor\":\"paint\",\"height\":\"tiles\"}}]}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderloomMaterialGraphResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tool": {
      "get": {
        "operationId": "getToolDefinition",
        "summary": "Inputs, output schema and examples for this tool",
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "RenderloomMaterialGraphInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "preset": {
            "title": "Material graph",
            "type": "string",
            "enum": [
              "brick",
              "wood",
              "stone",
              "metal",
              "fabric",
              "custom"
            ],
            "default": "brick"
          },
          "graph": {
            "title": "Graph JSON (for a custom graph)",
            "description": "Format renderloom-material-graph version 1 (schema at /static/apps/renderloom/material-graph.schema.json). Copy it from Renderloom → Material Nodes.",
            "type": "string",
            "maxLength": 200000,
            "default": ""
          },
          "size": {
            "title": "Map size (px)",
            "type": "integer",
            "minimum": 64,
            "maximum": 512,
            "default": 256
          },
          "seed": {
            "title": "Graph seed (−1 keeps the graph’s seed)",
            "type": "integer",
            "minimum": -1,
            "maximum": 999999,
            "default": -1
          }
        },
        "required": []
      },
      "RenderloomMaterialGraphResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "project",
              "size",
              "seed",
              "nodes",
              "continuity",
              "sphere",
              "plane",
              "maps",
              "archive",
              "projectFile",
              "openInApp"
            ],
            "properties": {
              "project": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "title": "Renderloom material graph",
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "format",
                  "version",
                  "name",
                  "size",
                  "seed",
                  "nodes"
                ],
                "properties": {
                  "format": {
                    "const": "renderloom-material-graph"
                  },
                  "version": {
                    "const": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "size": {
                    "type": "integer",
                    "minimum": 16,
                    "maximum": 1024
                  },
                  "seed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999999
                  },
                  "nodes": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 48,
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "noise"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "perlin",
                                    "value",
                                    "simplex"
                                  ]
                                },
                                "style": {
                                  "enum": [
                                    "fbm",
                                    "turbulence",
                                    "ridged"
                                  ]
                                },
                                "scaleX": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 256
                                },
                                "scaleY": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 256
                                },
                                "octaves": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 8
                                },
                                "persistence": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "contrast": {
                                  "type": "number",
                                  "minimum": 0.1,
                                  "maximum": 4
                                },
                                "seed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9999
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "voronoi"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "mode": {
                                  "enum": [
                                    "f1",
                                    "f2",
                                    "edge",
                                    "cells"
                                  ]
                                },
                                "scaleX": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 256
                                },
                                "scaleY": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 256
                                },
                                "jitter": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "metric": {
                                  "enum": [
                                    "euclidean",
                                    "manhattan",
                                    "chebyshev"
                                  ]
                                },
                                "seed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9999
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "gradient"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "linear-x",
                                    "linear-y",
                                    "wave-x",
                                    "wave-y",
                                    "wave-diagonal",
                                    "radial",
                                    "checker"
                                  ]
                                },
                                "repeat": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 128
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "bricks"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "mode": {
                                  "enum": [
                                    "height",
                                    "cell"
                                  ]
                                },
                                "columns": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 64
                                },
                                "rows": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 128
                                },
                                "offset": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "mortar": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.5
                                },
                                "bevel": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.5
                                },
                                "seed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9999
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "value"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "value": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "color"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "color": {
                                  "type": "string",
                                  "pattern": "^#[0-9a-fA-F]{6}$"
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "blend"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "mode": {
                                  "enum": [
                                    "normal",
                                    "multiply",
                                    "screen",
                                    "overlay",
                                    "soft-light",
                                    "hard-light",
                                    "add",
                                    "difference",
                                    "exclusion",
                                    "darken",
                                    "lighten",
                                    "color-dodge",
                                    "color-burn"
                                  ]
                                },
                                "opacity": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "a": {
                                  "type": "string"
                                },
                                "b": {
                                  "type": "string"
                                },
                                "mask": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "warp"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "strength": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.5
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                },
                                "warpX": {
                                  "type": "string"
                                },
                                "warpY": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "levels"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "inLow": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.99
                                },
                                "inHigh": {
                                  "type": "number",
                                  "minimum": 0.01,
                                  "maximum": 1
                                },
                                "gamma": {
                                  "type": "number",
                                  "minimum": 0.1,
                                  "maximum": 10
                                },
                                "outLow": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "outHigh": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "curves"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "points": {
                                  "type": "string",
                                  "maxLength": 400
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "invert"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {}
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "blur"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "radius": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.1
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "colorize"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "low": {
                                  "type": "string",
                                  "pattern": "^#[0-9a-fA-F]{6}$"
                                },
                                "mid": {
                                  "type": "string",
                                  "maxLength": 400
                                },
                                "high": {
                                  "type": "string",
                                  "pattern": "^#[0-9a-fA-F]{6}$"
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "source": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "normal"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "depth": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.25
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "height": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "ao"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "radius": {
                                  "type": "number",
                                  "minimum": 0.002,
                                  "maximum": 0.2
                                },
                                "depth": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.25
                                },
                                "strength": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "height": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "curvature"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "radius": {
                                  "type": "number",
                                  "minimum": 0.002,
                                  "maximum": 0.1
                                },
                                "depth": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.25
                                },
                                "strength": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 8
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "height": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9-]{0,23}$"
                            },
                            "type": {
                              "const": "output"
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 60
                            },
                            "params": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "normalDepth": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 0.25
                                }
                              }
                            },
                            "inputs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "baseColor": {
                                  "type": "string"
                                },
                                "height": {
                                  "type": "string"
                                },
                                "roughness": {
                                  "type": "string"
                                },
                                "metallic": {
                                  "type": "string"
                                },
                                "ao": {
                                  "type": "string"
                                },
                                "normal": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              },
              "size": {
                "type": "integer"
              },
              "seed": {
                "type": "integer"
              },
              "nodes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "type",
                    "kind",
                    "min",
                    "max",
                    "mean"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "g",
                        "c"
                      ]
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    },
                    "mean": {
                      "type": "number"
                    }
                  }
                }
              },
              "continuity": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "baseColor",
                  "height"
                ],
                "properties": {
                  "baseColor": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "wrapMean",
                      "interiorMean",
                      "wrapMax",
                      "interiorMax",
                      "seamless"
                    ],
                    "properties": {
                      "wrapMean": {
                        "type": "number"
                      },
                      "interiorMean": {
                        "type": "number"
                      },
                      "wrapMax": {
                        "type": "number"
                      },
                      "interiorMax": {
                        "type": "number"
                      },
                      "seamless": {
                        "type": "boolean"
                      }
                    }
                  },
                  "height": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "wrapMean",
                      "interiorMean",
                      "wrapMax",
                      "interiorMax",
                      "seamless"
                    ],
                    "properties": {
                      "wrapMean": {
                        "type": "number"
                      },
                      "interiorMean": {
                        "type": "number"
                      },
                      "wrapMax": {
                        "type": "number"
                      },
                      "interiorMax": {
                        "type": "number"
                      },
                      "seamless": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              },
              "sphere": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              },
              "plane": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              },
              "maps": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "baseColor",
                  "normal",
                  "roughness",
                  "metallic",
                  "ao",
                  "height"
                ],
                "properties": {
                  "baseColor": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "normal": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "roughness": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "metallic": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "ao": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "height": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "archive": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              },
              "projectFile": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}