Explicitly set cull type for skybox
Explicitly set cull type for skybox to front, instead of using whatever cull type the previous shader used (which could result in the skybox not being visible due to only drawing back faces). The sky cloud stages set the cull type so they are not affected by previous cull type.
This commit is contained in:
parent
acd659b05a
commit
2dcc5719e3
2 changed files with 2 additions and 0 deletions
|
@ -769,6 +769,7 @@ void RB_StageIteratorSky( void ) {
|
|||
|
||||
qglPushMatrix ();
|
||||
GL_State( 0 );
|
||||
GL_Cull( CT_FRONT_SIDED );
|
||||
qglTranslatef (backEnd.viewParms.or.origin[0], backEnd.viewParms.or.origin[1], backEnd.viewParms.or.origin[2]);
|
||||
|
||||
DrawSkyBox( tess.shader );
|
||||
|
|
|
@ -871,6 +871,7 @@ void RB_StageIteratorSky( void ) {
|
|||
mat4_t oldmodelview;
|
||||
|
||||
GL_State( 0 );
|
||||
GL_Cull( CT_FRONT_SIDED );
|
||||
//qglTranslatef (backEnd.viewParms.or.origin[0], backEnd.viewParms.or.origin[1], backEnd.viewParms.or.origin[2]);
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue