14 lines
269 B
GLSL
14 lines
269 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec3 pos;
|
|
layout (location = 1) in vec3 col;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 view;
|
|
uniform mat4 projection;
|
|
|
|
out vec3 color;
|
|
|
|
void main() {
|
|
gl_Position = projection * view * model * vec4(pos.xyz, 1.0);
|
|
color = col;
|
|
} |