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

[Android] artifacts with large shaders

Open lwky opened this issue 4 years ago • 0 comments

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.

lwky avatar Jun 11 '20 11:06 lwky