Preparing to add texture to quad
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user