Introduction - If you have any usage issues, please Google them yourself
GLSL optimizer
A C++ library that takes GLSL shaders, does some GPU-independent optimizations on them and outputs GLSL back. Optimizations are function inlining, dead code removal, copy propagation, constant folding, constant propagation, arithmetic optimizations and so on.
Apparently quite a few mobile platforms are pretty bad at optimizing GLSL shaders and unfortunately they also lack offline shader compilers. So using a GLSL optimizer offline before can make the shader run much faster on a platform like that. See performance numbers in this blog post.
Almost all actual code is Mesa 3D s GLSL compiler all this library does is spits out optimized GLSL back, and adds GLES type precision handling to the optimizer.
This GLSL optimizer is made for Unity s purposes and is built-in in Unity 3 and later.
GLSL Optimizer is licensed according to the terms of the MIT license.