diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 00:32:21 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 00:32:52 +0100 |
commit | a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1 (patch) | |
tree | 2136f1ffe5881777ed9dba0772cd108649c9a235 /src | |
parent | 7b9d4673865e15a9182546ee32689edb9c402018 (diff) | |
download | rpgedit-a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1.tar rpgedit-a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1.zip |
view/renderer: simplify fragment shader
Diffstat (limited to 'src')
-rw-r--r-- | src/view/renderer/default.fs | 6 |
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); } |