Merge pull request #1439 from Azaezel/initTextureSpace

ensures opengl texSpaceMat is initialized from the get-go
This commit is contained in:
Areloch 2015-11-09 10:55:10 -06:00
commit 51b6469922

View file

@ -49,7 +49,7 @@ LangElement * ShaderFeatureGLSL::setupTexSpaceMat( Vector<ShaderComponent*> &, /
(*texSpaceMat)->setName( "objToTangentSpace" );
MultiLine * meta = new MultiLine;
meta->addStatement( new GenOp( " @;\r\n", new DecOp( *texSpaceMat ) ) );
meta->addStatement( new GenOp( " @ = float3x3(1,0,0, 0,1,0, 0,0,1);\r\n", new DecOp( *texSpaceMat ) ) );
// Protect against missing normal and tangent.
if ( !N || !T )