public Shader(string vs, string fs) { prID = GL.CreateProgram(); if (vs != null) { GraphicUtils.LoadShader(vs, ShaderType.VertexShader, prID, out vsID); } if (fs != null) { GraphicUtils.LoadShader(fs, ShaderType.FragmentShader, prID, out fsID); } GL.LinkProgram(prID); attributes = new Dictionary <string, int>(); }