Merge pull request #2276 from Azaezel/terrainNormalNeener

filter out pixel shader normalmap calcs when not in deferred mode.
This commit is contained in:
Areloch 2018-12-02 10:50:52 -06:00 committed by GitHub
commit 87efea9683
2 changed files with 6 additions and 0 deletions

View file

@ -927,6 +927,9 @@ void TerrainNormalMapFeatGLSL::processVert( Vector<ShaderComponent*> &component
void TerrainNormalMapFeatGLSL::processPix( Vector<ShaderComponent*> &componentList,
const MaterialFeatureData &fd )
{
// We only need to process normals during the deferred.
if (!fd.features.hasFeature(MFT_DeferredConditioner))
return;
MultiLine *meta = new MultiLine;

View file

@ -908,6 +908,9 @@ void TerrainNormalMapFeatHLSL::processVert( Vector<ShaderComponent*> &component
void TerrainNormalMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
const MaterialFeatureData &fd )
{
// We only need to process normals during the deferred.
if (!fd.features.hasFeature(MFT_DeferredConditioner))
return;
MultiLine *meta = new MultiLine;