public void Insert(Content.Model9 model, Entity e, MetaModel metaResource, string metaName)
 {
     if (model.Texture != null)
     {
         RenderLeaf r;
         if (!Textures.TryGetValue(model.Texture, out r))
             Textures[model.Texture] = r = new RenderLeaf();
         r.Insert(model, e, metaResource, metaName);
     }
 }
 public void Insert(Content.Model9 model, Entity e, MetaModel metaResource, string metaName)
 {
     if (model.Texture != null)
     {
         RenderLeaf r;
         if (!Textures.TryGetValue(model.Texture, out r))
         {
             Textures[model.Texture] = r = new RenderLeaf();
         }
         r.Insert(model, e, metaResource, metaName);
     }
 }
        public void Insert(Content.Model9 model, Entity e, MetaModel metaResource, string metaName)
        {
            SplatTextureCombination stc = new SplatTextureCombination
            {
                BaseTexture = model.BaseTexture,
                MaterialTexture = model.MaterialTexture,
                SplatTexture = model.SplatTexture
            };

            RenderLeaf r;
            if (!TextureCombinations.TryGetValue(stc, out r))
                TextureCombinations[stc] = r = new RenderLeaf();
            r.Insert(model, e, metaResource, metaName);
        }
Exemplo n.º 4
0
        public void Insert(Content.Model9 model, Entity e, MetaModel metaResource, string metaName)
        {
            SplatTextureCombination stc = new SplatTextureCombination
            {
                BaseTexture     = model.BaseTexture,
                MaterialTexture = model.MaterialTexture,
                SplatTexture    = model.SplatTexture
            };

            RenderLeaf r;

            if (!TextureCombinations.TryGetValue(stc, out r))
            {
                TextureCombinations[stc] = r = new RenderLeaf();
            }
            r.Insert(model, e, metaResource, metaName);
        }