grk464933/cw 2/shaders/shader_2_1.vert
2024-02-02 11:19:35 +01:00

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;
}