This code translates Microsoft High-Level Shader Language (HLSL) shaders from legacy Direct3D 9 to OpenGL GL Shading Language (GLSL) shaders. The code that was opened up doesn't compile as-is but can be adapted to other game code-bases in a fairly easy manner. The OpenGL GLSL target at the end of the translation is for OpenGL 3.1. The code takes precautions to ensure that "clean" GLSL code is generated.
This code has been opened up on UnknownWorlds' GitHub. This isn't the first time we have seen an open-source HLSL to GLSL translator, but hopefully it will help some game studios, enthusiasts, and those learning HLSL/GLSL.