示例#1
0
        public AssimpSubset(RenderContext context, ISubresourceLoader loader, IDrawable drawable, Scene scene, int index)
        {
            this.SubsetId  = index;
            this.context   = context;
            this.DoCulling = false;
            this.Drawable  = drawable;
            Material material = scene.Materials[scene.Meshes[index].MaterialIndex];

            this.mesh = scene.Meshes[index];
            Initialize();
            this.MaterialInfo = MaterialInfo.FromMaterialData(drawable, material, context, loader);
        }
示例#2
0
 public PMXSubset(IDrawable drawable, MaterialData data, int subsetId)
 {
     this.Drawable     = drawable;
     this.MaterialInfo = MaterialInfo.FromMaterialData(this.Drawable, data);
     this.SubsetId     = subsetId;
 }
示例#3
0
 public PMXSubset(IDrawable drawable, MaterialData data, int subsetId)
 {
     Drawable     = drawable;
     MaterialInfo = MaterialInfo.FromMaterialData(Drawable, data);
     SubsetId     = subsetId;
 }