done
This commit is contained in:
parent
7c306a2d1e
commit
30c8f4ef20
4 changed files with 21 additions and 16 deletions
|
|
@ -28,7 +28,7 @@ GLuint compile_shader(GLuint type, const char *src) {
|
|||
}
|
||||
|
||||
const char *vertex_shader_src =
|
||||
"#version 320 es\n"
|
||||
"#version 330 core\n"
|
||||
"\n"
|
||||
"layout(location = 0) in vec2 aPos;\n"
|
||||
"\n"
|
||||
|
|
@ -158,7 +158,7 @@ void render(Renderer *state, int w, int h, double time, char *shader_path, int r
|
|||
// Rendorrrr
|
||||
glViewport(0, 0, w, h);
|
||||
|
||||
glClearColor(0.3f, 0.3f, 0.3f, 1.0f); // Dark gray background
|
||||
glClearColor(0.8f, 0.3f, 0.3f, 1.0f); // Dark gray background
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
// Shader parameters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue