Exemple #1
0
        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));
        }
Exemple #2
0
 public static GLProgram CreateFromString(string vertexShader, string fragmentShader)
 {
     return(GLProgram.CreateFromStrings(new[] { vertexShader }, new[] { fragmentShader }));
 }