Skip to content

体素模型文件规范(Voxel Model File Specification)

Mouse edited this page Dec 28, 2019 · 8 revisions

model.json

{
    "Parent": "<父模型>",
    "Textures": {
        "<纹理名>": "<纹理URL或纹理名>"
    },
    "FullFaces": [
        "// 模型为完整的1x1正方形的面, 可选值为'Up','Down','North','South','East','West'",
        "Up", "Down", "North", "South", "East", "West"
    ],
    "Cubes": [
        {
            "From": [
                "<x>", "<y>", "<z>"
            ],
            "To": [
                "<x>", "<y>", "<z>"
            ],
            "Faces": {
                "// 立方体面,可选值为'Up','Down','North','South','East','West'":"",
                "Up": {
                    "Texture": "<纹理URL或纹理名>",
                    "UV": [
                        "<x>", "<y>", "<z>", "<w>"
                    ],
                    "RandomRotate": "<true/false>",
                    "CullFaces": [
                        "// 该面被剔除需要遮挡的面, 可选值为'Up','Down','North','South','East','West'",
                        "Up", "Down", "North", "South", "East", "West"
                    ]
                }
            }
        }
    ]
}