mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
Merge branch 'gles2-nv12-render-target' into 'master'
render: gles2: NV12 render buffers See merge request wlroots/wlroots!5344
This commit is contained in:
commit
d3d2d0f668
13 changed files with 394 additions and 63 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue