Пример #1
0
 /// <summary>
 /// Load a shader from string source
 /// </summary>
 /// <param name="vertexSource"></param>
 /// <param name="fragmentSource"></param>
 public Shader(string[] vertexSource, string[] fragmentSource)
 {
     id = ShaderUtils.LoadShader(vertexSource, fragmentSource);
 }
Пример #2
0
 /// <summary>
 /// Load a shader from a file
 /// </summary>
 /// <param name="vertexPath"></param>
 /// <param name="fragmentPath"></param>
 public Shader(string vertexPath, string fragmentPath)
 {
     id = ShaderUtils.LoadShader(vertexPath, fragmentPath);
 }