grk464933/cw 3/shaders/shader_2_1.vert

15 lines
240 B
GLSL
Raw Normal View History

2024-02-02 11:19:35 +01:00
#version 430 core
layout(location = 0) in vec4 vertexPosition;
layout(location = 1) in vec4 vertexColor;
uniform mat4 transformation;
out vec4 color;
void main()
{
color = vertexColor;
gl_Position = transformation * vertexPosition;
}