2023-01-21 20:37:04 +01:00
|
|
|
#version 430 core
|
|
|
|
|
|
|
|
layout(location = 0) in vec4 vertexPosition;
|
|
|
|
layout(location = 1) in vec4 vertexColor;
|
|
|
|
|
|
|
|
uniform mat4 transformation;
|
|
|
|
|
|
|
|
flat out vec4 color;
|
|
|
|
out vec4 pos_local;
|
|
|
|
out vec4 pos_global;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
color = vertexColor;
|
|
|
|
pos_local = vertexPosition;
|
|
|
|
pos_global = transformation * vertexPosition;
|
|
|
|
gl_Position = transformation * vertexPosition;
|
2023-02-01 18:23:58 +01:00
|
|
|
}
|