/// <summary> /// Load the model asset from content /// </summary> /// <param name="content"></param> public void LoadContent(RenderMethod renderMethod) { this.model = ContentLoader.models[assetName];//content.Load<Model>(assetName); modelExtra = model.Tag as ModelExtra; System.Diagnostics.Debug.Assert(modelExtra != null); ObtainBones(); ModelHelper.SetModelTechniques(model, "Bone", renderMethod); players = new List <BlendPlayer>(); }
public R_Model(string assetName, RenderMethod renderMethod = RenderMethod.Deferred) { this.model = ContentLoader.models[assetName]; ModelHelper.SetModelTechniques(model, "", renderMethod); }
public R_Model(Model model, RenderMethod renderMethod = RenderMethod.Deferred) { this.model = model; ModelHelper.SetModelTechniques(model, "", renderMethod); }