ValveSoftware/ToGL

Direct3D to OpenGL abstraction layer

C++

2,090

3 commits

updated Sep 1, 2015

See the code

README

TOGL

Direct3D -> OpenGL translation layer.

Taken directly from the DOTA2 source tree; supports:

  • Limited subset of Direct3D 9.0c
  • Bytecode-level HLSL -> GLSL translator
  • Some SM3 support: Multiple Render Targets, no Vertex Texture Fetch

This most likely won't build by itself and is provided as-is and completely unsupported. Feel free to use it for your reference, incorporate it into your projects or send us modifications.

Be wary that some parts are hardcoded to match Source Engine behavior; see CentroidMaskFromName() and ShadowDepthSamplerMaskFromName() in dxabstract.cpp.

Please refer to the LICENSE file for more information.

ValveSoftware/ToGL

Direct3D to OpenGL abstraction layer

C++

2,090

3 commits

updated Sep 1, 2015

See the code

README

TOGL

Direct3D -> OpenGL translation layer.

Taken directly from the DOTA2 source tree; supports:

  • Limited subset of Direct3D 9.0c
  • Bytecode-level HLSL -> GLSL translator
  • Some SM3 support: Multiple Render Targets, no Vertex Texture Fetch

This most likely won't build by itself and is provided as-is and completely unsupported. Feel free to use it for your reference, incorporate it into your projects or send us modifications.

Be wary that some parts are hardcoded to match Source Engine behavior; see CentroidMaskFromName() and ShadowDepthSamplerMaskFromName() in dxabstract.cpp.

Please refer to the LICENSE file for more information.

Significant stargazers

Lei Zhang

1,526 followers · starred Mar 2017

Will Hunt

219 followers · starred Mar 2014

Katelyn Gadd

498 followers · starred Mar 2014

Albert Vaca Cintora

157 followers · starred Mar 2014