mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
19 lines
314 B
GLSL
19 lines
314 B
GLSL
#version 330 core
|
|
|
|
layout (location = 0) in vec3 position;
|
|
layout (location = 1) in vec4 color;
|
|
|
|
out vec4 vertexColor;
|
|
|
|
uniform mat4 modelview;
|
|
uniform mat4 projection;
|
|
|
|
void main()
|
|
{
|
|
vec4 pos = modelview * vec4(position.xyz, 1.0);
|
|
|
|
// output
|
|
gl_Position = projection * pos;
|
|
vertexColor = color;
|
|
}
|