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); }
public PMXSubset(IDrawable drawable, MaterialData data, int subsetId) { this.Drawable = drawable; this.MaterialInfo = MaterialInfo.FromMaterialData(this.Drawable, data); this.SubsetId = subsetId; }
public PMXSubset(IDrawable drawable, MaterialData data, int subsetId) { Drawable = drawable; MaterialInfo = MaterialInfo.FromMaterialData(Drawable, data); SubsetId = subsetId; }