Files
Examples/OpenGL/cube/resources/shaders/simple.vert
2019-01-13 21:50:28 +00:00

16 lines
270 B
GLSL

#version 130
in vec2 position;
in vec2 texcoord;
in vec3 colour;
out vec3 Colour;
out vec2 TexCoord;
void main() {
Colour = colour;
TexCoord = texcoord;
gl_Position = vec4(position, 0.0, 1.0);
// Equivilent to vec4(position.x, position.y, 0.0, 1.0)
}