101 lines
2.7 KiB
JavaScript
101 lines
2.7 KiB
JavaScript
// GENERATED by tools/blender/build_yard_assets.py — do NOT hand-edit.
|
|
// Regenerate: blender -b -P tools/blender/build_yard_assets.py
|
|
//
|
|
// SPRINT15 gate 1.2 — the wire between the factory and the sim.
|
|
// adoptAnchor only carries a baked rating_hint to anchors that name a
|
|
// GLB `node`; a plain-JSON anchor (every shipped sail post) defaulted
|
|
// to `?? 1` regardless of the bake, and nobody could see the
|
|
// disagreement. This module is the factory's bakes, resolvable by
|
|
// anchor TYPE at runtime: `types` are unambiguous (every rated node
|
|
// of that type agrees), `ambiguous` lists the disagreements so the
|
|
// runtime can refuse to guess. ratings.js is the reader; e.test.js
|
|
// pins runtime === this module === the GLBs, so none of the three
|
|
// can drift from the others silently again.
|
|
export const FACTORY_ANCHOR_RATINGS = Object.freeze({
|
|
"ambiguous": {
|
|
"tree": {
|
|
"variants": [
|
|
{
|
|
"rating_hint": 1.0,
|
|
"sources": [
|
|
"tree_gum_01/branch_anchor_01",
|
|
"tree_gum_02/branch_anchor_01"
|
|
]
|
|
},
|
|
{
|
|
"rating_hint": 0.95,
|
|
"sources": [
|
|
"tree_jacaranda_01/branch_anchor_01"
|
|
]
|
|
},
|
|
{
|
|
"rating_hint": 0.88,
|
|
"sources": [
|
|
"tree_gum_01/branch_anchor_02",
|
|
"tree_gum_02/branch_anchor_02"
|
|
]
|
|
},
|
|
{
|
|
"rating_hint": 0.76,
|
|
"sources": [
|
|
"tree_gum_01/branch_anchor_03"
|
|
]
|
|
},
|
|
{
|
|
"rating_hint": 0.52,
|
|
"sources": [
|
|
"tree_jacaranda_01/branch_anchor_02"
|
|
]
|
|
},
|
|
{
|
|
"rating_hint": 0.4,
|
|
"sources": [
|
|
"tree_jacaranda_01/branch_anchor_03"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"types": {
|
|
"carport": {
|
|
"collateral": "carport",
|
|
"rating_hint": 0.22,
|
|
"sources": [
|
|
"carport_01/beam_anchor_01",
|
|
"carport_01/beam_anchor_02"
|
|
]
|
|
},
|
|
"carport_post": {
|
|
"collateral": "carport",
|
|
"rating_hint": 0.3,
|
|
"sources": [
|
|
"carport_01/post_anchor_01",
|
|
"carport_01/post_anchor_02"
|
|
]
|
|
},
|
|
"house": {
|
|
"collateral": "gutter",
|
|
"rating_hint": 0.35,
|
|
"sources": [
|
|
"house_yardside/fascia_anchor_01",
|
|
"house_yardside/fascia_anchor_02",
|
|
"house_yardside/fascia_anchor_03"
|
|
]
|
|
},
|
|
"post": {
|
|
"rating_hint": 1.0,
|
|
"sources": [
|
|
"sail_post/top_anchor"
|
|
]
|
|
},
|
|
"swing_frame": {
|
|
"collateral": "swing_set",
|
|
"rating_hint": 0.45,
|
|
"sources": [
|
|
"swing_set_01/frame_anchor_01",
|
|
"swing_set_01/frame_anchor_02"
|
|
]
|
|
}
|
|
}
|
|
});
|