gl: disable dithering with GLES 2.0
GLES 2.0 doesn't allow initialization of const arrays. Fixes MINIDUMP-1YP MINIDUMP-1YQ
This commit is contained in:
parent
09a1fea40f
commit
4fafa91506
|
@ -306,7 +306,7 @@ void main()
|
||||||
highp float w = 100000.0 * vtx_uv.z;
|
highp float w = 100000.0 * vtx_uv.z;
|
||||||
#endif
|
#endif
|
||||||
gl_FragDepth = log2(1.0 + max(w, -0.999999)) / 34.0;
|
gl_FragDepth = log2(1.0 + max(w, -0.999999)) / 34.0;
|
||||||
#endif
|
|
||||||
#if DITHERING == 1
|
#if DITHERING == 1
|
||||||
mediump float ditherTable[16] = float[](
|
mediump float ditherTable[16] = float[](
|
||||||
0.9375, 0.1875, 0.75, 0.,
|
0.9375, 0.1875, 0.75, 0.,
|
||||||
|
@ -319,6 +319,7 @@ void main()
|
||||||
color += r / ditherColorMax;
|
color += r / ditherColorMax;
|
||||||
// avoid rounding
|
// avoid rounding
|
||||||
color = floor(color * 255.) / 255.;
|
color = floor(color * 255.) / 255.;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
gl_FragColor = color;
|
gl_FragColor = color;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue