gearlib/assets/texture.vert
2024-05-03 11:18:50 +12:00

22 lines
471 B
GLSL

#version 460 core
layout(location = 0) in vec3 a_Position;
layout(location = 1) in vec4 a_Tint;
layout(location = 2) in vec2 a_TexCoord;
layout(location = 3) in float a_TexID;
struct VertexOutput {
vec4 Tint;
vec2 TexCoord;
};
layout(location = 0) out VertexOutput Output;
layout(location = 2) out flat float TexID;
void main() {
Output.Tint = a_Tint;
Output.TexCoord = a_TexCoord;
TexID = a_TexID;
gl_Position = vec4(a_Position, 1.0);
}