parseGLShaderSource

parse solid input string to different shaders

Use vertex for vertex shader, geometry for geometry shader, fragment for fragment shader

parseGLShaderSource
(
string src
,
string separator = "//###"
)

Examples

//###vert ... code of vertex shader ... //###frag ... cod of fragment shader ...

Meta