From 2c02e6c4a0a467289b9d6b465467e95c71ead8b1 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 13 Aug 2021 20:42:35 -0400 Subject: [PATCH] [client] egl: add linear downscale filter shader --- client/renderers/EGL/CMakeLists.txt | 1 + client/renderers/EGL/shader/downscale_linear.frag | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 client/renderers/EGL/shader/downscale_linear.frag diff --git a/client/renderers/EGL/CMakeLists.txt b/client/renderers/EGL/CMakeLists.txt index 9c6c4a09..790408ee 100644 --- a/client/renderers/EGL/CMakeLists.txt +++ b/client/renderers/EGL/CMakeLists.txt @@ -65,6 +65,7 @@ build_shaders( shader/ffx_fsr1_rcas.frag shader/downscale.frag shader/downscale_lanczos2.frag + shader/downscale_linear.frag ) make_defines( diff --git a/client/renderers/EGL/shader/downscale_linear.frag b/client/renderers/EGL/shader/downscale_linear.frag new file mode 100644 index 00000000..c68c39f0 --- /dev/null +++ b/client/renderers/EGL/shader/downscale_linear.frag @@ -0,0 +1,12 @@ +#version 300 es +precision mediump float; + +in vec2 fragCoord; +out vec4 fragColor; + +uniform sampler2D texture; + +void main() +{ + fragColor = texture2D(texture, fragCoord); +}