# HG changeset patch # User Michael Pavone # Date 1713412224 25200 # Node ID fd04b139a73a5c7c317e32052bd1b6cf74047416 # Parent bfd09d3367ba351376a626a379a84b541e95a855 Add files forgotten in a previous commit diff -r bfd09d3367ba -r fd04b139a73a shaders/extra_window.f.glsl --- /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); +} diff -r bfd09d3367ba -r fd04b139a73a shaders/extra_window.v.glsl --- /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); +}