mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
We have no use for a v_color varying. We can use the uniform directly from the fragment shader without getting the vertex shader involved.
9 lines
179 B
GLSL
9 lines
179 B
GLSL
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;
|
|
}
|