changeset 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 bfd09d3367ba
children a0837ea61fda
files shaders/extra_window.f.glsl shaders/extra_window.v.glsl
diffstat 2 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shaders/extra_window.f.glsl	Wed Apr 17 20:50:24 2024 -0700
@@ -0,0 +1,9 @@
+
+uniform sampler2D texture;
+
+varying mediump vec2 texcoord;
+
+void main()
+{
+	gl_FragColor = texture2D(texture, texcoord);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shaders/extra_window.v.glsl	Wed Apr 17 20:50:24 2024 -0700
@@ -0,0 +1,10 @@
+
+attribute vec2 pos;
+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);
+}