17 lines
313 B
GLSL
17 lines
313 B
GLSL
#version 330 core
|
|
|
|
layout(location = 0) in vec3 pos;
|
|
layout(location = 1) in vec2 texCoords;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 view;
|
|
uniform mat4 proj;
|
|
|
|
out vec2 texCoord;
|
|
|
|
void main() {
|
|
//gl_Position = proj * view * model * vec4(pos, 1.0);
|
|
gl_Position = proj * model * vec4(pos, 1.0);
|
|
texCoord = texCoords;
|
|
}
|