mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
13 lines
238 B
GLSL
13 lines
238 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec2 position;
|
|
layout (location = 1) in vec3 color;
|
|
|
|
out VS_OUT {
|
|
vec3 color;
|
|
} vs_out;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(position.x, position.y, 0.0f, 1.0f);
|
|
vs_out.color = color;
|
|
} |