Please sign in to comment.
Add ETargetGLSL_140 and make it produce post 1.20 style texture lookups.
e.g. texture() and textureProj() instead of texture2D() and texture2DProj(). To do this I now (optionally) pass the ETargetVersion to Hlsl2Glsl_Initialize so it can choose what style of texture lookup functions initializeHLSLSupportLibrary() inserts into hlslSupportLib. This means once initialized, every call to Hlsl2Glsl_Translate() has to use the matching ETargetVersion.
- Loading branch information...
Showing with 310 additions and 128 deletions.
Oops, something went wrong.