opengl: use a passthru shader for final wlr copy
This commit is contained in:
parent
f678789dfd
commit
b69f40815f
3 changed files with 27 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue