示例#1
0
            public ISurfaceShader As(string programName)
            {
                var program = new ReloadableShaderProgram(shaders);

                manager.Add(program, programName);
                return(program);
            }
示例#2
0
        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");
        }