view shaders/default.v.glsl @ 816:7ed55a361e79

Use binary mode for reading shaders and config files so we actually get the number of bytes we expect
author Michael Pavone <pavone@retrodev.com>
date Mon, 27 Jul 2015 23:49:14 -0700
parents b7b7a1cab44a
children b1147418254a
line wrap: on
line source

#version 110

attribute vec2 pos;
varying vec2 texcoord;
uniform float width;

void main()
{
	gl_Position = vec4(pos, 0.0, 1.0);
	texcoord = sign(pos) * vec2(width/1024.0, 240.0/-512.0) + vec2(width/1024.0, 240.0/512.0);
}