public static GLProgram CreateFromFiles(string[] vertexShader, string[] fragmentShader) { var vsText = vertexShader.Select(vs => LoadFile(vs)).ToArray(); var fsText = fragmentShader.Select(fs => LoadFile(fs)).ToArray(); return(GLProgram.CreateFromStrings(vsText, fsText)); }
public static GLProgram CreateFromString(string vertexShader, string fragmentShader) { return(GLProgram.CreateFromStrings(new[] { vertexShader }, new[] { fragmentShader })); }