mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
added gles3 impl
This commit is contained in:
parent
00c96e3ac0
commit
78bffc2df5
21 changed files with 190 additions and 25 deletions
15
render/gles/shaders/gles3_tex_external.frag
Normal file
15
render/gles/shaders/gles3_tex_external.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 300 es
|
||||
|
||||
#extension GL_OES_EGL_image_external_essl3 : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
in vec2 v_texcoord;
|
||||
uniform samplerExternalOES texture0;
|
||||
uniform float alpha;
|
||||
|
||||
out vec4 frag_color;
|
||||
|
||||
void main() {
|
||||
frag_color = texture(texture0, v_texcoord) * alpha;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue