Mercurial > repos > blastem
annotate shaders/extra_window.v.glsl @ 2688:b42f00a3a937 default tip
Fix default target. Ensure m68k.h and z80.h are built before anything else when no dep info is available
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 31 Mar 2025 21:06:18 -0700 |
parents | aa888682faa0 |
children |
rev | line source |
---|---|
2489
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 attribute vec2 pos; |
2490
a0837ea61fda
Get static images working in GL mode
Michael Pavone <pavone@retrodev.com>
parents:
2489
diff
changeset
|
3 attribute vec2 uv; |
2489
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 varying mediump vec2 texcoord; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 uniform mediump float width, height; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 void main() |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 { |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 gl_Position = vec4(pos, 0.0, 1.0); |
2507
aa888682faa0
Fix debug windows not filling window in GL mode. Thanks Sik!
Michael Pavone <pavone@retrodev.com>
parents:
2490
diff
changeset
|
10 texcoord = vec2(width * uv[0], height * uv[1]); |
2489
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 } |