public void atachShaders(String vertexShaderFile, String fragmentShaderFile) { vertexShader = new Shader(vertexShaderFile, ShaderType.VertexShader); fragmentShader = new Shader(fragmentShaderFile, ShaderType.FragmentShader); vertexShader.atachToProgram(IDprogram); fragmentShader.atachToProgram(IDprogram); Link(); var output = GL.GetProgramInfoLog(IDprogram); System.Diagnostics.Debugger.Log(1, "Program link result", output); GenBuffers(); }
public void atachShaders(Shader vertex, Shader fragment) { vertexShader = vertex; fragmentShader = fragment; vertexShader.atachToProgram(IDprogram); fragmentShader.atachToProgram(IDprogram); Link(); var output = GL.GetProgramInfoLog(IDprogram); System.Diagnostics.Debugger.Log(1, "Program link result", output); GenBuffers(); }