Mercurial > repos > blastem
annotate shaders/extra_window.f.glsl @ 2661:462e43f54abf
Properly emulate extra TH transitions due to direction changes for 6-button controllers. Breaks Golden Axe II input the same as hardware with a 6-button controller
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 05 Mar 2025 22:20:20 -0800 |
parents | fd04b139a73a |
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 uniform sampler2D texture; |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 |
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 |
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_FragColor = texture2D(texture, texcoord); |
fd04b139a73a
Add files forgotten in a previous commit
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 } |