Merge branch 'gles2-nv12-render-target' into 'master'

render: gles2: NV12 render buffers

See merge request wlroots/wlroots!5344
This commit is contained in:
Andri Yngvason 2026-06-03 09:15:17 +00:00
commit d3d2d0f668
13 changed files with 394 additions and 63 deletions

View file

@ -6,7 +6,8 @@ precision mediump float;
varying vec2 v_texcoord;
uniform vec4 color;
uniform mat4 color_matrix;
void main() {
gl_FragColor = color;
gl_FragColor = color_matrix * color;
}

View file

@ -9,7 +9,8 @@ precision mediump float;
varying vec2 v_texcoord;
uniform samplerExternalOES texture0;
uniform float alpha;
uniform mat4 color_matrix;
void main() {
gl_FragColor = texture2D(texture0, v_texcoord) * alpha;
gl_FragColor = color_matrix * texture2D(texture0, v_texcoord) * alpha;
}

View file

@ -7,7 +7,8 @@ precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
uniform float alpha;
uniform mat4 color_matrix;
void main() {
gl_FragColor = texture2D(tex, v_texcoord) * alpha;
gl_FragColor = color_matrix * texture2D(tex, v_texcoord) * alpha;
}

View file

@ -7,7 +7,8 @@ precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
uniform float alpha;
uniform mat4 color_matrix;
void main() {
gl_FragColor = vec4(texture2D(tex, v_texcoord).rgb, 1.0) * alpha;
gl_FragColor = color_matrix * vec4(texture2D(tex, v_texcoord).rgb, 1.0) * alpha;
}