コード例 #1
0
    public static Color32 GetBlockLight(int x, int y, int z)
    {
        byte light = lightOutput[MapLight.GetLightSafe(x, y, z)];
        byte sun   = lightOutput[MapLight.GetSunlightSafe(x, y, z)];

        return(new Color32(light, light, light, sun));
    }
コード例 #2
0
    public static Color32 GetBlockLight(Vector3i pos)
    {
        byte light = lightOutput[MapLight.GetLightSafe(pos.x, pos.y, pos.z)];
        byte sun   = lightOutput[MapLight.GetSunlightSafe(pos.x, pos.y, pos.z)];

        return(new Color32(light, light, light, sun));
    }