From: Bernie Innocenti Date: Thu, 27 Dec 2018 13:39:12 +0000 (+0700) Subject: Fix minor ES syntax issues in text.frag X-Git-Url: https://codewiz.org/gitweb?p=mandelwow.git;a=commitdiff_plain;h=62ff563d390c9aa2516eab4b0481ff0a48be7172;hp=3aaec48ccb98cb18f50898f5f76bd8cee19e8b90 Fix minor ES syntax issues in text.frag --- diff --git a/shaders/text.frag b/shaders/text.frag index 3df3010..194c841 100644 --- a/shaders/text.frag +++ b/shaders/text.frag @@ -1,4 +1,6 @@ #version 300 es +precision lowp float; + uniform sampler2D tex; uniform vec4 bgcolor; uniform vec4 fgcolor; @@ -7,5 +9,5 @@ in vec2 v_tex_coords; out vec4 f_color; void main() { - f_color = texture(tex, v_tex_coords).x == 0U ? bgcolor : fgcolor; + f_color = texture(tex, v_tex_coords).x == 0. ? bgcolor : fgcolor; }