commit bb08f6fb998a6ada319994b04ad4062c9fa1e768 parent 2f5e3e77f309b8a00bbc694670b2e69599d175c1 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Sep 5 22:03:26 -0700 Draw the UI over the skybox Diffstat:
hm.cc | | | 3 | +-- |
diff --git a/hm.cc b/hm.cc @@ -281,6 +281,7 @@ extern "C" GAME_FRAME( game_frame ) { const glm::mat4 VP = P * V; terrain_render( &state->tm, V, VP, 0.3f ); + skybox_render( &state->skybox, state->angles ); glDisable( GL_DEPTH_TEST ); glUseProgram( state->test_shader ); @@ -337,6 +338,4 @@ extern "C" GAME_FRAME( game_frame ) { glUseProgram( 0 ); glDisable( GL_BLEND ); glEnable( GL_DEPTH_TEST ); - - skybox_render( &state->skybox, state->angles ); }