HLSL2GLSL explained

Developer:various[1]
Genre:CGI tool
License:BSD License

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).[2]

HLSL2GLSL was originally released by ATI Technologies under a BSD License. The last release was v0.9 from 2006. HLSL2GLSL is not part of GPUOpen.

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.[6]

External links

Notes and References

  1. Web site: license. GitHub.
  2. Web site: HLSL2GLSL v0.9 DirectX 9 HLSL to OpenGL Shading Language translator. OpenGL.org. 2006-11-29. 2018-12-16. https://web.archive.org/web/20181216074244/https://www.opengl.org/news/permalink/hlsl2glsl_v09_hlsl_to_opengl_shading_language_translator/. dead.
  3. Web site: Unity. hlsl2glslfork. GitHub. 2011-05-18.
  4. Web site: Compiling HLSL into GLSL in Unity 3. 2011-01-05.
  5. Web site: Ogre forums: Added Cg support to the ES 2.x render system. 2011-01-05.
  6. .