Translate a C++ type into a GLSL one.