diff --git a/kitty/trail_vertex.glsl b/kitty/trail_vertex.glsl index a4610bebf..035aaecb8 100644 --- a/kitty/trail_vertex.glsl +++ b/kitty/trail_vertex.glsl @@ -4,6 +4,7 @@ uniform vec4 y_coords; out vec2 frag_pos; void main() { - frag_pos = vec2(x_coords[gl_VertexID], y_coords[gl_VertexID]); - gl_Position = vec4(x_coords[gl_VertexID], y_coords[gl_VertexID], 1.0, 1.0); + vec2 pos = vec2(x_coords[gl_VertexID], y_coords[gl_VertexID]); + gl_Position = vec4(pos, 1.0, 1.0); + frag_pos = pos; }