mirror of
https://github.com/MichaelFisher1997/opengl-cpp.git
synced 2025-04-27 22:23:10 +00:00
15 lines
240 B
GLSL
15 lines
240 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;
|
|
void main() {
|
|
color = vec4(0.2, 0.3, 0.8, 1.0);
|
|
};
|