Ejemplo n.º 1
0
        private void LoadTextures(string materialDirectory)
        {
            foreach (var textureSlot in textureSlots)
            {
                string path = Path.Combine(materialDirectory, textureSlot.FilePath);

                try
                {
                    Texture newTexture = new Texture(path);//Texture.Load(path);
                    textures.Add(newTexture);
                }
                catch (Exception e)
                {
                    Log.Fatal(e.Message);
                }
            }
        }
Ejemplo n.º 2
0
 public void AddTexture(Texture t)
 {
     textures.Add(t);
 }