glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

emscripten port of GLSL optimizer based on Mesa's GLSL compiler. Used in Unity for mobile shader optimization.

Results 3 glsl-optimizer issues
Sort by recently updated
recently updated
newest added

I dont know exactly how, but after optimizing multiple shaders, the optimizer return " " without error. you can reproduce the issue with this url http://osgjs.org/examples/pbr/?GLSLOptimizer=1 There are extra info...

The compiler won't accept a constant if it's initialized with an expression that calls a built-in function, but it should. Example fragment shader code: ``` const float x = sqrt(2.0);...

I am trying to optimize this vertex shader ``` uniform mat4 ModelViewMatrix; uniform vec3 Position; uniform vec2 Size; #if __VERSION__ >= 330 layout(location = 0) in vec2 Corner; layout(location =...