20 lines
250 B
GLSL
20 lines
250 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;
|
|
}; |