Mercurial > repos > blastem
annotate shaders/extra_window.v.glsl @ 2489:fd04b139a73a
Add files forgotten in a previous commit
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 17 Apr 2024 20:50:24 -0700 |
parents | |
children | a0837ea61fda |
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; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 varying mediump vec2 texcoord; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 uniform mediump float width, height; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 void main() |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 { |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 gl_Position = vec4(pos, 0.0, 1.0); |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 texcoord = sign(pos) * vec2(0.5 * width, -0.5 * height) + vec2(0.5 * width, 0.5 * height); |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
10 } |