summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/renderer/default.fs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/view/renderer/default.fs b/src/view/renderer/default.fs
index 351fed7..2c8ad15 100644
--- a/src/view/renderer/default.fs
+++ b/src/view/renderer/default.fs
@@ -1,8 +1,10 @@
-varying highp vec2 vTextureCoord;
+precision highp float;
+
+varying vec2 vTextureCoord;
uniform sampler2D uSampler;
void main(void) {
- gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y));
+ gl_FragColor = texture2D(uSampler, vTextureCoord);
}