diff shaders/default.v.glsl @ 1658:fa9ae059e4d3

Added support for GLES in addition to desktop GL
author Mike Pavone <pavone@retrodev.com>
date Sun, 30 Dec 2018 21:10:44 -0800
parents b1147418254a
children f3cca4b3f17a
line wrap: on
line diff
--- a/shaders/default.v.glsl	Sun Dec 30 19:40:32 2018 -0800
+++ b/shaders/default.v.glsl	Sun Dec 30 21:10:44 2018 -0800
@@ -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);
 }