HLSL2GLSL is a command line tool and a library that translates shaders written in High Level Shader Language (HLSL) for Direct3D 9 into the OpenGL Shading Language (GLSL).
The project was forked in 2010 to fix issues and add features like OpenGL ES support.
[3] It is now used by Unity[4] and OGRE to translate Cg/HLSL shaders into GLSL for mobile platforms.
[5] The project has been criticized for generating low-quality, bloated code.
At the XDC2014, Matt Turner pointed out that many benchmark examples in Mesa's shader-db are generated by conversion and of poor quality.