fix gr_skydome 0
ugh...
This commit is contained in:
parent
6087d97528
commit
122fbcc808
2 changed files with 6 additions and 0 deletions
|
|
@ -794,6 +794,9 @@ static void HWR_RenderViewpoint(player_t *player, boolean drawSkyTexture, boolea
|
|||
gl_portal_array_t *portal_array;
|
||||
|
||||
HWR_PrepareTransform(player, is_skybox);
|
||||
// we need to set our transformations now so portal clipping
|
||||
// has the projectionmatrix set up with our actual view
|
||||
// since our clipper uses this to determine our actual visible geometry
|
||||
GL_SetTransform(&atransform);
|
||||
HWR_ClearSprites();
|
||||
HWR_ResetClipper();
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ void HWR_DrawSkyBackground(player_t *player)
|
|||
float angleturn;
|
||||
|
||||
HWR_GetTexture(texturetranslation[skytexture], false);
|
||||
|
||||
aspectratio = (float)vid.width/(float)vid.height;
|
||||
|
||||
//Hurdler: the sky is the only texture who need 4.0f instead of 1.0
|
||||
|
|
@ -293,6 +294,8 @@ void HWR_DrawSkyBackground(player_t *player)
|
|||
v[0].t = v[1].t -= ((float) angle / angleturn);
|
||||
}
|
||||
|
||||
// since sky is drawn as a "flat quad" this way, we have to unset any view transformations for it to work
|
||||
GL_SetTransform(NULL);
|
||||
GL_UnSetShader();
|
||||
GL_DrawPolygon(NULL, v, 4, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue