diff --git a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp index e1ab4e4a4..7567b5516 100644 --- a/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp +++ b/Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp @@ -49,7 +49,7 @@ LangElement * ShaderFeatureGLSL::setupTexSpaceMat( Vector &, / (*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 )