Ejemplo n.º 1
0
    private static void BuildFaceLight(CubeFace face, Map map, Vector3i pos, MeshBuilder mesh)
    {
        Vector3i dir   = CubeBuilder.directions[(int)face];
        Color    color = BuildUtils.GetBlockLight(map, pos + dir);

        mesh.AddFaceColor(color);
    }
Ejemplo n.º 2
0
    private static void BuildCrossLight(Map map, Vector3i pos, MeshBuilder mesh)
    {
        Color color = BuildUtils.GetBlockLight(map, pos);

        mesh.AddColors(color, vertices.Length);
    }