mirror of
https://github.com/MichaelFisher1997/opengl-cpp.git
synced 2025-04-27 22:23:10 +00:00
18 lines
247 B
GLSL
18 lines
247 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;
|
|
};
|