Ver Fonte

fixed also on DirectX

Anis há 10 anos atrás
pai
commit
30815cb641
1 ficheiros alterados com 15 adições e 1 exclusões
  1. 15 1
      Engine/source/shaderGen/HLSL/pixSpecularHLSL.cpp

+ 15 - 1
Engine/source/shaderGen/HLSL/pixSpecularHLSL.cpp

@@ -111,6 +111,20 @@ ShaderFeature::Resources PixelSpecularHLSL::getResources( const MaterialFeatureD
    return res;
 }
 
+void SpecularMapHLSL::processVert(Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd)
+{
+   MultiLine *meta = new MultiLine;
+
+   // Add the texture coords.
+   getOutTexCoord("texCoord",
+     "float2",
+      true,
+      fd.features[MFT_TexAnim],
+      meta,
+      componentList);
+
+   output = meta;
+}
 
 void SpecularMapHLSL::processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd )
 {
@@ -150,4 +164,4 @@ void SpecularMapHLSL::setTexData( Material::StageData &stageDat,
       passData.mSamplerNames[ texIndex ] = "specularMap";
       passData.mTexSlot[ texIndex++ ].texObject = tex;
    }
-}
+}