From 1d3889e93f547df9f6c578b107552807c27fc6d4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 4 May 2019 23:19:05 +0400 Subject: i commit --- 4.1.texture.vs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 4.1.texture.vs (limited to '4.1.texture.vs') diff --git a/4.1.texture.vs b/4.1.texture.vs new file mode 100644 index 0000000..4fd6603 --- /dev/null +++ b/4.1.texture.vs @@ -0,0 +1,14 @@ +#version 330 core +layout (location = 0) in vec3 aPos; +layout (location = 1) in vec3 aColor; +layout (location = 2) in vec2 aTexCoord; + +out vec3 ourColor; +out vec2 TexCoord; + +void main() +{ + gl_Position = vec4(aPos, 1.0); + ourColor = aColor; + TexCoord = vec2(aTexCoord.x, aTexCoord.y); +} \ No newline at end of file -- cgit v1.2.3