git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

scenefx/render/fx_renderer/shaders/common.vert (268B)

 1 uniform mat3 proj;
 2 uniform vec4 color;
 3 uniform mat3 tex_proj;
 4 attribute vec2 pos;
 5 varying vec4 v_color;
 6 varying vec2 v_texcoord;
 7 
 8 void main() {
 9 	vec3 pos3 = vec3(pos, 1.0);
10 	gl_Position = vec4(pos3 * proj, 1.0);
11 	v_color = color;
12 	v_texcoord = (pos3 * tex_proj).xy;
13 }