Beispiel #1
0
 public bool Build()
 {
     mProgram = ES2Utils.CompileProgram(vs, fs);
     if (mProgram == 0)
     {
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public bool Build(string vs, string fs)
 {
     LoadVertexShaderSource(vs);
     LoadFragmentShaderSource(fs);
     mProgram = ES2Utils.CompileProgram(vs, fs);
     if (mProgram == 0)
     {
         return(false);
     }
     return(true);
 }