private static void Import(ShaderFile file, string param) { foreach (var extension in param.Split(' ')) { file.GLSLExtensions.Add(ShaderExtensions.Extensions[extension]); } }
/// <summary> /// Creating the collection with shader files. /// </summary> /// <param name="vertex"></param> /// <param name="fragment"></param> /// <param name="geometry"></param> public ShaderFileCollection(ShaderFile vertex, ShaderFile fragment, ShaderFile geometry = default) { Vertex = new [] { vertex }; if (geometry != null) { Geometry = new[] { geometry } } ; else { Geometry = default; } Fragment = new [] { fragment }; }