Translate Nvidia Cg shading source code to Open GL Shading source code