mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
filter out pixel shader normalmap calcs when not in deferred mode.
This commit is contained in:
parent
d2a78b0a82
commit
fe2b3aef1a
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue