Mercurial > repos > blastem
diff 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 | aa888682faa0 |
line wrap: on
line diff
--- a/shaders/extra_window.v.glsl Wed Apr 17 20:50:24 2024 -0700 +++ b/shaders/extra_window.v.glsl Wed Apr 17 21:54:44 2024 -0700 @@ -1,10 +1,11 @@ attribute vec2 pos; +attribute vec2 uv; varying mediump vec2 texcoord; uniform mediump float width, height; void main() { gl_Position = vec4(pos, 0.0, 1.0); - texcoord = sign(pos) * vec2(0.5 * width, -0.5 * height) + vec2(0.5 * width, 0.5 * height); + texcoord = uv; }