public virtual TileData TileData(TileChunk tileChunk, int x, int y, TileData _tileData)
    {
        _tileData.RenderDataforCol = true;

        if (tileChunk.GetTile(x + 1, y).IsSolid() &&
            tileChunk.GetTile(x - 1, y).IsSolid() &&
            tileChunk.GetTile(x, y - 1).IsSolid() &&
            tileChunk.GetTile(x, y + 1).IsSolid())
        {
            _tileData.RenderDataforCol = false;
        }

        _tileData.AddVertex(new Vector3(x - 0.5f, y - 0.5f, 0));
        _tileData.AddVertex(new Vector3(x - 0.5f, y + 0.5f, 0));
        _tileData.AddVertex(new Vector3(x + 0.5f, y + 0.5f, 0));
        _tileData.AddVertex(new Vector3(x + 0.5f, y - 0.5f, 0));

        _tileData.AddUVs(TileUVs(tileChunk, x, y));

        _tileData.AddQuadTriangles();

        return(_tileData);
    }
 public virtual TileData UpdateUV(TileChunk Chunk, int x, int y, TileData _tileData)
 {
     _tileData.AddUVs(TileUVs(Chunk, x, y));
     return(_tileData);
 }