Mercurial > repos > blastem
comparison shaders/extra_window.v.glsl @ 2490:a0837ea61fda
Get static images working in GL mode
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 17 Apr 2024 21:54:44 -0700 |
parents | fd04b139a73a |
children |
comparison
equal
deleted
inserted
replaced
2489:fd04b139a73a | 2490:a0837ea61fda |
---|---|
1 | 1 |
2 attribute vec2 pos; | 2 attribute vec2 pos; |
3 attribute vec2 uv; | |
3 varying mediump vec2 texcoord; | 4 varying mediump vec2 texcoord; |
4 uniform mediump float width, height; | 5 uniform mediump float width, height; |
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(0.5 * width, -0.5 * height) + vec2(0.5 * width, 0.5 * height); | 10 texcoord = uv; |
10 } | 11 } |