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

@ -341,7 +341,7 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
fd.features.addFeature( MFT_CubeMap );
}
if (mMaterial->mIsSky)
if (features.hasFeature(MFT_SkyBox))
{
fd.features.addFeature(MFT_CubeMap);
fd.features.addFeature(MFT_SkyBox);