mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-12 11:33:22 +08:00
11 lines
193 B
GLSL
11 lines
193 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec3 position;
|
|
layout (location = 1) in vec3 color;
|
|
|
|
out vec3 ourColor;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(position, 1.0f);
|
|
ourColor = color;
|
|
} |