static Tesselator()
        {
            Cube        = new GameObject();
            Cube.Shader = GraphicsLoader.TextureShader;
            Cube.Mesh   = GraphicsLoader.Cube;

            BlockObject         = new BlockObject();
            BlockObject.Shader  = GraphicsLoader.TextureShader;
            BlockObject.Mesh    = new CubeMesh(Cube.Mesh.Vertices, Cube.Mesh.UVs, Cube.Mesh.Normals);
            BlockObject.Texture = TextureMap.GetTexture("dirt");
        }
        public static void DrawBlock(Block block, int x, int y, int z, PlayerCamera camera)
        {
            string textureName = TextureMap.GetTextureNameFromID(block.ID);

            if (textureName == "")
            {
                return;
            }

            Texture texture = TextureMap.GetTexture(textureName);

            Cube.Texture  = texture;
            Cube.Position = GridLatch.WTMGetBlock(x, y, z);
            Cube.Draw(camera);
        }
 //texturemap 获取texture2d
 public Texture2D Load(string path)
 {
     return(tm.GetTexture(path));
 }