diff shaders/default.v.glsl @ 1696:956c1cce05e2 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Thu, 24 Jan 2019 19:15:59 -0800
parents fa9ae059e4d3
children f3cca4b3f17a
line wrap: on
line diff
--- a/shaders/default.v.glsl	Tue Dec 25 11:12:26 2018 -0800
+++ b/shaders/default.v.glsl	Thu Jan 24 19:15:59 2019 -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);
 }