mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
ensures opengl texSpaceMat is initialized from the get-go (whines in console otherwise)
This commit is contained in:
parent
2044b2691e
commit
215ae1429e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue