wlroots-hyprland/render/gles2/shaders/common.vert
Alexander Orzechowski 6f67bfe5ab renderer/gles2: Interpret matrix as column major in shader
Avoids us needing to transpose.
2023-05-28 14:53:34 -04:00

9 lines
179 B
GLSL

uniform mat3 proj;
attribute vec2 pos;
attribute vec2 texcoord;
varying vec2 v_texcoord;
void main() {
gl_Position = vec4(vec3(pos, 1.0) * proj, 1.0);
v_texcoord = texcoord;
}