mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 12:14:45 +00:00
truncation correction
followup to https://github.com/TorqueGameEngines/Torque3D/pull/1639 clean up output calc formatting
This commit is contained in:
parent
e9205027f7
commit
c65343b3c2
|
|
@ -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) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue