comparison shaders/default.v.glsl @ 505:b7b7a1cab44a

The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
author Michael Pavone <pavone@retrodev.com>
date Mon, 06 Jan 2014 22:54:05 -0800
parents 251fe7a75a14
children b1147418254a
comparison
equal deleted inserted replaced
504:7b0df1aaf384 505:b7b7a1cab44a
1 #version 110 1 #version 110
2 2
3 attribute vec2 pos; 3 attribute vec2 pos;
4 varying vec2 texcoord; 4 varying vec2 texcoord;
5 uniform float width;
5 6
6 void main() 7 void main()
7 { 8 {
8 gl_Position = vec4(pos, 0.0, 1.0); 9 gl_Position = vec4(pos, 0.0, 1.0);
9 texcoord = sign(pos) * vec2(320.0/1024.0, 240.0/-512.0) + vec2(320.0/1024.0, 240.0/512.0); 10 texcoord = sign(pos) * vec2(width/1024.0, 240.0/-512.0) + vec2(width/1024.0, 240.0/512.0);
10 } 11 }