2022-08-07 12:10:12 +08:00
|
|
|
#version 330 core
|
2023-02-22 17:29:58 +08:00
|
|
|
layout (location = 0) in vec3 position;
|
2022-08-07 12:10:12 +08:00
|
|
|
layout (location = 1) in vec3 color;
|
|
|
|
|
2023-02-22 17:29:58 +08:00
|
|
|
out vec3 ourColor;
|
2022-08-07 12:10:12 +08:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = vec4(position, 1.0f);
|
|
|
|
ourColor = color;
|
|
|
|
}
|