truncation correction

followup to https://github.com/TorqueGameEngines/Torque3D/pull/1639
clean up output calc formatting
This commit is contained in:
AzaezelX 2025-12-29 14:26:53 -06:00
parent e9205027f7
commit c65343b3c2
2 changed files with 2 additions and 2 deletions

View file

@ -391,7 +391,7 @@ Var* ShaderFeatureGLSL::getOutTexCoord( const char *name,
{
// Statement allows for casting of different types which
// eliminates vector truncation problems.
String statement = String::ToString( " @ = %s(@ * @);\r\n", type );
String statement = String::ToString( " @ = %s(@) * @;\r\n", type );
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
}
}

View file

@ -391,7 +391,7 @@ Var* ShaderFeatureHLSL::getOutTexCoord( const char *name,
{
// Statement allows for casting of different types which
// eliminates vector truncation problems.
String statement = String::ToString( " @ = (%s)(@ * @);\r\n", type );
String statement = String::ToString( " @ = (%s)(@) * @;\r\n", type );
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
}
}