# 2026/09/19: ModelYAML — 形状・モデル内部のNode・初期位置
# 1mのBoxメッシュを三つのNodeで参照する
# PBR外観と物理条件はscene.yamlから適用する
"type": "webg-model-asset"
"version": "1.0"
"meta":
  "name": "Three boxes and a floor"
"materials":
  -
    "id": "box-material"
    "shaderParams":
      "color": [0.2, 0.65, 0.9, 1]
      "use_texture": 0
      "has_bone": 0
      "metallic": 0.3
      "roughness": 0.3
      "specular": 1
  -
    "id": "floor-material"
    "shaderParams":
      "color": [0.2, 0.25, 0.32, 1]
      "use_texture": 0
      "has_bone": 0
      "metallic": 0
      "roughness": 0.55
      "specular": 0.7
"meshes":
  -
    "id": "box-mesh"
    "material": "box-material"
    "geometry":
      "vertexCount": 24
      "polygonCount": 12
      "positions": [-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5]
      "uvs": [0.375, 0.6959132760153036, 0.375, 0.3040867239846964, 0.125, 0.3040867239846964, 0.125, 0.6959132760153036, 0.375, 0.6959132760153036, 0.125, 0.6959132760153036, 0.875, 0.6959132760153036, 0.625, 0.6959132760153036, 0.125, 0.6959132760153036, 0.125, 0.3040867239846964, 0.875, 0.3040867239846964, 0.875, 0.6959132760153036, 0.375, 0.6959132760153036, 0.625, 0.6959132760153036, 0.625, 0.3040867239846964, 0.375, 0.3040867239846964, 0.375, 0.3040867239846964, 0.625, 0.3040867239846964, 0.875, 0.3040867239846964, 0.125, 0.3040867239846964, 0.625, 0.6959132760153036, 0.875, 0.6959132760153036, 0.875, 0.3040867239846964, 0.625, 0.3040867239846964]
      "indices": [3, 2, 1, 3, 1, 0, 7, 6, 5, 7, 5, 4, 11, 10, 9, 11, 9, 8, 15, 14, 13, 15, 13, 12, 19, 18, 17, 19, 17, 16, 23, 22, 21, 23, 21, 20]
      "polygonLoops":
        - [3, 2, 1, 0]
        - [7, 6, 5, 4]
        - [11, 10, 9, 8]
        - [15, 14, 13, 12]
        - [19, 18, 17, 16]
        - [23, 22, 21, 20]
      "altVertices": []
  -
    "id": "floor-mesh"
    "material": "floor-material"
    "geometry":
      "vertexCount": 24
      "polygonCount": 12
      "positions": [-4, 0.15, -3, -4, -0.15, -3, 4, -0.15, -3, 4, 0.15, -3, -4, 0.15, -3, 4, 0.15, -3, 4, 0.15, 3, -4, 0.15, 3, 4, 0.15, -3, 4, -0.15, -3, 4, -0.15, 3, 4, 0.15, 3, -4, 0.15, -3, -4, 0.15, 3, -4, -0.15, 3, -4, -0.15, -3, -4, -0.15, -3, -4, -0.15, 3, 4, -0.15, 3, 4, -0.15, -3, -4, 0.15, 3, 4, 0.15, 3, 4, -0.15, 3, -4, -0.15, 3]
      "uvs": [0.39758361765043326, 0.5095464333425304, 0.39758361765043326, 0.49045356665746964, 0.10241638234956672, 0.49045356665746964, 0.10241638234956672, 0.5095464333425304, 0.39758361765043326, 0.5095464333425304, 0.10241638234956672, 0.5095464333425304, 0.8975836176504333, 0.5095464333425304, 0.6024163823495667, 0.5095464333425304, 0.10241638234956672, 0.5095464333425304, 0.10241638234956672, 0.49045356665746964, 0.8975836176504333, 0.49045356665746964, 0.8975836176504333, 0.5095464333425304, 0.39758361765043326, 0.5095464333425304, 0.6024163823495667, 0.5095464333425304, 0.6024163823495667, 0.49045356665746964, 0.39758361765043326, 0.49045356665746964, 0.39758361765043326, 0.49045356665746964, 0.6024163823495667, 0.49045356665746964, 0.8975836176504333, 0.49045356665746964, 0.10241638234956672, 0.49045356665746964, 0.6024163823495667, 0.5095464333425304, 0.8975836176504333, 0.5095464333425304, 0.8975836176504333, 0.49045356665746964, 0.6024163823495667, 0.49045356665746964]
      "indices": [3, 2, 1, 3, 1, 0, 7, 6, 5, 7, 5, 4, 11, 10, 9, 11, 9, 8, 15, 14, 13, 15, 13, 12, 19, 18, 17, 19, 17, 16, 23, 22, 21, 23, 21, 20]
      "polygonLoops":
        - [3, 2, 1, 0]
        - [7, 6, 5, 4]
        - [11, 10, 9, 8]
        - [15, 14, 13, 12]
        - [19, 18, 17, 16]
        - [23, 22, 21, 20]
      "altVertices": []
"nodes":
  -
    "id": "floor-node"
    "name": "floor-node"
    "parent": null
    "mesh": "floor-mesh"
    "transform":
      "translation": [0, -0.15, 0]
      "rotation": [0, 0, 0, 1]
      "scale": [1, 1, 1]
  -
    "id": "box-node-1"
    "name": "box-node-1"
    "parent": null
    "mesh": "box-mesh"
    "transform":
      "translation": [-2, 2, 0]
      "rotation": [0, 0, 0, 1]
      "scale": [1, 1, 1]
  -
    "id": "box-node-2"
    "name": "box-node-2"
    "parent": null
    "mesh": "box-mesh"
    "transform":
      "translation": [0, 3, 0]
      "rotation": [0, 0, 0, 1]
      "scale": [1, 1, 1]
  -
    "id": "box-node-3"
    "name": "box-node-3"
    "parent": null
    "mesh": "box-mesh"
    "transform":
      "translation": [2, 4, 0]
      "rotation": [0, 0, 0, 1]
      "scale": [1, 1, 1]
