Preparing to add texture to quad

This commit is contained in:
Caesar2011
2016-09-05 17:49:15 +02:00
parent 0279e9c3a0
commit 866fabdf45
5 changed files with 77 additions and 60 deletions

View File

@@ -1,8 +1,13 @@
#version 330 core
#version 400
layout(location = 0) in vec3 vertexPosition_modelspace;
in vec2 aVertex;
in vec2 aTexCoord;
void main(){
gl_Position.xyz = vertexPosition_modelspace;
gl_Position.w = 1.0;
out vec2 vTexCoord;
out vec3 vNormal;
void main()
{
vTexCoord = aTexCoord;
gl_Position = vec3(aVertex, 1);
}