private void LoadShader(EffectPool pool) { // // Load the shader and set the material properties // if (shader != null) { shader.Dispose(); } System.IO.Stream strm = EmbeddedFile.GetStreamFullPath( "MHGameWork.TheWizards.Rendering.Files.DefaultModelShader.fx", game.EngineFiles.DebugFilesDirectory + "/DefaultModelShader.fx"); shader = BasicShader.LoadFromFXFile(game, strm, pool); //Shader = BasicShader.LoadFromFXFile( game, new GameFile( shaderFilename ), pool ); LoadParameters(); LoadTechniques(); SetTechniqueType(TechniqueType.Colored); }
//private IGameFile colladaModelShader; //private IGameFile lineRenderingShader; //public IGameFile ColladaModelShader //{ // get { return colladaModelShader; } // set { colladaModelShader = value; } //} public System.IO.Stream GetColladaModelShaderStream() { return(EmbeddedFile.GetStreamFullPath(Assembly.GetExecutingAssembly(), "MHGameWork.TheWizards.Core.Graphics.Files.ColladaModel.fx" , RootDirectory + "/DebugFiles/ColladaModel.fx")); }