2023-12-27 16:05:35 +08:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"identifier": "raw_floor_side",
|
|
|
|
"showcase": null,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"field": "height",
|
|
|
|
"data": "5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "length",
|
|
|
|
"data": "5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "is_left_sink",
|
|
|
|
"data": "False"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "is_right_sink",
|
|
|
|
"data": "False"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"skip": "height <= (0.7 if (is_left_sink or is_right_sink) else 0.0) or length == 0.0",
|
|
|
|
"vars": [
|
|
|
|
{
|
|
|
|
"field": "skip_long_side",
|
|
|
|
"data": "height <= 5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "skip_short_side",
|
|
|
|
"data": "height > 5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "uv_height",
|
|
|
|
"data": "height / 5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "uv_length",
|
|
|
|
"data": "length / 5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "left_sink",
|
|
|
|
"data": "0.7 if is_left_sink else 0.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "right_sink",
|
|
|
|
"data": "0.7 if is_right_sink else 0.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "uv_left_sink",
|
|
|
|
"data": "left_sink / 5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "uv_right_sink",
|
|
|
|
"data": "right_sink / 5.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"vertices": [
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "(0, 0, -left_sink)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "(length, 0, -right_sink)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "skip_long_side",
|
|
|
|
"data": "(0, 0, -5.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "skip_long_side",
|
|
|
|
"data": "(length, 0, -5.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "(0, 0, -height)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "(length, 0, -height)"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"faces": [
|
|
|
|
{
|
|
|
|
"skip": "skip_short_side",
|
|
|
|
"texture": "\"FloorSide\"",
|
|
|
|
"indices": [0, 2, 3, 1],
|
|
|
|
"uvs": [
|
|
|
|
"(0, 0)",
|
|
|
|
"(uv_height - uv_left_sink, 0)",
|
|
|
|
"(uv_height - uv_right_sink, uv_length)",
|
|
|
|
"(0, uv_length)"
|
|
|
|
],
|
2024-01-08 10:28:56 +08:00
|
|
|
"normals": null
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "skip_long_side",
|
|
|
|
"texture": "\"LightingFloorTopBorder\"",
|
|
|
|
"indices": [0, 2, 3, 1],
|
|
|
|
"uvs": [
|
|
|
|
"(0, 0)",
|
|
|
|
"(1 - uv_left_sink, 0)",
|
2024-01-10 22:37:41 +08:00
|
|
|
"(1 - uv_right_sink, uv_length)",
|
2023-12-27 16:05:35 +08:00
|
|
|
"(0, uv_length)"
|
|
|
|
],
|
2024-01-08 10:28:56 +08:00
|
|
|
"normals": null
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "skip_long_side",
|
|
|
|
"texture": "\"LightingFloorTopBorderless\"",
|
|
|
|
"indices": [2, 4, 5, 3],
|
|
|
|
"uvs": [
|
|
|
|
"(0, 0)",
|
|
|
|
"(uv_height - 1.0, 0)",
|
|
|
|
"(uv_height - 1.0, uv_length)",
|
|
|
|
"(0, uv_length)"
|
|
|
|
],
|
2024-01-08 10:28:56 +08:00
|
|
|
"normals": null
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instances": []
|
|
|
|
},
|
|
|
|
{
|
2025-01-18 19:09:32 +08:00
|
|
|
"identifier": "floor_4edges_bottom",
|
2023-12-27 16:05:35 +08:00
|
|
|
"showcase": null,
|
|
|
|
"params": [
|
|
|
|
{
|
2025-01-18 19:09:32 +08:00
|
|
|
"field": "top_left_pos",
|
|
|
|
"data": "(0.0, 0.0)"
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
2025-01-18 19:09:32 +08:00
|
|
|
"field": "top_right_pos",
|
|
|
|
"data": "(0.0, 5.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_left_pos",
|
|
|
|
"data": "(5.0, 0.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_right_pos",
|
|
|
|
"data": "(5.0, 5.0)"
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
],
|
2025-01-18 19:09:32 +08:00
|
|
|
"skip": "False",
|
2023-12-27 16:05:35 +08:00
|
|
|
"vars": [
|
|
|
|
{
|
2025-01-18 19:09:32 +08:00
|
|
|
"field": "top_left_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, top_left_pos))"
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
2025-01-18 19:09:32 +08:00
|
|
|
"field": "top_right_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, top_right_pos))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_left_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, bottom_left_pos))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_right_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, bottom_right_pos))"
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"vertices": [
|
|
|
|
{
|
|
|
|
"skip": "False",
|
2025-01-18 19:09:32 +08:00
|
|
|
"data": "top_left_pos + (0, )"
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
2025-01-18 19:09:32 +08:00
|
|
|
"data": "top_right_pos + (0, )"
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
2025-01-18 19:09:32 +08:00
|
|
|
"data": "bottom_left_pos + (0, )"
|
2023-12-27 16:05:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
2025-01-18 19:09:32 +08:00
|
|
|
"data": "bottom_right_pos + (0, )"
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"faces": [
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"texture": "\"FloorTopBorderless\"",
|
|
|
|
"indices": [0, 1, 3, 2],
|
|
|
|
"uvs": [
|
2025-01-18 19:09:32 +08:00
|
|
|
"top_left_uv",
|
|
|
|
"top_right_uv",
|
|
|
|
"bottom_right_uv",
|
|
|
|
"bottom_left_uv"
|
2023-12-27 16:05:35 +08:00
|
|
|
],
|
2024-01-08 10:28:56 +08:00
|
|
|
"normals": null
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instances": []
|
2025-01-18 19:09:32 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "floor_3edges_bottom",
|
|
|
|
"showcase": null,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"field": "top_pos",
|
|
|
|
"data": "(0.0, 0.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_pos",
|
|
|
|
"data": "(5.0, 0.0)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "tip_pos",
|
|
|
|
"data": "(2.5, 2.5)"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"skip": "False",
|
|
|
|
"vars": [
|
|
|
|
{
|
|
|
|
"field": "top_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, top_pos))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "bottom_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, bottom_pos))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "tip_uv",
|
|
|
|
"data": "tuple(map(lambda x: x / 5.0, tip_pos))"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"vertices": [
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "top_pos + (0, )"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "bottom_pos + (0, )"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"data": "tip_pos + (0, )"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"faces": [
|
|
|
|
{
|
|
|
|
"skip": "False",
|
|
|
|
"texture": "\"FloorTopBorderless\"",
|
|
|
|
"indices": [0, 2, 1],
|
|
|
|
"uvs": [
|
|
|
|
"top_uv",
|
|
|
|
"tip_uv",
|
|
|
|
"bottom_uv"
|
|
|
|
],
|
|
|
|
"normals": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"instances": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "floor_rectangle_bottom",
|
|
|
|
"showcase": null,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"field": "length",
|
|
|
|
"data": "5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "width",
|
|
|
|
"data": "5.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"skip": "length == 0.0 or width == 0.0",
|
|
|
|
"vars": [],
|
|
|
|
"vertices": [],
|
|
|
|
"faces": [],
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"identifier": "floor_4edges_bottom",
|
|
|
|
"skip": "False",
|
|
|
|
"params": {
|
|
|
|
"top_left_pos": "(0, 0)",
|
|
|
|
"top_right_pos": "(0, width)",
|
|
|
|
"bottom_left_pos": "(length, 0)",
|
|
|
|
"bottom_right_pos": "(length, width)"
|
|
|
|
},
|
|
|
|
"transform": "ident()"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"identifier": "floor_triangle_bottom",
|
|
|
|
"showcase": null,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"field": "length",
|
|
|
|
"data": "5.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "width",
|
|
|
|
"data": "2.5"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"field": "tip_offset",
|
|
|
|
"data": "2.5"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"skip": "length == 0.0",
|
|
|
|
"vars": [],
|
|
|
|
"vertices": [],
|
|
|
|
"faces": [],
|
|
|
|
"instances": [
|
|
|
|
{
|
|
|
|
"identifier": "floor_3edges_bottom",
|
|
|
|
"skip": "False",
|
|
|
|
"params": {
|
|
|
|
"top_pos": "(0, 0)",
|
|
|
|
"bottom_pos": "(length, 0)",
|
|
|
|
"tip_pos": "(tip_offset, width)"
|
|
|
|
},
|
|
|
|
"transform": "ident()"
|
|
|
|
}
|
|
|
|
]
|
2023-12-27 16:05:35 +08:00
|
|
|
}
|
|
|
|
]
|