vertex.glsl (283B)
1 #version 330 core 2 layout (location = 0) in vec3 pos; 3 layout (location = 1) in vec3 col; 4 layout (location = 2) in vec2 vtexCoord; 5 out vec3 vcol; 6 out vec2 texCoord; 7 uniform mat4 transform; 8 void main() { 9 gl_Position = transform * vec4(pos, 1.0); 10 vcol = col; 11 texCoord = vtexCoord; 12 } 13