From bef22a39e5abd914eb0fa08b994186a588ee94ce Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 30 Dec 2018 21:10:44 -0800 Subject: Added support for GLES in addition to desktop GL --- shaders/default.v.glsl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'shaders/default.v.glsl') diff --git a/shaders/default.v.glsl b/shaders/default.v.glsl index 197fdbe..82a2439 100644 --- a/shaders/default.v.glsl +++ b/shaders/default.v.glsl @@ -1,11 +1,10 @@ -#version 110 attribute vec2 pos; -varying vec2 texcoord; -uniform float width, height; +varying mediump vec2 texcoord; +uniform mediump float width, height; void main() { gl_Position = vec4(pos, 0.0, 1.0); - texcoord = sign(pos) * vec2(width/1024.0, height/-1024.0) + vec2(width/1024.0, height/1024.0); + texcoord = sign(pos) * vec2(width / 1024.0, height / -1024.0) + vec2(width / 1024.0, height / 1024.0); } -- cgit v1.2.3