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);
        }
예제 #2
0
 public ShaderProgram(FragmentShader frag, VertexShader vert, GeomertyShader geom)
 {
     LoadShaders(new Shader[] { vert, frag, geom });
 }
예제 #3
0
 public ShaderProgram(FragmentShader frag, VertexShader vert)
 {
     LoadShaders(new Shader[] { vert, frag });
 }