twn_gl_15_rendering.c: disable depth writes for skybox
This commit is contained in:
parent
aa5ff1edf1
commit
2ebb2ba53b
@ -589,7 +589,7 @@ void finally_render_skybox(char *paths) {
|
||||
glNewList(list, GL_COMPILE); {
|
||||
/* note: assumes that space pipeline is applied already */
|
||||
glDisable(GL_ALPHA_TEST);
|
||||
glDepthMask(GL_TRUE);
|
||||
glDepthMask(GL_FALSE);
|
||||
|
||||
glBegin(GL_QUADS); {
|
||||
/* up */
|
||||
@ -653,6 +653,7 @@ void finally_render_skybox(char *paths) {
|
||||
glVertex3f(-50.f, 50.f, -50.f);
|
||||
} glEnd();
|
||||
|
||||
glDepthMask(GL_TRUE);
|
||||
glDisable(GL_TEXTURE_CUBE_MAP);
|
||||
|
||||
} glEndList();
|
||||
|
Loading…
Reference in New Issue
Block a user