Upgrade OpenGL backend to ES 3.0 (#995)

Co-authored-by: Tadej Novak <tadej@tano.si>
This commit is contained in:
mwilsnd
2023-04-13 16:24:45 -05:00
committed by GitHub
parent 569791b310
commit 4828cc7a8b
115 changed files with 760 additions and 1159 deletions

View File

@@ -1,7 +1,7 @@
uniform sampler2D u_texture;
varying vec2 v_tex;
varying float v_fade_opacity;
in vec2 v_tex;
in float v_fade_opacity;
#pragma mapbox: define lowp float opacity
@@ -9,9 +9,9 @@ void main() {
#pragma mapbox: initialize lowp float opacity
lowp float alpha = opacity * v_fade_opacity;
gl_FragColor = texture2D(u_texture, v_tex) * alpha;
fragColor = texture(u_texture, v_tex) * alpha;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor = vec4(1.0);
fragColor = vec4(1.0);
#endif
}