annotate shaders/extra_window.f.glsl @ 2514:50cff4c9286e

Fix crash in render_fill_rect in GL mode with no static images
author Michael Pavone <pavone@retrodev.com>
date Sat, 31 Aug 2024 22:41:17 -0700
parents fd04b139a73a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 }