glsl-optimizer
glsl-optimizer copied to clipboard
[Android] artifacts with large shaders
I was working with a (too) large fragment shader, and due to method inlining this resulted in a very long main() function. On multiple (older, Andoid 5/6, gles2) android devices, this resulted in strange artifacts such as incorrect colors. Extracting part of the instructions to a separate function resolved the issue.
no problems on iOS or desktop.