Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1504:95b3a1a8b26c | 1692:5dacaef602a7 |
---|---|
1 #version 110 | |
2 | 1 |
3 attribute vec2 pos; | 2 attribute vec2 pos; |
4 varying vec2 texcoord; | 3 varying mediump vec2 texcoord; |
5 uniform float width, height; | 4 uniform mediump float width, height; |
6 | 5 |
7 void main() | 6 void main() |
8 { | 7 { |
9 gl_Position = vec4(pos, 0.0, 1.0); | 8 gl_Position = vec4(pos, 0.0, 1.0); |
10 texcoord = sign(pos) * vec2(width/1024.0, height/-1024.0) + vec2(width/1024.0, height/1024.0); | 9 texcoord = sign(pos) * vec2(width / 1024.0, height / -1024.0) + vec2(width / 1024.0, height / 1024.0); |
11 } | 10 } |