From a86a80e402d5cc58bc2bf248ddbf82d5fafa88a1 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 31 Oct 2018 00:32:21 +0100 Subject: view/renderer: simplify fragment shader --- src/view/renderer/default.fs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/view/renderer') 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); } -- cgit v1.2.3