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
12
render/gles/shaders/gles3_common.vert
Normal file
12
render/gles/shaders/gles3_common.vert
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 300 es
|
||||
|
||||
uniform mat3 proj;
|
||||
uniform mat3 tex_proj;
|
||||
in vec2 pos;
|
||||
out vec2 v_texcoord;
|
||||
|
||||
void main() {
|
||||
vec3 pos3 = vec3(pos, 1.0);
|
||||
gl_Position = vec4(pos3 * proj, 1.0);
|
||||
v_texcoord = (pos3 * tex_proj).xy;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue