private void SetupPickingShader(GL_ControlModern control)
        {
            //solid shader
            var solidColorFrag = new GL_EditorFramework.GL_Core.FragmentShader(
                @"#version 330
                        uniform vec4 color;
                        void main(){
                            gl_FragColor = color;
                        }");
            var solidColorVert = new GL_EditorFramework.GL_Core.VertexShader(
                VertexShaderPicking);

            pickingShader = new GL_EditorFramework.GL_Core.ShaderProgram(
                solidColorFrag, solidColorVert, control);
        }
 public ShaderProgram(FragmentShader frag, VertexShader vert, GeomertyShader geom)
 {
     LoadShaders(new Shader[] { vert, frag, geom });
 }
 public ShaderProgram(FragmentShader frag, VertexShader vert)
 {
     LoadShaders(new Shader[] { vert, frag });
 }