diff --git a/Engine/source/lighting/advanced/glsl/advancedLightingFeaturesGLSL.cpp b/Engine/source/lighting/advanced/glsl/advancedLightingFeaturesGLSL.cpp index d1655ae60..ce90bcc39 100644 --- a/Engine/source/lighting/advanced/glsl/advancedLightingFeaturesGLSL.cpp +++ b/Engine/source/lighting/advanced/glsl/advancedLightingFeaturesGLSL.cpp @@ -225,10 +225,10 @@ void DeferredBumpFeatGLSL::processVert( Vector &componentLis // We need the view to tangent space transform in the pixel shader. getOutViewToTangent( componentList, meta, fd ); + const bool useTexAnim = fd.features[MFT_TexAnim]; // Make sure there are texcoords if( !fd.features[MFT_Parallax] && !fd.features[MFT_DiffuseMap] ) { - const bool useTexAnim = fd.features[MFT_TexAnim]; getOutTexCoord( "texCoord", "vec2", @@ -236,12 +236,12 @@ void DeferredBumpFeatGLSL::processVert( Vector &componentLis useTexAnim, meta, componentList ); + } - if ( fd.features.hasFeature( MFT_DetailNormalMap ) ) + if ( fd.features.hasFeature( MFT_DetailNormalMap ) ) addOutDetailTexCoord( componentList, meta, useTexAnim ); - } output = meta; } diff --git a/Engine/source/lighting/advanced/hlsl/advancedLightingFeaturesHLSL.cpp b/Engine/source/lighting/advanced/hlsl/advancedLightingFeaturesHLSL.cpp index 6a646a71e..deda7cbae 100644 --- a/Engine/source/lighting/advanced/hlsl/advancedLightingFeaturesHLSL.cpp +++ b/Engine/source/lighting/advanced/hlsl/advancedLightingFeaturesHLSL.cpp @@ -225,10 +225,10 @@ void DeferredBumpFeatHLSL::processVert( Vector &componentLis // We need the view to tangent space transform in the pixel shader. getOutViewToTangent( componentList, meta, fd ); + const bool useTexAnim = fd.features[MFT_TexAnim]; // Make sure there are texcoords if( !fd.features[MFT_Parallax] && !fd.features[MFT_DiffuseMap] ) { - const bool useTexAnim = fd.features[MFT_TexAnim]; getOutTexCoord( "texCoord", "float2", @@ -236,12 +236,12 @@ void DeferredBumpFeatHLSL::processVert( Vector &componentLis useTexAnim, meta, componentList ); + } - if ( fd.features.hasFeature( MFT_DetailNormalMap ) ) + if ( fd.features.hasFeature( MFT_DetailNormalMap ) ) addOutDetailTexCoord( componentList, meta, useTexAnim ); - } output = meta; }