Beispiel #1
0
 public VAO LoadVao(string name)
 {
     if (_shaders.ContainsKey(name))
     {
         return(_meshes[name]);
     }
     else
     {
         var mesh = ObjLoader.LoadAsVAO(ContentDirectory + MeshFolder + name + ".obj");
         _meshes.Add(name, mesh);
         return(mesh);
     }
 }