diff --git a/Engine/source/environment/scatterSky.cpp b/Engine/source/environment/scatterSky.cpp index e7472973b..407ca5827 100644 --- a/Engine/source/environment/scatterSky.cpp +++ b/Engine/source/environment/scatterSky.cpp @@ -41,6 +41,7 @@ #include "materials/baseMatInstance.h" #include "materials/sceneData.h" #include "environment/timeOfDay.h" +#include "materials/materialFeatureTypes.h" ConsoleDocClass( ScatterSky, @@ -913,7 +914,12 @@ void ScatterSky::_initMoon() if (mMoonMatAsset.notNull()) { - mMoonMatInst = MATMGR->createMatInstance(mMoonMatAsset->getMaterialDefinitionName(), MATMGR->getDefaultFeatures(), getGFXVertexFormat()); + FeatureSet features = MATMGR->getDefaultFeatures(); + features.removeFeature(MFT_RTLighting); + features.removeFeature(MFT_Visibility); + features.removeFeature(MFT_ReflectionProbes); + features.addFeature(MFT_isBackground); + mMoonMatInst = MATMGR->createMatInstance(mMoonMatAsset->getMaterialDefinitionName(), features, getGFXVertexFormat()); } } diff --git a/Engine/source/environment/skyBox.cpp b/Engine/source/environment/skyBox.cpp index c7911533f..de32d0e92 100644 --- a/Engine/source/environment/skyBox.cpp +++ b/Engine/source/environment/skyBox.cpp @@ -610,6 +610,7 @@ void SkyBox::_initMaterial() FeatureSet features = MATMGR->getDefaultFeatures(); features.removeFeature( MFT_RTLighting ); features.removeFeature( MFT_Visibility ); + features.removeFeature(MFT_ReflectionProbes); features.addFeature(MFT_isBackground); features.addFeature(MFT_SkyBox); diff --git a/Engine/source/environment/skySphere.cpp b/Engine/source/environment/skySphere.cpp index 433058dcd..67dddc5f8 100644 --- a/Engine/source/environment/skySphere.cpp +++ b/Engine/source/environment/skySphere.cpp @@ -608,6 +608,7 @@ void SkySphere::_initMaterial() FeatureSet features = MATMGR->getDefaultFeatures(); features.removeFeature(MFT_RTLighting); features.removeFeature(MFT_Visibility); + features.removeFeature(MFT_ReflectionProbes); features.addFeature(MFT_isBackground); // Now initialize the material.