gearlib/assets/texture.vert

23 lines
471 B
GLSL
Raw Normal View History

2024-04-30 23:02:19 +12:00
#version 460 core
layout(location = 0) in vec3 a_Position;
layout(location = 1) in vec4 a_Tint;
layout(location = 2) in vec2 a_TexCoord;
2024-05-03 11:18:50 +12:00
layout(location = 3) in float a_TexID;
2024-04-30 23:02:19 +12:00
struct VertexOutput {
vec4 Tint;
vec2 TexCoord;
};
layout(location = 0) out VertexOutput Output;
2024-05-03 11:18:50 +12:00
layout(location = 2) out flat float TexID;
2024-04-30 23:02:19 +12:00
void main() {
Output.Tint = a_Tint;
Output.TexCoord = a_TexCoord;
2024-05-03 11:18:50 +12:00
TexID = a_TexID;
2024-04-30 23:02:19 +12:00
gl_Position = vec4(a_Position, 1.0);
}