opengl: use a passthru shader for final wlr copy

This commit is contained in:
vaxerski
2023-03-04 14:59:27 +00:00
parent f678789dfd
commit b69f40815f
3 changed files with 27 additions and 5 deletions

View File

@@ -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;