소스 검색

bugfix #1066

texcoord connector on the vertexshader to avoid link time error
Anis 10 년 전
부모
커밋
1751e60734
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 15 1
      Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp

+ 15 - 1
Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp

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