16 lines
342 B
GLSL
16 lines
342 B
GLSL
layout (location = 0) in vec3 pos;
|
|
layout (location = 1) in vec3 norm;
|
|
layout (location = 2) in vec2 coord;
|
|
|
|
out vec3 vertex;
|
|
out vec2 tex_coord;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 view;
|
|
uniform mat4 projection;
|
|
|
|
void main() {
|
|
vertex = vec3(model * vec4(pos, 1.0));
|
|
tex_coord = coord;
|
|
gl_Position = projection * view * vec4(vertex, 1.0);
|
|
}
|