diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-01-09 19:06:36 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-01-09 19:06:36 -0500 |
commit | 0aae714d4d894a4bfa9582c71ee8a1778260a047 (patch) | |
tree | 0bdda17698baaa7cd3bd7325c6a310e917166e99 /src/world.cpp | |
parent | 9d7b4c9a40261b5b6b961f6ca6174fd23c40f6b8 (diff) |
ui menu cleanup
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/world.cpp b/src/world.cpp index 6f31a5b..f54af3e 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -745,23 +745,18 @@ void WorldSystem::render(void) // rendering!! glActiveTexture(GL_TEXTURE0); - glUniform1i(Render::worldShader.uniform[WU_texture], 0); - Render::worldShader.use(); + glUniform1i(Render::worldShader.uniform[WU_texture], 0); glUniform1f(Render::worldShader.uniform[WU_light_impact], 0.0f); glUniform4f(Render::worldShader.uniform[WU_ambient], 1.0, 1.0, 1.0, 1.0); - Render::worldShader.enable(); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); - bgTex(0); glUniform4f(Render::worldShader.uniform[WU_tex_color], 1.0, 1.0, 1.0, 1.0); - makeWorldDrawingSimplerEvenThoughAndyDoesntThinkWeCanMakeItIntoFunctions(0, back_tex_coord, scrolling_tex_coord, 6); - // no more night bg //bgTex++; //glUniform4f(Render::worldShader.uniform[WU_tex_color], 1.0, 1.0, 1.0, 1.3 - static_cast<float>(alpha) / 255.0f); @@ -800,7 +795,6 @@ void WorldSystem::render(void) glUniform4f(Render::worldShader.uniform[WU_tex_color], 1.0, 1.0, 1.0, 1.0); glUniform4f(Render::worldShader.uniform[WU_ambient], ambient.red, ambient.green, ambient.blue, 1.0); - Render::worldShader.unuse(); std::vector<vec3> bg_items; @@ -832,7 +826,6 @@ void WorldSystem::render(void) makeWorldDrawingSimplerEvenThoughAndyDoesntThinkWeCanMakeItIntoFunctions_JustDrawThis(0, bg_items.data(), bg_tex.data(), bg_items.size()); Render::worldShader.unuse(); - // draw the remaining layers for (int i = 0; i < 4; i++) { bgTex++; |