21 lines
248 B
GLSL
21 lines
248 B
GLSL
#shader vertex
|
|
#version 330 core
|
|
|
|
layout(location = 0) in vec4 position;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = position;
|
|
};
|
|
|
|
#shader fragment
|
|
#version 330 core
|
|
|
|
layout(location = 0) out vec4 color;
|
|
|
|
uniform vec4 u_Color;
|
|
|
|
void main()
|
|
{
|
|
color = u_Color;
|
|
}; |