{
  "schema": 1,
  "scope": "Build-time original diagnostic outputs; not scanned textures or physical/engine certification.",
  "routes": {
    "/texture-blender/": {
      "summary": "A black mask preserves the base; a white mask permits the selected layer opacity in linear light.",
      "steps": "Import the base, layer and mask in that order. Select masked blend and 50% mix. The left half stays unchanged; the right is blended, not an sRGB byte average.",
      "ids": [
        "blend-base",
        "blend-layer",
        "blend-mask",
        "blend-result"
      ],
      "metrics": {
        "unchangedLeftRGBA": [
          60,
          90,
          130,
          255
        ],
        "blendedRightRGBA": [
          155,
          118,
          105,
          255
        ]
      }
    },
    "/batch-texture-converter/": {
      "summary": "A 16-bit grayscale height map can be resized without converting it to 8-bit color.",
      "steps": "Load the input PNG, set 64 × 32, stretch, linear interpolation and PNG with 16-bit preservation. The output is a single-file fixture; repeat in a queue to export a batch ZIP.",
      "ids": [
        "resize-height-input",
        "resize-height-output"
      ],
      "metrics": {
        "input": [
          128,
          64
        ],
        "output": [
          64,
          32
        ],
        "bitDepth": 16
      }
    },
    "/pbr-channel-packer/": {
      "summary": "ORM stores ambient occlusion in red, roughness in green and metallic in blue. Alpha is 255 in this fixture.",
      "steps": "Import the three scalar PNGs in AO, roughness, metallic order and select ORM. Export as PNG; split the output to recover each source channel. Treat the packed file as non-color data.",
      "ids": [
        "orm-ao",
        "orm-roughness",
        "orm-metallic",
        "orm-packed"
      ],
      "metrics": {
        "scalarChannelsExact": 3,
        "alpha": 255
      }
    },
    "/sprite-sheet-maker/": {
      "summary": "Three original transparent frames form a 96 × 32 sprite strip.",
      "steps": "Load frames 1–3 in order, choose three columns and 8 frames per second. Export the grid and frame metadata. The three frame X offsets are 0, 32 and 64.",
      "ids": [
        "sprite-frame-1",
        "sprite-frame-2",
        "sprite-frame-3",
        "sprite-grid-output"
      ],
      "metrics": {
        "width": 96,
        "height": 32,
        "frames": [
          {
            "index": 0,
            "sourceIndex": 0,
            "x": 0,
            "y": 0,
            "w": 32,
            "h": 32,
            "sourceWidth": 32,
            "sourceHeight": 32
          },
          {
            "index": 1,
            "sourceIndex": 1,
            "x": 32,
            "y": 0,
            "w": 32,
            "h": 32,
            "sourceWidth": 32,
            "sourceHeight": 32
          },
          {
            "index": 2,
            "sourceIndex": 2,
            "x": 64,
            "y": 0,
            "w": 32,
            "h": 32,
            "sourceWidth": 32,
            "sourceHeight": 32
          }
        ],
        "fps": 8
      }
    },
    "/texture-compressor/": {
      "summary": "PNG is lossless in this example; JPEG requires an explicit matte for transparent color textures.",
      "steps": "Load the brick input and choose PNG; the decoded bytes match the input pixels. For the transparent fixture, choose JPEG only after explicit loss permission and white matte. The matte image here is the actual pre-encoding result, not a JPEG quality benchmark.",
      "ids": [
        "compress-input",
        "compress-roundtrip",
        "compress-alpha",
        "compress-matte"
      ],
      "metrics": {
        "losslessPNGBytes": 12063,
        "pixelExact": true,
        "jpegWithoutPermissionRejected": true
      }
    },
    "/texture-memory-calculator/": {
      "summary": "For a 1024 × 1024 texture, RGBA8 uses 4 MiB without mipmaps. BC1 uses 512 KiB.",
      "steps": "Enter 1024 for both axes, one layer, and compare RGBA8 and BC1. Enable the full mip chain to see every level down to 1 × 1. These are calculated storage bytes, not measured GPU allocations.",
      "ids": [],
      "metrics": {
        "rgba8Bytes": 4194304,
        "rgba8FullMipBytes": 5592404,
        "bc1Bytes": 524288
      }
    },
    "/3d-material-preview/": {
      "summary": "Two diagnostic light angles reveal changes in surface response without changing the original maps.",
      "steps": "Use the brick base and normal, generate the remaining material maps, capture A, and change lighting to compare B. These images are deterministic CPU diagnostic renders, not measured or native-engine reference renders.",
      "ids": [
        "preview-base",
        "preview-normal",
        "preview-light-a",
        "preview-light-b"
      ],
      "metrics": {
        "lightingChangesPixels": true,
        "sourceSeed": 42
      }
    }
  },
  "records": {
    "blend-base": {
      "url": "/tool-examples/blend-base.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 209,
      "sha256": "c03ff9e1f973bd9b5888a1401bf299f65192d98740a60665d87ada25a3e34f93",
      "caption": "Base: opaque blue.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "blend-layer": {
      "url": "/tool-examples/blend-layer.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 209,
      "sha256": "5380739442b9e810fa2cd940aea52236d90c1dce8448a74b3c65a3f5643c79d6",
      "caption": "Layer: opaque ochre.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "blend-mask": {
      "url": "/tool-examples/blend-mask.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 158,
      "sha256": "2d09fd8d0da5a95a51b3609ec1c7b6de9c37e658afe880c6ec0180c29926ddab",
      "caption": "Black/white half mask.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "blend-result": {
      "url": "/tool-examples/blend-result.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 169,
      "sha256": "d5df6a83684a464d120f848bf555eff65f6cb60aa574ec20b5d9daaf2a0a2067",
      "caption": "Actual masked blend at 50% mix.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "resize-height-input": {
      "url": "/tool-examples/resize-height-input.png",
      "width": 128,
      "height": 64,
      "bitDepth": 16,
      "bytes": 466,
      "sha256": "ad039c90ce75b38d42bd8a1225bcda1ad06da0af7e47a508d9bb0edd2a46f5aa",
      "caption": "128 × 64 linear height ramp, 16-bit PNG.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "resize-height-output": {
      "url": "/tool-examples/resize-height-output.png",
      "width": 64,
      "height": 32,
      "bitDepth": 16,
      "bytes": 240,
      "sha256": "74cdd6c970e3bc942cff933a8ee50076f0434627d1ff544b7e6d6110c7ec0ffb",
      "caption": "64 × 32 resized height field, 16-bit PNG.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "orm-ao": {
      "url": "/tool-examples/orm-ao.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 394,
      "sha256": "0262a0e0eb270bb98a6bed309b203c68171d0cac6bd3f2e5710ee9a709f668ec",
      "caption": "Input R: AO horizontal ramp.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "orm-roughness": {
      "url": "/tool-examples/orm-roughness.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 401,
      "sha256": "d584b7288ae5d7732fa55d5bb2163fb872f6706f5f6464f7c49177a100062deb",
      "caption": "Input G: roughness vertical ramp.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "orm-metallic": {
      "url": "/tool-examples/orm-metallic.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 158,
      "sha256": "2d09fd8d0da5a95a51b3609ec1c7b6de9c37e658afe880c6ec0180c29926ddab",
      "caption": "Input B: binary metalness.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "orm-packed": {
      "url": "/tool-examples/orm-packed.png",
      "width": 64,
      "height": 64,
      "bitDepth": 8,
      "bytes": 9288,
      "sha256": "b2382051880a74d672e0abd8179fd2bd69fb0dc69664d3ae56bbab4eade23ee0",
      "caption": "Actual packed ORM; all three channels round-trip exactly.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "sprite-frame-1": {
      "url": "/tool-examples/sprite-frame-1.png",
      "width": 32,
      "height": 32,
      "bitDepth": 8,
      "bytes": 130,
      "sha256": "13764466bee8834b164a49e89232f6f96349bf10884497229261bc7227192d47",
      "caption": "Frame 1, 32 × 32 RGBA.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "sprite-frame-3": {
      "url": "/tool-examples/sprite-frame-3.png",
      "width": 32,
      "height": 32,
      "bitDepth": 8,
      "bytes": 130,
      "sha256": "3822345a504c8931c59bb35d9bca4b9a7a09d4525b1c51f1f95d79427b0d6c41",
      "caption": "Frame 3, 32 × 32 RGBA.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "sprite-frame-2": {
      "url": "/tool-examples/sprite-frame-2.png",
      "width": 32,
      "height": 32,
      "bitDepth": 8,
      "bytes": 131,
      "sha256": "6c6350ca25d261945c5f3d07429476b369c277435fd0ba97cd2d725475303ede",
      "caption": "Frame 2, 32 × 32 RGBA.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "sprite-grid-output": {
      "url": "/tool-examples/sprite-grid-output.png",
      "width": 96,
      "height": 32,
      "bitDepth": 8,
      "bytes": 176,
      "sha256": "43db257429dbd92a55f8aa46d88849b9b1d81724850966921d38c403424b0a7c",
      "caption": "Actual spriteGrid output, 96 × 32.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "compress-input": {
      "url": "/tool-examples/compress-input.png",
      "width": 96,
      "height": 96,
      "bitDepth": 8,
      "bytes": 12063,
      "sha256": "9defb541a9a20f0185b19153adc9ca6ab2456a903a22938f958f9c475c978e58",
      "caption": "Original brick color fixture.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "compress-roundtrip": {
      "url": "/tool-examples/compress-roundtrip.png",
      "width": 96,
      "height": 96,
      "bitDepth": 8,
      "bytes": 12063,
      "sha256": "9defb541a9a20f0185b19153adc9ca6ab2456a903a22938f958f9c475c978e58",
      "caption": "Decoded lossless PNG result.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "compress-alpha": {
      "url": "/tool-examples/compress-alpha.png",
      "width": 32,
      "height": 32,
      "bitDepth": 8,
      "bytes": 105,
      "sha256": "33ae3e6a8adae05c6bec8def57d87b3b69ef9821d51cc79a22dad4d7e4e0a74e",
      "caption": "Half-transparent input.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "compress-matte": {
      "url": "/tool-examples/compress-matte.png",
      "width": 32,
      "height": 32,
      "bitDepth": 8,
      "bytes": 105,
      "sha256": "33309501a401613c0627b62d125fc3edc700acdb667d20cacb185037145be200",
      "caption": "White matte, before JPEG encoding.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "preview-base": {
      "url": "/tool-examples/preview-base.png",
      "width": 96,
      "height": 96,
      "bitDepth": 8,
      "bytes": 12063,
      "sha256": "9defb541a9a20f0185b19153adc9ca6ab2456a903a22938f958f9c475c978e58",
      "caption": "Original brick base color.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "preview-normal": {
      "url": "/tool-examples/preview-normal.png",
      "width": 96,
      "height": 96,
      "bitDepth": 8,
      "bytes": 13186,
      "sha256": "873b498390936cc588ec3fb544ce23f52555e8a3fe52d959d8565ae6ab1c12c9",
      "caption": "Generated tangent-space normal.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "preview-light-a": {
      "url": "/tool-examples/preview-light-a.png",
      "width": 160,
      "height": 160,
      "bitDepth": 8,
      "bytes": 20629,
      "sha256": "2a746040548e620e98bce30cfa5b1f2c8f2e042b172db8984f15838f6417032b",
      "caption": "Diagnostic sphere, light rotation 0.15.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    },
    "preview-light-b": {
      "url": "/tool-examples/preview-light-b.png",
      "width": 160,
      "height": 160,
      "bitDepth": 8,
      "bytes": 14895,
      "sha256": "b9ab8f457d5d036fe78946d8080f48f34b87ad732d9a6d1bb77131a98376203b",
      "caption": "Diagnostic sphere, light rotation 0.70.",
      "source": "Original deterministic diagnostic fixture; not a photograph or measured material"
    }
  }
}