comparison shaders/crt.v.glsl @ 1392:4942da159194

Added a "subtle" CRT shader contributed by Anael Seghezzi
author Michael Pavone <pavone@retrodev.com>
date Sun, 04 Jun 2017 10:07:36 -0700
parents
children f3cca4b3f17a
comparison
equal deleted inserted replaced
1391:99d153d9e9ca 1392:4942da159194
1 #version 110
2
3 attribute vec2 pos;
4 varying vec2 texcoord;
5 varying vec2 screencoord;
6 uniform float width, height;
7
8 void main()
9 {
10 gl_Position = vec4(pos, 0.0, 1.0);
11 texcoord = sign(pos) * vec2(width/1024.0, height/-1024.0) + vec2(width/1024.0, height/1024.0);
12 screencoord = sign(pos);
13 }