Mercurial > repos > blastem
diff shaders/default.v.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.v.glsl Tue Dec 19 00:49:13 2017 -0800 +++ b/shaders/default.v.glsl Sat Jan 05 00:58:08 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); }