aras-p / hlsl2glslfork

HLSL to GLSL language translator based on ATI's HLSL2GLSL. Used in Unity.
Other
558 stars 143 forks source link

Rename variables with names of GLSL built-in functions #68

Closed baldurk closed 9 years ago

baldurk commented 9 years ago

The HLSL compiler will allow names of variables to be built-in functions even where they overlap with GLSL, but GLSL might be stricter. So we just rename every GLSL built-in. It should be a fairly rare occurence.