projects
/
mandelwow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aaec48
)
Fix minor ES syntax issues in text.frag
author
Bernie Innocenti
<codewiz@google.com>
Thu, 27 Dec 2018 13:39:12 +0000
(20:39 +0700)
committer
Bernie Innocenti
<codewiz@google.com>
Thu, 27 Dec 2018 13:39:12 +0000
(20:39 +0700)
shaders/text.frag
patch
|
blob
|
history
diff --git
a/shaders/text.frag
b/shaders/text.frag
index 3df3010bb7688d074034f79a8dc8fb2129c49ead..194c8415c0ee134485b2868e703dd14dbda8b1eb 100644
(file)
--- 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 == 0
U
? bgcolor : fgcolor;
+ f_color = texture(tex, v_tex_coords).x == 0
.
? bgcolor : fgcolor;
}