diff options
author | vaxerski <[email protected]> | 2023-03-04 14:59:27 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-04 14:59:27 +0000 |
commit | b69f40815fb9302526858bbf699bc6942f8bbd3e (patch) | |
tree | e4e8abd22e3e47cabd4914bd34b6e3df5de74c84 /src/render/shaders/Textures.hpp | |
parent | f678789dfd4936f3b3420352f0d0b6fd5af9bdb5 (diff) | |
download | Hyprland-b69f40815fb9302526858bbf699bc6942f8bbd3e.tar.gz Hyprland-b69f40815fb9302526858bbf699bc6942f8bbd3e.zip |
opengl: use a passthru shader for final wlr copy
Diffstat (limited to 'src/render/shaders/Textures.hpp')
-rw-r--r-- | src/render/shaders/Textures.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/render/shaders/Textures.hpp b/src/render/shaders/Textures.hpp index 42ff8063..0bf168a4 100644 --- a/src/render/shaders/Textures.hpp +++ b/src/render/shaders/Textures.hpp @@ -122,6 +122,15 @@ void main() { gl_FragColor = pixColor * alpha; })#"; +inline const std::string TEXFRAGSRCRGBAPASSTHRU = R"#( +precision mediump float; +varying vec2 v_texcoord; // is in 0-1 +uniform sampler2D tex; + +void main() { + gl_FragColor = texture2D(tex, v_texcoord); +})#"; + inline const std::string TEXFRAGSRCRGBX = R"#( precision mediump float; varying vec2 v_texcoord; |