/// <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); }
/// <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); }