public ISurfaceShader As(string programName) { var program = new ReloadableShaderProgram(shaders); manager.Add(program, programName); return(program); }
public ShaderManager() { var loader = ShaderFileLoader.CreateDefault("data/shaders"); var man = new amulware.Graphics.ShaderManagement.ShaderManager(); man.Add(loader.Load("")); this.Primitives = man.MakeShaderProgram("primitives"); this.UVColor = man.MakeShaderProgram("uvcolor"); }