18 lines
356 B
GLSL
18 lines
356 B
GLSL
#version 430 core
|
|
|
|
layout(location = 0) in vec4 vertexPosition;
|
|
layout(location = 1) in vec4 vertexColor;
|
|
|
|
uniform mat4 transformation;
|
|
|
|
out vec4 color;
|
|
out vec4 pos_global;
|
|
out vec4 pos_local;
|
|
void main()
|
|
{
|
|
color = vertexColor;
|
|
pos_global = transformation * vertexPosition;
|
|
pos_local = vertexPosition;
|
|
gl_Position = transformation * vertexPosition;
|
|
}
|