Skip to content

Commit

Permalink
final push
Browse files Browse the repository at this point in the history
  • Loading branch information
serg06 committed Dec 4, 2019
1 parent d9366f7 commit 6cba30d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void setup_opengl(OpenGLInfo* glInfo) {

glPointSize(5.0f);
//glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
//glEnable(GL_CULL_FACE);
glEnable(GL_CULL_FACE);
glFrontFace(GL_CW);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
Expand Down
2 changes: 2 additions & 0 deletions src/simple.vs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ void main(void)
break;
case 1: // grass
vs_color = vec4(0.2, 0.8 + rand(seed) * 0.2, 0.0, 1.0); // green
// vs_color = vec4(0.2, 0.6, 0.0, 1.0); // green
break;
case 2: // stone
vs_color = vec4(0.4, 0.4, 0.4, 1.0) + vec4(rand(seed), rand(seed), rand(seed), rand(seed))*0.2; // grey
// vs_color = vec4(0.4, 0.4, 0.4, 1.0); // grey
break;
default:
vs_color = vec4(1.0, 0.0, 1.0, 1.0); // SUPER NOTICEABLE (for debugging)
Expand Down

0 comments on commit 6cba30d

Please sign in to comment.