diff shaders/default.f.glsl @ 1692:5dacaef602a7 segacd

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Jan 2019 00:58:08 -0800
parents fa9ae059e4d3
children f3cca4b3f17a
line wrap: on
line diff
--- a/shaders/default.f.glsl	Tue Dec 19 00:49:13 2017 -0800
+++ b/shaders/default.f.glsl	Sat Jan 05 00:58:08 2019 -0800
@@ -1,13 +1,12 @@
-#version 110
 
 uniform sampler2D textures[2];
 
-varying vec2 texcoord;
+varying mediump vec2 texcoord;
 
 void main()
 {
-	vec2 modifiedCoord0 = vec2(texcoord.x, (floor(texcoord.y * 512.0 + 0.25) + 0.5)/512.0);
-	vec2 modifiedCoord1 = vec2(texcoord.x, (floor(texcoord.y * 512.0 - 0.25) + 0.5)/512.0);
+	mediump vec2 modifiedCoord0 = vec2(texcoord.x, (floor(texcoord.y * 512.0 + 0.25) + 0.5)/512.0);
+	mediump vec2 modifiedCoord1 = vec2(texcoord.x, (floor(texcoord.y * 512.0 - 0.25) + 0.5)/512.0);
 	gl_FragColor = mix(
 		texture2D(textures[1], modifiedCoord1),
 		texture2D(textures[0], modifiedCoord0),