from @rextimmy: shifts sybox rendering to last (kils a bit of overdraw)

This commit is contained in:
Azaezel 2018-11-18 06:36:16 -06:00
parent f0924c8dcd
commit f75a9ccd24
4 changed files with 14 additions and 7 deletions

View file

@ -602,6 +602,7 @@ void SkyBox::_initMaterial()
desc.setCullMode( GFXCullNone );
desc.setBlend( true );
desc.setZReadWrite( true, false );
desc.zFunc = GFXCmpLessEqual;
mMatInstance->addStateBlockDesc( desc );
// Also disable lighting on the skybox material by default.