from @rextimmy automatically adds a sky feature to skies. (render sorting and orientation. previously required setting in script.)

This commit is contained in:
Azaezel 2016-03-16 18:10:07 -05:00
parent 7bba3ee2de
commit ed264e4e12
3 changed files with 3 additions and 2 deletions

View file

@ -608,6 +608,7 @@ void SkyBox::_initMaterial()
FeatureSet features = MATMGR->getDefaultFeatures();
features.removeFeature( MFT_RTLighting );
features.removeFeature( MFT_Visibility );
features.addFeature(MFT_SkyBox);
// Now initialize the material.
mMatInstance->init(features, getGFXVertexFormat<GFXVertexPNT>());