summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 00:32:21 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 00:32:52 +0100
commita86a80e402d5cc58bc2bf248ddbf82d5fafa88a1 (patch)
tree2136f1ffe5881777ed9dba0772cd108649c9a235 /src
parent7b9d4673865e15a9182546ee32689edb9c402018 (diff)
downloadrpgedit-a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1.tar
rpgedit-a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1.zip
view/renderer: simplify fragment shader
Diffstat (limited to 'src')
-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);
}