15 lines
281 B
GLSL
15 lines
281 B
GLSL
|
#version 330 core
|
||
|
layout (location = 0) in vec3 inPosition;
|
||
|
|
||
|
out vec3 vertexColor;
|
||
|
|
||
|
uniform mat4 model;
|
||
|
uniform mat4 view;
|
||
|
uniform mat4 projection;
|
||
|
uniform vec3 color;
|
||
|
|
||
|
void main() {
|
||
|
gl_Position = projection * view * model * vec4(inPosition, 1.0);
|
||
|
vertexColor = color;
|
||
|
}
|