From 1751e60734ffe8499ddb3e7374df5861d05e7340 Mon Sep 17 00:00:00 2001 From: Anis Date: Fri, 19 Dec 2014 12:22:36 +0100 Subject: [PATCH] bugfix #1066 texcoord connector on the vertexshader to avoid link time error --- Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp b/Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp index 4e34e2116..2ecb56df6 100644 --- a/Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp +++ b/Engine/source/shaderGen/GLSL/pixSpecularGLSL.cpp @@ -111,6 +111,20 @@ ShaderFeature::Resources PixelSpecularGLSL::getResources( const MaterialFeatureD return res; } +void SpecularMapGLSL::processVert(Vector &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 &componentList, const MaterialFeatureData &fd ) { @@ -150,4 +164,4 @@ void SpecularMapGLSL::setTexData( Material::StageData &stageDat, passData.mSamplerNames[ texIndex ] = "specularMap"; passData.mTexSlot[ texIndex++ ].texObject = tex; } -} \ No newline at end of file +}