mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
render/gles2: de-duplicate vertex shaders
The vertex shaders for quads and textures are identical.
This commit is contained in:
parent
d69018c195
commit
4d04144b92
4 changed files with 6 additions and 17 deletions
|
|
@ -1,9 +1,8 @@
|
|||
embed = find_program('./embed.sh', native: true)
|
||||
|
||||
shaders = [
|
||||
'quad.vert',
|
||||
'common.vert',
|
||||
'quad.frag',
|
||||
'tex.vert',
|
||||
'tex_rgba.frag',
|
||||
'tex_rgbx.frag',
|
||||
'tex_external.frag',
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
uniform mat3 proj;
|
||||
attribute vec2 pos;
|
||||
attribute vec2 texcoord;
|
||||
varying vec2 v_texcoord;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(proj * vec3(pos, 1.0), 1.0);
|
||||
v_texcoord = texcoord;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue