- {l Code}: {l Select All Code}
git clone https://github.com/aras-p/glsl-optimizer
cd glsl-optimizer
cmake .
make -j8 # Use double your amount of CPU cores (I have A8-4500M quad core) in place of 8
sudo cp glsl_compiler glslopt glsl_test /usr/bin
But then when I try to optimize the billboard.frag shader in stk-code/data/shaders/ using glslopt -f billboard.frag I get this error.
- {l Code}: {l Select All Code}
Failed to compile billboard.frag:
(3,1): error: `in' qualifier in declaration of `uv' only valid for function parameters in GLSL 1.10
(4,1): error: `out' qualifier in declaration of `FragColor' only valid for function parameters in GLSL 1.10
(8,15): error: no matching function for call to `texture(sampler2D, vec2)'; candidates are:
This is my first post on this forum so sorry if I have put it in the wrong place