Mercurial > repos > blastem
comparison shaders/default.v.glsl @ 1658:fa9ae059e4d3
Added support for GLES in addition to desktop GL
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Dec 2018 21:10:44 -0800 |
parents | b1147418254a |
children | f3cca4b3f17a |
comparison
equal
deleted
inserted
replaced
1657:774096402918 | 1658:fa9ae059e4d3 |
---|---|
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 } |