14 lines
229 B
Plaintext
14 lines
229 B
Plaintext
|
#version 330 core
|
||
|
|
||
|
uniform mat4 worldMatrix;
|
||
|
|
||
|
layout(location = 0) in vec2 position;
|
||
|
layout(location = 1) in vec4 color;
|
||
|
|
||
|
out vec4 vertexColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vertexColor = color;
|
||
|
gl_Position = vec4(position, 0.0, 1.0);
|
||
|
}
|