{
  "format": "barocss-render-editor-native-scene",
  "version": 2,
  "profile": "canonical-native-lights",
  "documentId": "manual-point-study",
  "title": "Point light authoring",
  "revision": 0,
  "nativeDocument": {
    "schema": "barocss-cad-document",
    "version": 1,
    "profile": "direct-geometry",
    "documentId": "preview_document",
    "revision": 1,
    "units": {
      "length": "mm",
      "angle": "rad"
    },
    "nativeFrame": "authored-xyz-no-axis-conversion",
    "assets": [
      {
        "id": "preview-a",
        "revision": 2,
        "role": "authored-native-source",
        "sourceVersion": 0,
        "sourceFrame": "authored-xyz-no-axis-conversion",
        "source": "@model cloth_reference_981 {\n  version: 0;\n  length-unit: mm;\n  @surface #reference_panel {\n    type: nurbs;\n    degree-u: 1;\n    degree-v: 1;\n    knots-u: [-0,-0,5,5];\n    knots-v: [10,10,20,20];\n    control-points: [[[-700,-550,-700],[-700,-550,700]],[[700,-550,-700],[700,-550,700]]];\n    weights: [[1,1],[1,1]];\n  }\n}\n"
      },
      {
        "id": "preview_b",
        "revision": 7,
        "role": "authored-native-source",
        "sourceVersion": 0,
        "sourceFrame": "authored-xyz-no-axis-conversion",
        "source": "@model cloth_reference_981 {\n  version: 0;\n  length-unit: mm;\n  @surface #reference_panel {\n    type: nurbs;\n    degree-u: 1;\n    degree-v: 1;\n    knots-u: [-0,-0,5,5];\n    knots-v: [10,10,20,20];\n    control-points: [[[-700,-550,-700],[-700,-550,700]],[[700,-550,-700],[700,-550,700]]];\n    weights: [[1,1],[1,1]];\n  }\n}\n"
      }
    ],
    "bodies": [
      {
        "id": "body_preview_a",
        "name": "Surface A",
        "kind": "direct-geometry-object",
        "assetId": "preview-a",
        "geometryId": "reference_panel"
      },
      {
        "id": "body_preview_b",
        "name": "Surface B",
        "kind": "direct-geometry-object",
        "assetId": "preview_b",
        "geometryId": "reference_panel"
      }
    ],
    "features": [],
    "parameters": [],
    "constraints": [],
    "placements": [],
    "derivedCaches": []
  },
  "nativeOptions": {
    "native": {
      "sourceVersion": 0,
      "countU": 3,
      "countV": 3,
      "unitsPerMillimeter": 1
    },
    "basis": "authored-xyz-matches-rhyup",
    "bodyIds": [
      "body_preview_a",
      "body_preview_b"
    ]
  },
  "display": {
    "mmToSceneUnit": 0.001,
    "background": [
      0.025,
      0.04,
      0.06
    ],
    "camera": {
      "eye": [
        -0,
        2.6,
        4
      ],
      "target": [
        0,
        -0.55,
        0
      ],
      "up": [
        -0,
        2,
        0
      ],
      "fovYDegrees": 50,
      "near": 0.01,
      "far": 100
    },
    "visibleBodyIds": [
      "body_preview_a",
      "body_preview_b"
    ],
    "poses": [
      {
        "bodyId": "body_preview_a",
        "translationMM": [
          -900,
          -0,
          0
        ],
        "rotationXYZW": [
          -0,
          0,
          0,
          -1
        ],
        "scale": [
          1,
          1,
          1
        ]
      },
      {
        "bodyId": "body_preview_b",
        "translationMM": [
          900,
          -0,
          0
        ],
        "rotationXYZW": [
          -0,
          0,
          0,
          -1
        ],
        "scale": [
          1,
          1,
          1
        ]
      }
    ],
    "basis": "part-xyz-matches-rhyup"
  },
  "surfaceMaterials": [
    {
      "target": {
        "documentId": "preview_document",
        "documentRevision": 1,
        "bodyId": "body_preview_a",
        "assetId": "preview-a",
        "assetRevision": 2,
        "modelId": "cloth_reference_981",
        "geometryId": "reference_panel"
      },
      "material": {
        "format": "barocss-render-editor-material",
        "version": 0,
        "profile": "mesh-opaque-fragment-v0",
        "documentId": "native-material-a",
        "title": "Surface A material",
        "revision": 0,
        "shaderSource": "@shader #native_a { @fragment { color: #c7d5dd; } }",
        "uniforms": {}
      }
    },
    {
      "target": {
        "documentId": "preview_document",
        "documentRevision": 1,
        "bodyId": "body_preview_b",
        "assetId": "preview_b",
        "assetRevision": 7,
        "modelId": "cloth_reference_981",
        "geometryId": "reference_panel"
      },
      "material": {
        "format": "barocss-render-editor-material",
        "version": 0,
        "profile": "mesh-opaque-fragment-v0",
        "documentId": "native-material-b",
        "title": "Surface B material",
        "revision": 0,
        "shaderSource": "// Original Surface B blend.\n@shader #native_blend_b {\n  @uniform amount: float(0, 1, .25);\n  @fragment { color: mix(#ff0000, #0000ff, amount); }\n}\n",
        "uniforms": {
          "amount": 0.75
        }
      }
    }
  ],
  "lights": {
    "format": "barocss-gpu-native-point-lights",
    "version": 0,
    "profile": "native-world-point-linear-v0",
    "sourceId": "manual-point-study",
    "revision": 0,
    "ambientStrength": 0.2,
    "lights": [
      {
        "nodeId": "point-1",
        "label": "Point 1",
        "enabled": true,
        "positionScene": [
          -0,
          1,
          2
        ],
        "rangeScene": 10,
        "colorLinearRGB": [
          1,
          0.8,
          0.6
        ],
        "intensity": 0.7
      }
    ]
  }
}
