- Matrix4x4_CreateTranslate(&skymatrix, r_view.origin[0], r_view.origin[1], r_view.origin[2]);
- R_Mesh_Matrix(&skymatrix);
- if (skyrendersphere)
- {
- // this does not modify depth buffer
- R_SkySphere();
- }
- else if (skyrenderbox)
- {
- // this does not modify depth buffer
- R_SkyBox();
- }
- /* this will be skyroom someday
- else
- {
- // this modifies the depth buffer so we have to clear it afterward
- //R_SkyRoom();
- // clear the depthbuffer that was used while rendering the skyroom
- //GL_Clear(GL_DEPTH_BUFFER_BIT);
- }
- */
- GL_DepthRange(0, 1);
- GL_DepthTest(true);
- GL_DepthMask(true);