浏览代码

Merge pull request #1439 from Azaezel/initTextureSpace

ensures opengl texSpaceMat is initialized from the get-go
Areloch 9 年之前
父节点
当前提交
51b6469922
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

+ 1 - 1
Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

@@ -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 )