mirror of
https://github.com/MichaelFisher1997/opengl-cpp.git
synced 2025-10-18 12:17:45 +00:00
added uniforms and played with vsync
This commit is contained in:
@@ -9,6 +9,9 @@ void main() {
|
||||
#shader fragment
|
||||
#version 330 core
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
uniform vec4 u_Color;
|
||||
|
||||
void main() {
|
||||
color = vec4(0.2, 0.3, 0.8, 1.0);
|
||||
color = u_Color;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user