593cf5a6b5
The two functions were mostly the same. We can look at the shader header info to determine if it's a vertex or fragment shader.